gvsig-raster / org.gvsig.raster.tools / trunk / templates / rasterTaskProjectTemplate / build.xml @ 2101
History | View | Annotate | Download (7.15 KB)
1 |
<project name="Raster task" default="basic" basedir="."> |
---|---|
2 |
<description>
|
3 |
Builds a raster task project. |
4 |
Execute the next command to build a project template |
5 |
Basic task: ant -Dproject="myprojectname" -Dtoken="MyProjectName" |
6 |
Task with preview: ant -Dproject="myprojectname" -Dtoken="MyProjectName" preview |
7 |
Project for providers: ant -Dproject="myprojectname" -Dtoken="MyProjectName" provider |
8 |
To generate Sextante for tasks use the parameter -Dsextantelib=true |
9 |
</description>
|
10 |
|
11 |
<!--Parameters: default values-->
|
12 |
<property name="project" value="rastertask"/> <!--Project name in lowercase--> |
13 |
<property name="token" value="RasterTask"/> <!--Project name in java signature--> |
14 |
|
15 |
<import file="./basictask.xml" /> |
16 |
<import file="./previewtask.xml" /> |
17 |
<import file="./providerproject.xml" /> |
18 |
<import file="./sextantetask.xml" /> |
19 |
|
20 |
<property name="urlbase" value="org.gvsig.raster"/> |
21 |
<property name="dirplugin" value="${urlbase}.${project}"/> |
22 |
<property name="base" value="${dirplugin}/${dirplugin}"/> |
23 |
<property name="languages" value="ca,cs,de,en,eu,fr,gl,it,pt,zh"/> |
24 |
|
25 |
<property name="tokenin1" value="projecttemplate"/> |
26 |
<property name="tokenin2" value="ProjectTemplate"/> |
27 |
|
28 |
<property name="sourcedir" value="/src/main/java/org/gvsig/raster/${project}"/> |
29 |
<property name="testdir" value="/src/test/java/org/gvsig/raster/${project}"/> |
30 |
<property name="resourcesplugindir" value="/src/main/resources-plugin"/> |
31 |
<property name="resourcesdir" value="/src/main/resources"/> |
32 |
<property name="traslationappdir" value="${resourcesplugindir}/org/gvsig/raster/${project}"/> |
33 |
<property name="traslationlibdir" value="${resourcesdir}/org/gvsig/raster/${project}"/> |
34 |
<property name="metainfdir" value="${resourcesdir}/META-INF/services"/> |
35 |
<property name="imagesactiondir" value="${resourcesplugindir}/images/action"/> |
36 |
<property name="imagescursordir" value="${resourcesplugindir}/images/cursor"/> |
37 |
|
38 |
<property name="algorithm-srcdir" value="${base}.algorithm${sourcedir}/algorithm"/> |
39 |
<property name="app-srcdir" value="${base}.app/${dirplugin}.app.client${sourcedir}/app"/> |
40 |
<property name="libapi-srcdir" value="${base}.lib/${dirplugin}.lib.api${sourcedir}/lib"/> |
41 |
<property name="libimpl-srcdir" value="${base}.lib/${dirplugin}.lib.impl${sourcedir}/lib/impl"/> |
42 |
<property name="swingapi-srcdir" value="${base}.swing/${dirplugin}.swing.api${sourcedir}/swing"/> |
43 |
<property name="swingimpl-srcdir" value="${base}.swing/${dirplugin}.swing.impl${sourcedir}/swing/impl"/> |
44 |
<property name="sextante-srcdir" value="${base}.sextante${sourcedir}"/> |
45 |
|
46 |
<property name="assemblydir" value="${base}.app/${dirplugin}.app.client/src/main/assembly"/> |
47 |
|
48 |
<property name="algorithm-metainfdir" value="${base}.algorithm${metainfdir}"/> |
49 |
<property name="libapi-metainfdir" value="${base}.lib/${dirplugin}.lib.api${metainfdir}"/> |
50 |
<property name="libimpl-metainfdir" value="${base}.lib/${dirplugin}.lib.impl${metainfdir}"/> |
51 |
<property name="swingapi-metainfdir" value="${base}.swing/${dirplugin}.swing.api${metainfdir}"/> |
52 |
<property name="swingimpl-metainfdir" value="${base}.swing/${dirplugin}.swing.impl${metainfdir}"/> |
53 |
<property name="sextante-metainfdir" value="${base}.sextante${metainfdir}"/> |
54 |
|
55 |
<property name="algorithm-translationdir" value="${base}.algorithm${traslationlibdir}/algorithm/i18n"/> |
56 |
<property name="app-translationdir" value="${base}.app/${dirplugin}.app.client${traslationappdir}/app/i18n"/> |
57 |
<property name="lib-translationdir" value="${base}.lib/${dirplugin}.lib.impl${traslationlibdir}/lib/impl/i18n"/> |
58 |
<property name="swing-translationdir" value="${base}.swing/${dirplugin}.swing.impl${traslationlibdir}/swing/impl/i18n"/> |
59 |
<property name="sextante-translationdir" value="${base}.sextante${traslationlibdir}/sextante/i18n"/> |
60 |
|
61 |
<taskdef resource="net/sf/antcontrib/antlib.xml"> |
62 |
<classpath>
|
63 |
<pathelement location="${user.dir}/ant-contrib-1.0b3.jar"/> |
64 |
</classpath>
|
65 |
</taskdef>
|
66 |
|
67 |
<!--************************************************-->
|
68 |
<!--************** MAIN TARGETS ****************-->
|
69 |
<!--************************************************-->
|
70 |
|
71 |
<target name="basic" |
72 |
description="Creates a basic raster task project" |
73 |
depends="fullbasictask, sextantetask, compile" /> |
74 |
|
75 |
<target name="preview" |
76 |
description="Creates a raster task project with preview panel" |
77 |
depends="basictask, previewtask, sextantetask, compile" /> |
78 |
|
79 |
<target name="provider" |
80 |
description="Creates a raster project structure for providers" |
81 |
depends="providerproject,compile" /> |
82 |
|
83 |
<!--************************************************-->
|
84 |
<!--************** COMPILE ****************-->
|
85 |
<!--************************************************-->
|
86 |
|
87 |
<target name="compile" |
88 |
depends="mvn-install-lin, |
89 |
mvn-eclipse-lin,
|
90 |
mvn-install-win,
|
91 |
mvn-eclipse-win" > |
92 |
</target>
|
93 |
|
94 |
<target name="mvn-install-lin" depends="checkos" if="isLinux" description="Compiles and installs"> |
95 |
<exec executable="mvn" dir="${dirplugin}"> |
96 |
<arg value="install" /> |
97 |
<arg value="-Dnative-platform=linux" /> |
98 |
<arg value="-Dnative-compiler=gcc4" /> |
99 |
<arg value="-Dnative-arch=i386" /> |
100 |
<arg value="-Dnative-distribution=all" /> |
101 |
<arg value="-Dlibrary-type=dynamic" /> |
102 |
<arg value="-Dnative-classifier=linux-all-gcc4-i386-dynamic" /> |
103 |
<arg value="-Dnative_classifier=linux-all-gcc4-i386-dynamic" /> |
104 |
<arg value="-Dmaven.test.skip" /> |
105 |
</exec>
|
106 |
</target>
|
107 |
|
108 |
<target name="mvn-eclipse-lin" depends="checkos" if="isLinux" description="eclipse:eclipse"> |
109 |
<exec executable="mvn" dir="${dirplugin}"> |
110 |
<arg value="eclipse:eclipse" /> |
111 |
<arg value="-Dnative-platform=linux" /> |
112 |
<arg value="-Dnative-compiler=gcc4" /> |
113 |
<arg value="-Dnative-arch=i386" /> |
114 |
<arg value="-Dnative-distribution=all" /> |
115 |
<arg value="-Dlibrary-type=dynamic" /> |
116 |
<arg value="-Dnative-classifier=linux-all-gcc4-i386-dynamic" /> |
117 |
<arg value="-Dnative_classifier=linux-all-gcc4-i386-dynamic" /> |
118 |
<arg value="-Dmaven.test.skip" /> |
119 |
</exec>
|
120 |
</target>
|
121 |
|
122 |
<target name="mvn-install-win" depends="checkos" if="isWindows" description="Compiles and installs"> |
123 |
<exec executable="mvn" dir="${dirplugin}"> |
124 |
<arg value="install" /> |
125 |
<arg value="-Dnative-platform=win" /> |
126 |
<arg value="-Dnative-compiler=vs8" /> |
127 |
<arg value="-Dnative-arch=i386" /> |
128 |
<arg value="-Dnative-distribution=all" /> |
129 |
<arg value="-Dlibrary-type=dynamic" /> |
130 |
<arg value="-Dnative-classifier=win-nt-vs8-i386-dynamic" /> |
131 |
<arg value="-Dnative_classifier=win-nt-vs8-i386-dynamic" /> |
132 |
<arg value="-Dmaven.test.skip" /> |
133 |
</exec>
|
134 |
</target>
|
135 |
|
136 |
<target name="mvn-eclipse-win" depends="checkos" if="isWindows" description="eclipse:eclipse"> |
137 |
<exec executable="mvn" dir="${dirplugin}"> |
138 |
<arg value="eclipse:eclipse" /> |
139 |
<arg value="-Dnative-platform=win" /> |
140 |
<arg value="-Dnative-compiler=vs8" /> |
141 |
<arg value="-Dnative-arch=i386" /> |
142 |
<arg value="-Dnative-distribution=all" /> |
143 |
<arg value="-Dlibrary-type=dynamic" /> |
144 |
<arg value="-Dnative-classifier=win-nt-vs8-i386-dynamic" /> |
145 |
<arg value="-Dnative_classifier=win-nt-vs8-i386-dynamic" /> |
146 |
<arg value="-Dmaven.test.skip" /> |
147 |
</exec>
|
148 |
</target>
|
149 |
|
150 |
</project>
|
151 |
|
152 |
|