root / trunk / extensions / extCoords / build.xml @ 30617
History | View | Annotate | Download (2.62 KB)
1 | 10449 | cesar | <project name="extCoords" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin que permite cambiar las unidades de las coordenadas de la vista. |
||
4 | </description>
|
||
5 | |||
6 | <!-- set global properties for this build -->
|
||
7 | <property name="src" location="src"/> |
||
8 | <property name="build" location="bin"/> |
||
9 | <property name="dist" location="dist"/> |
||
10 | <property name="pluginName" value="org.gvsig.extcoords"/> |
||
11 | <property name="jarName" value="${pluginName}.jar"/> |
||
12 | <property name="andami" location="../_fwAndami"/> |
||
13 | <property name="installBaseDir" location="${andami}"/> |
||
14 | <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${pluginName}"/> |
||
15 | <property name="debug" value="on"/> |
||
16 | <property name="debuglevel" value="lines, vars"/> |
||
17 | <property name="sourceVersion" value="1.4" /> |
||
18 | <property name="targetVersion" value="1.4" /> |
||
19 | |||
20 | <target name="init"> |
||
21 | <!-- Create the time stamp -->
|
||
22 | <tstamp/> |
||
23 | <echo>
|
||
24 | Compiling ${ant.project.name}...</echo>
|
||
25 | </target>
|
||
26 | |||
27 | <target name="clean" |
||
28 | description="clean dist directory" > |
||
29 | <!-- Clean the distribution directory -->
|
||
30 | <delete dir="${dist}" failonerror="false"/> |
||
31 | <delete dir="${build}" failonerror="false"/> |
||
32 | </target>
|
||
33 | |||
34 | <target name="batch-build" |
||
35 | description="compile the sources, create the jar file" |
||
36 | depends="init,compile,create-jar,copy-data-files,move-to-installDir"> |
||
37 | </target>
|
||
38 | |||
39 | <target name="dist" |
||
40 | description="creates the jar file and moves necessary files to install dir" |
||
41 | depends="init,create-jar,copy-data-files,move-to-installDir"> |
||
42 | </target>
|
||
43 | |||
44 | <target name="compile" description="compile the source" > |
||
45 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
46 | <mkdir dir="${build}" /> |
||
47 | <javac srcdir="${src}" |
||
48 | destdir="${build}" |
||
49 | source="${sourceVersion}" |
||
50 | target="${targetVersion}" |
||
51 | debug="${debug}" |
||
52 | debuglevel="${debuglevel}" |
||
53 | classpath="${compile-classpath}"/> |
||
54 | </target>
|
||
55 | |||
56 | <target name="create-jar" |
||
57 | description="Creates the plugin jar"> |
||
58 | <mkdir dir="${dist}"/> |
||
59 | <jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
||
60 | </target>
|
||
61 | |||
62 | <target name="import-build-number"> |
||
63 | <copy todir="."> |
||
64 | <fileset file="${buildNumberFile}"/> |
||
65 | </copy>
|
||
66 | </target>
|
||
67 | |||
68 | <target name="copy-data-files"> |
||
69 | <copy file="config/config.xml" todir="${dist}"/> |
||
70 | <copy file="build.number" todir="${dist}" failonerror="false"/> |
||
71 | <copy todir="${dist}"> |
||
72 | <fileset dir="config" includes="text*.properties"/> |
||
73 | </copy>
|
||
74 | <copy todir="${dist}/images" failonerror="false"> |
||
75 | <fileset dir="images/" includes="*"/> |
||
76 | </copy>
|
||
77 | </target>
|
||
78 | |||
79 | <target name="move-to-installDir"> |
||
80 | <move todir="${installDir}"> |
||
81 | <fileset dir="${dist}" includes="**/**"/> |
||
82 | </move>
|
||
83 | </target>
|
||
84 | </project>
|