Revision 6358 trunk/extensions/extScripting/build.xml
build.xml | ||
---|---|---|
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
7 | 7 |
<property name="src" location="src"/> |
8 |
<property name="bin" location="bin"/>
|
|
8 |
<property name="build" location="bin"/>
|
|
9 | 9 |
<property name="doc" location="doc"/> |
10 | 10 |
<property name="scripts" location="scripts"/> |
11 | 11 |
<property name="dist" location="dist"/> |
... | ... | |
14 | 14 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
15 | 15 |
<property name="without_src" location="without_src"/> |
16 | 16 |
<property name="plugin" value="org.gvsig.scripting"/> |
17 |
<property name="jarName" value="${plugin}.jar"/> |
|
18 |
<property name="andami" location="../_fwAndami"/> |
|
19 |
<property name="installBaseDir" location="${andami}"/> |
|
20 |
<property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/> |
|
21 |
<property name="installLibDir" location="${installBaseDir}/gvSIG/extensiones/${mainplugin}/lib"/> |
|
22 |
<property name="compile-classpath" value="${andami}/andami.jar:${lib}/bsf-2.3.0rc1.jar:${lib}/bsh-2.0b1.jar:${lib}/groovy-all-1.0-beta-7.jar:${lib}/jython-2.1.jar:${lib}/scriptablethinlet-0.9.jar:${lib}/thinlet.jar"/> |
|
17 | 23 |
|
18 | 24 |
<target name="init"> |
19 | 25 |
<!-- Create the time stamp --> |
20 | 26 |
<tstamp/> |
21 | 27 |
</target> |
22 | 28 |
|
23 |
|
|
24 |
|
|
25 |
<target name="compile" depends="init" |
|
26 |
description="compile the source " > |
|
27 |
</target> |
|
28 |
|
|
29 |
<target name="dist" depends="compile" |
|
29 |
<target name="dist" depends="init" |
|
30 | 30 |
description="generate the distribution" > |
31 | 31 |
<!-- Remove previous distribution directory --> |
32 | 32 |
<delete dir="${dist}"/> |
... | ... | |
67 | 67 |
<copy todir="${dist}/bin/org/gvsig/scripting"> |
68 | 68 |
<fileset dir="." includes="text*.properties"/> |
69 | 69 |
</copy> |
70 |
<jar jarfile="${dist}/bin/org/gvsig/scripting/${plugin}.jar" basedir="${bin}"/>
|
|
70 |
<jar jarfile="${dist}/bin/org/gvsig/scripting/${plugin}.jar" basedir="${build}"/>
|
|
71 | 71 |
<copy file="config/config.xml" todir="${dist}/bin/org/gvsig/scripting"/> |
72 | 72 |
<copy todir="${dist}/bin/org/gvsig/scripting/images"> |
73 | 73 |
<fileset dir="images"/> |
... | ... | |
79 | 79 |
/> |
80 | 80 |
</target> |
81 | 81 |
|
82 |
<target name="clean" depends="dist" |
|
82 |
<target name="clean-orig" depends="dist"
|
|
83 | 83 |
description="clean dist directory" > |
84 | 84 |
<!-- Clean the distribution directory --> |
85 | 85 |
<delete dir="${dist}/src"/> |
... | ... | |
95 | 95 |
</delete> |
96 | 96 |
</target> |
97 | 97 |
|
98 |
<target name="generate-without-source" depends="compile" description="generate the distribution without the source file" >
|
|
98 |
<target name="generate-without-source" depends="init" description="generate the distribution without the source file" >
|
|
99 | 99 |
<!-- Create the distribution directory --> |
100 | 100 |
<delete dir="${without_src}"/> |
101 | 101 |
<mkdir dir="${without_src}"/> |
102 | 102 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> |
103 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
|
|
103 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/>
|
|
104 | 104 |
<copy file="config/config.xml" todir="${without_src}"/> |
105 | 105 |
<copy todir="${without_src}"> |
106 | 106 |
<fileset dir="." includes="text*.properties"/> |
... | ... | |
149 | 149 |
</move> |
150 | 150 |
</target> |
151 | 151 |
|
152 |
<target name="batch-build" |
|
153 |
description="compile the sources, create the jar file" |
|
154 |
depends="compile,create-jar,copy-data-files,move-to-installDir"> |
|
155 |
</target> |
|
156 |
|
|
157 |
<target name="compile" description="compile the source" > |
|
158 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
159 |
<mkdir dir="${build}" /> |
|
160 |
<javac srcdir="${src}" |
|
161 |
destdir="${build}" |
|
162 |
debug="${debug}" |
|
163 |
debuglevel="${debuglevel}" |
|
164 |
classpath="${compile-classpath}"/> |
|
165 |
</target> |
|
166 |
|
|
167 |
<target name="create-jar" |
|
168 |
description="Creates the plugin jar"> |
|
169 |
<mkdir dir="${dist}"/> |
|
170 |
<jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
|
171 |
</target> |
|
172 |
|
|
173 |
<target name="copy-data-files"> |
|
174 |
<copy file="config/config.xml" todir="${dist}"/> |
|
175 |
<copy todir="${dist}"> |
|
176 |
<fileset dir="config" includes="text*.properties"/> |
|
177 |
</copy> |
|
178 |
<copy todir="${dist}/images"> |
|
179 |
<fileset dir="images/" includes="*"/> |
|
180 |
</copy> |
|
181 |
</target> |
|
182 |
|
|
183 |
<target name="copy-scripts"> |
|
184 |
<copy file="config/config.xml" todir="${dist}"/> |
|
185 |
<copy todir="${dist}"> |
|
186 |
<fileset dir="config" includes="text*.properties"/> |
|
187 |
</copy> |
|
188 |
<copy todir="${dist}/scripts"> |
|
189 |
<fileset dir="${scripts}" includes="**/**"/> |
|
190 |
</copy> |
|
191 |
</target> |
|
192 |
|
|
193 |
<target name="move-to-installDir"> |
|
194 |
<move todir="${installDir}"> |
|
195 |
<fileset dir="${dist}" includes="**/**"/> |
|
196 |
</move> |
|
197 |
<copy todir="${installDir}"> |
|
198 |
<fileset dir="${lib}" includes="**/**"/> |
|
199 |
</copy> |
|
200 |
</target> |
|
201 |
|
|
202 |
<target name="clean" |
|
203 |
description="clean up" > |
|
204 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
205 |
<delete dir="${build}"/> |
|
206 |
<delete dir="${dist}"/> |
|
207 |
</target> |
|
208 |
|
|
152 | 209 |
</project> |
153 |
|
Also available in: Unified diff