svn-gvsig-desktop / tags / v1_11_0_Build_1304 / extensions / extCAD / build.xml @ 40002
History | View | Annotate | Download (3.63 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 | 34510 | fdiaz | description="generate the distribution" depends="make-package-info"> |
36 | 3698 | caballero | <!-- 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 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
45 | 3698 | caballero | <copy todir="${dist}"> |
46 | 5612 | cesar | <fileset dir="config" includes="text*.properties"/> |
47 | 3698 | caballero | </copy>
|
48 | <copy todir="${dist}/images"> |
||
49 | <fileset dir="images/" includes="*"/> |
||
50 | </copy>
|
||
51 | |||
52 | 5607 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
53 | 3698 | caballero | <fileset dir="${dist}" includes="**/**"/> |
54 | </move>
|
||
55 | </target>
|
||
56 | 13126 | jmvivo | |
57 | 5607 | cesar | <target name="batch-build" |
58 | description="compile the sources, create the jar file" |
||
59 | 7814 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
60 | 5607 | cesar | </target>
|
61 | 3698 | caballero | |
62 | 5607 | cesar | <target name="compile" description="compile the source" > |
63 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
64 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
65 | 5607 | cesar | <mkdir dir="${build}" /> |
66 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
67 | 13296 | jmvivo | <gvSIG-javac
|
68 | 13204 | jmvivo | classpath="${eclipseClasspath}"/> |
69 | 5607 | cesar | </target>
|
70 | 13126 | jmvivo | |
71 | 5607 | cesar | <target name="create-jar" |
72 | description="Creates the plugin jar"> |
||
73 | <mkdir dir="${dist}"/> |
||
74 | 5707 | cesar | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
75 | 5607 | cesar | </target>
|
76 | 13126 | jmvivo | |
77 | 34510 | fdiaz | <target name="copy-data-files" depends="make-package-info"> |
78 | 5717 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
79 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
80 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
81 | 5607 | cesar | <copy todir="${dist}"> |
82 | 5612 | cesar | <fileset dir="config" includes="text*.properties"/> |
83 | 5607 | cesar | </copy>
|
84 | <copy todir="${dist}/images"> |
||
85 | <fileset dir="images/" includes="*"/> |
||
86 | </copy>
|
||
87 | </target>
|
||
88 | 13126 | jmvivo | |
89 | 5607 | cesar | <target name="move-to-andami"> |
90 | <move todir="${extensionsDir}/${plugin}/"> |
||
91 | <fileset dir="${dist}" includes="**/**"/> |
||
92 | </move>
|
||
93 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
94 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
95 | </copy>
|
||
96 | </target>
|
||
97 | 3698 | caballero | |
98 | <target name="clean" |
||
99 | description="clean up" > |
||
100 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
101 | <delete dir="${build}"/> |
||
102 | <delete dir="${dist}"/> |
||
103 | </target>
|
||
104 | 13471 | cesar | |
105 | |||
106 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
107 | <antcall target="generic-run-tests"> |
||
108 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.cad.AllTests"/> |
||
109 | </antcall>
|
||
110 | </target>
|
||
111 | 3698 | caballero | </project>
|