svn-gvsig-desktop / tags / v1_0_2_Build_895 / extensions / extCAD / build.xml @ 10328
History | View | Annotate | Download (3.67 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 | <property name="dist" location="dist"/> |
||
9 | <property name="plugin" value="com.iver.cit.gvsig.cad"/> |
||
10 | 5607 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
11 | |||
12 | <property name="lib" value="lib"/> |
||
13 | <property name="andami" value="../_fwAndami"/> |
||
14 | <property name="jarName" value="${plugin}.jar"/> |
||
15 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
16 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
17 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
18 | <property name="andamiLibs" location="${andami}/lib"/> |
||
19 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
20 | 7773 | cesar | <import file="compile-classpath.xml"/> |
21 | <import file="../libFMap/compile-classpath.xml"/> |
||
22 | <import file="../_fwAndami/compile-classpath.xml"/> |
||
23 | 7814 | cesar | <property name="compile-sourcepath" value="../appgvSIG/src"/> |
24 | 5607 | cesar | |
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 | 10185 | 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 | 10185 | jmvivo | |
56 | <target name="import-build-number"> |
||
57 | <copy todir="."> |
||
58 | <fileset file="${buildNumberFile}"/> |
||
59 | </copy>
|
||
60 | </target>
|
||
61 | 5607 | cesar | |
62 | <target name="batch-build" |
||
63 | description="compile the sources, create the jar file" |
||
64 | 7814 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
65 | 5607 | cesar | </target>
|
66 | 3698 | caballero | |
67 | 5607 | cesar | <target name="compile" description="compile the source" > |
68 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
69 | <mkdir dir="${build}" /> |
||
70 | <javac srcdir="${src}" |
||
71 | destdir="${build}" |
||
72 | source="1.4" |
||
73 | target="1.4" |
||
74 | 6296 | cesar | debug="${debug}" |
75 | debuglevel="${debuglevel}" |
||
76 | 7773 | cesar | sourcepath="${compile-sourcepath}"> |
77 | <classpath refid="extCAD.compile-classpath"/> |
||
78 | <classpath refid="libFMap.compile-classpath"/> |
||
79 | <classpath refid="_fwAndami.compile-classpath"/> |
||
80 | </javac>
|
||
81 | 5607 | cesar | </target>
|
82 | |||
83 | <target name="create-jar" |
||
84 | description="Creates the plugin jar"> |
||
85 | <mkdir dir="${dist}"/> |
||
86 | 5707 | cesar | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
87 | 5607 | cesar | </target>
|
88 | |||
89 | <target name="copy-data-files"> |
||
90 | 5717 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
91 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
92 | 5607 | cesar | <copy todir="${dist}"> |
93 | 5612 | cesar | <fileset dir="config" includes="text*.properties"/> |
94 | 5607 | cesar | </copy>
|
95 | <copy todir="${dist}/images"> |
||
96 | <fileset dir="images/" includes="*"/> |
||
97 | </copy>
|
||
98 | </target>
|
||
99 | |||
100 | <target name="move-to-andami"> |
||
101 | <move todir="${extensionsDir}/${plugin}/"> |
||
102 | <fileset dir="${dist}" includes="**/**"/> |
||
103 | </move>
|
||
104 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
105 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
106 | </copy>
|
||
107 | </target>
|
||
108 | 3698 | caballero | |
109 | <target name="clean" |
||
110 | description="clean up" > |
||
111 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
112 | <delete dir="${build}"/> |
||
113 | <delete dir="${dist}"/> |
||
114 | </target>
|
||
115 | </project>
|