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