root / trunk / extensions / extCAD / build.xml @ 30039
History | View | Annotate | Download (3.49 KB)
1 | 7814 | cesar | <project name="extCAD" default="dist" basedir="."> |
---|---|---|---|
2 | 3698 | caballero | <description>
|
3 | Instala el plugin de CAD |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="bin"/> |
||
8 | 13471 | cesar | <property name="src-test" location="src-test"/> |
9 | <property name="build-test" location="bin-test"/> |
||
10 | 3698 | caballero | <property name="dist" location="dist"/> |
11 | <property name="plugin" value="com.iver.cit.gvsig.cad"/> |
||
12 | 5607 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
13 | |||
14 | <property name="lib" value="lib"/> |
||
15 | <property name="andami" value="../_fwAndami"/> |
||
16 | <property name="jarName" value="${plugin}.jar"/> |
||
17 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
18 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
19 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
20 | <property name="andamiLibs" location="${andami}/lib"/> |
||
21 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
22 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
23 | 12272 | cesar | |
24 | 13126 | jmvivo | |
25 | 3698 | caballero | <target name="init"> |
26 | <!-- Create the time stamp -->
|
||
27 | <tstamp/> |
||
28 | 7814 | cesar | <echo>
|
29 | Compiling ${ant.project.name}...</echo>
|
||
30 | 3698 | caballero | |
31 | </target>
|
||
32 | |||
33 | |||
34 | 5607 | cesar | <target name="dist" |
35 | 3698 | caballero | description="generate the distribution" > |
36 | <!-- Create the distribution directory -->
|
||
37 | <mkdir dir="${dist}"/> |
||
38 | 5607 | cesar | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
39 | 3698 | caballero | <fileset dir="./lib" includes="*.jar,*.zip"/> |
40 | </copy>
|
||
41 | 5607 | cesar | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
42 | 3698 | caballero | <copy file="config/config.xml" todir="${dist}"/> |
43 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
44 | 3698 | caballero | <copy todir="${dist}"> |
45 | 5612 | cesar | <fileset dir="config" includes="text*.properties"/> |
46 | 3698 | caballero | </copy>
|
47 | <copy todir="${dist}/images"> |
||
48 | <fileset dir="images/" includes="*"/> |
||
49 | </copy>
|
||
50 | |||
51 | 5607 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
52 | 3698 | caballero | <fileset dir="${dist}" includes="**/**"/> |
53 | </move>
|
||
54 | </target>
|
||
55 | 13126 | jmvivo | |
56 | 5607 | cesar | <target name="batch-build" |
57 | description="compile the sources, create the jar file" |
||
58 | 7814 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
59 | 5607 | cesar | </target>
|
60 | 3698 | caballero | |
61 | 5607 | cesar | <target name="compile" description="compile the source" > |
62 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
63 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
64 | 5607 | cesar | <mkdir dir="${build}" /> |
65 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
66 | 13296 | jmvivo | <gvSIG-javac
|
67 | 13204 | jmvivo | classpath="${eclipseClasspath}"/> |
68 | 5607 | cesar | </target>
|
69 | 13126 | jmvivo | |
70 | 5607 | cesar | <target name="create-jar" |
71 | description="Creates the plugin jar"> |
||
72 | <mkdir dir="${dist}"/> |
||
73 | 5707 | cesar | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
74 | 5607 | cesar | </target>
|
75 | 13126 | jmvivo | |
76 | 5607 | cesar | <target name="copy-data-files"> |
77 | 5717 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
78 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
79 | 5607 | cesar | <copy todir="${dist}"> |
80 | 5612 | cesar | <fileset dir="config" includes="text*.properties"/> |
81 | 5607 | cesar | </copy>
|
82 | <copy todir="${dist}/images"> |
||
83 | <fileset dir="images/" includes="*"/> |
||
84 | </copy>
|
||
85 | </target>
|
||
86 | 13126 | jmvivo | |
87 | 5607 | cesar | <target name="move-to-andami"> |
88 | <move todir="${extensionsDir}/${plugin}/"> |
||
89 | <fileset dir="${dist}" includes="**/**"/> |
||
90 | </move>
|
||
91 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
92 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
93 | </copy>
|
||
94 | </target>
|
||
95 | 3698 | caballero | |
96 | <target name="clean" |
||
97 | description="clean up" > |
||
98 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
99 | <delete dir="${build}"/> |
||
100 | <delete dir="${dist}"/> |
||
101 | </target>
|
||
102 | 13471 | cesar | |
103 | |||
104 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
105 | <antcall target="generic-run-tests"> |
||
106 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.cad.AllTests"/> |
||
107 | </antcall>
|
||
108 | </target>
|
||
109 | 3698 | caballero | </project>
|