author | Eugene Ostroukhov <eugeneo@symbian.org> |
Mon, 14 Jun 2010 17:16:31 -0700 | |
changeset 375 | d1edab2715d4 |
parent 195 | f02192d5e8f8 |
permissions | -rw-r--r-- |
157 | 1 |
<!-- |
2 |
This program and the accompanying materials are made available |
|
3 |
under the terms of the Eclipse Public License v1.0 which |
|
4 |
accompanies this distribution, and is available at |
|
5 |
http://www.eclipse.org/legal/epl-v10.html |
|
6 |
||
7 |
This build script creates a build directory containing the plugins |
|
8 |
and features to be built, and then kicks off the PDE build process. |
|
9 |
You could just as easily do this from a shell script or cron job. |
|
10 |
||
11 |
Also, the script can be run inside the Eclipse IDE by choosing |
|
12 |
Run As -> Ant Build from the context menu. It could obviously be |
|
13 |
run outside of the IDE if you have ANT installed on your path. |
|
14 |
||
15 |
If you have any questions about this build, feel free to contact me |
|
16 |
at patrick@rcpquickstart.com. |
|
17 |
||
18 |
Modified by Lukas Zapletal <lzapletal@pikeelectronic.com>. |
|
19 |
||
20 |
Retrieved from an article on Google Knol (http://knol.google.com/k/automating-eclipse-pde-build#). |
|
21 |
Customized from the Symbian Foundation by John Kern (johnk@symbian.org). |
|
22 |
--> |
|
23 |
||
24 |
<project name="org.symbian.tools.wrttools" default="build"> |
|
25 |
<property file="build.properties" /> |
|
26 |
||
27 |
<!-- |
|
28 |
PDE Build expects that the build directory contains a "plugins" |
|
29 |
directory and a "features" directory. These directories should contain |
|
30 |
the various plug-ins and features to be built. |
|
31 |
||
32 |
It's possible to use the CVS checkout process that is built into |
|
33 |
PDE Build. This is done with map files and is beyond the scope of |
|
34 |
this tutorial. |
|
35 |
||
36 |
This tutorial simply copies the projects directly from your workspace |
|
37 |
into the appropriate build directory folders. |
|
38 |
--> |
|
39 |
||
159
137ed78712d1
shepard should define build and source directory
John Kern <johnk@symbian.org>
parents:
157
diff
changeset
|
40 |
|
157 | 41 |
<target name="init"> |
42 |
<mkdir dir="${buildDirectory}" /> |
|
43 |
<mkdir dir="${buildDirectory}/plugins" /> |
|
159
137ed78712d1
shepard should define build and source directory
John Kern <johnk@symbian.org>
parents:
157
diff
changeset
|
44 |
<echo message="source dir: ${sourceDirectory}" /> |
137ed78712d1
shepard should define build and source directory
John Kern <johnk@symbian.org>
parents:
157
diff
changeset
|
45 |
<echo message="build dir: ${buildDirectory} " /> |
157 | 46 |
<copy todir="${buildDirectory}/plugins"> |
47 |
<fileset dir="${sourceDirectory}"> |
|
48 |
<include name="org.chromium**/**/*" /> |
|
49 |
<include name="org.symbian**/**/*" /> |
|
195
f02192d5e8f8
Fixed build script to include new CSS plugin
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
193
diff
changeset
|
50 |
<include name="org.w3c.css**/**/*" /> |
157 | 51 |
<exclude name="org.symbian.tools.wrttools.feature/**/*" /> |
52 |
</fileset> |
|
53 |
</copy> |
|
54 |
<mkdir dir="${buildDirectory}/features" /> |
|
55 |
<copy todir="${buildDirectory}/features"> |
|
56 |
<fileset dir="${sourceDirectory}"> |
|
57 |
<include name="org.symbian.tools.wrttools.feature/**" /> |
|
58 |
</fileset> |
|
59 |
</copy> |
|
60 |
</target> |
|
61 |
||
62 |
<!-- |
|
63 |
This target actually executes the PDE Build process by launching the |
|
64 |
Eclipse antRunner application. |
|
65 |
--> |
|
66 |
<target name="pde-build"> |
|
67 |
<echo message="Executing ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar"/> |
|
159
137ed78712d1
shepard should define build and source directory
John Kern <johnk@symbian.org>
parents:
157
diff
changeset
|
68 |
<echo message="source dir: ${sourceDirectory}" /> |
137ed78712d1
shepard should define build and source directory
John Kern <johnk@symbian.org>
parents:
157
diff
changeset
|
69 |
<echo message="build dir: ${buildDirectory} " /> |
157 | 70 |
<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true"> |
71 |
<arg value="-application" /> |
|
72 |
<arg value="org.eclipse.ant.core.antRunner" /> |
|
73 |
<arg value="-buildfile" /> |
|
74 |
<arg value="${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildPluginVersion}/scripts/productBuild/productBuild.xml" /> |
|
75 |
<arg value="-Dtimestamp=${timestamp}" /> |
|
160
9229a5237a62
explicitly pass source and build to equinox
John Kern <johnk@symbian.org>
parents:
159
diff
changeset
|
76 |
<arg value="-DbuildDirectory=${buildDirectory}" /> |
9229a5237a62
explicitly pass source and build to equinox
John Kern <johnk@symbian.org>
parents:
159
diff
changeset
|
77 |
<arg value="-DsourceDirectory=${sourceDirectory}" /> |
157 | 78 |
<classpath> |
79 |
<pathelement location="${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" /> |
|
80 |
</classpath> |
|
81 |
</java> |
|
82 |
</target> |
|
83 |
||
84 |
<target name="clean"> |
|
85 |
<delete dir="${buildDirectory}" /> |
|
86 |
</target> |
|
87 |
||
88 |
<target name="build" depends="init, pde-build" /> |
|
89 |
</project> |