svn-gvsig-desktop / tags / v1_1_Build_1012 / extensions / extAddEventTheme / build.xml @ 12987
History | View | Annotate | Download (6 KB)
1 | 8765 | jjdelcerro | <project name="extAddEventTheme" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 3525 | caballero | <description>
|
3 | Instala el plugin de AƱadir tema de eventos en Andami. |
||
4 | </description>
|
||
5 | 4916 | cesar | <!-- set global properties for this build -->
|
6 | <property name="lib-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
||
7 | <property name="src" location="src"/> |
||
8 | <property name="build" location="bin"/> |
||
9 | <property name="doc" location="doc"/> |
||
10 | <property name="dist" location="dist"/> |
||
11 | <property name="without_src" location="without_src"/> |
||
12 | <property name="plugin" value="com.iver.gvsig.addeventtheme"/> |
||
13 | <property name="andami" value="../_fwAndami"/> |
||
14 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
15 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
16 | 5606 | cesar | <property name="mainplugin" value="com.iver.cit.gvsig" /> |
17 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
18 | 4916 | cesar | <property name="andamiLibs" location="${andami}/lib"/> |
19 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
20 | 6280 | cesar | <property name="compile-classpath" value="${gvsigJar}:${andamiJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar"/> |
21 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
22 | <property name="JavaTargetVersion" value="1.4"/> |
||
23 | 12479 | cesar | <property name="encoding" value="ISO_8859_1"/> |
24 | 8765 | jjdelcerro | |
25 | 4916 | cesar | <target name="init"> |
26 | <!-- Create the time stamp -->
|
||
27 | <tstamp/> |
||
28 | 8765 | jjdelcerro | <echo>
|
29 | Compiling ${ant.project.name}... |
||
30 | </echo>
|
||
31 | 4916 | cesar | </target>
|
32 | 10185 | jmvivo | |
33 | <target name="import-build-number"> |
||
34 | <copy todir="."> |
||
35 | <fileset file="${buildNumberFile}"/> |
||
36 | </copy>
|
||
37 | </target>
|
||
38 | 3525 | caballero | |
39 | <target name="dist" depends="init" |
||
40 | description="generate the distribution" > |
||
41 | <!-- Remove previous distribution directory -->
|
||
42 | <delete dir="${dist}"/> |
||
43 | <!-- Create the distribution directory structure -->
|
||
44 | <mkdir dir="${dist}"/> |
||
45 | 6891 | fjp | <!-- <mkdir dir="${dist}/src"/> -->
|
46 | <!-- <mkdir dir="${dist}/doc"/> -->
|
||
47 | 3525 | caballero | <mkdir dir="${dist}/bin"/> |
48 | <mkdir dir="${dist}/bin/com"/> |
||
49 | <mkdir dir="${dist}/bin/com/iver"/> |
||
50 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
51 | <mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
||
52 | <mkdir dir="${dist}/bin/com/iver/gvsig/addeventtheme/images"/> |
||
53 | <mkdir dir="${dist}/images"/> |
||
54 | <mkdir dir="${dist}/config"/> |
||
55 | <!-- Copy necessary distribution files to dist dir -->
|
||
56 | <copy todir="${dist}/src"> |
||
57 | <fileset dir="${src}"/> |
||
58 | </copy>
|
||
59 | 6891 | fjp | <!-- <copy todir="${dist}/doc">
|
60 | 3525 | caballero | <fileset dir="${doc}"/>
|
61 | 6891 | fjp | </copy> -->
|
62 | 3525 | caballero | <copy todir="${dist}/images"> |
63 | <fileset dir="images"/> |
||
64 | </copy>
|
||
65 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
66 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
67 | 3525 | caballero | <copy file="build.xml" todir="${dist}"/> |
68 | <copy todir="${dist}"> |
||
69 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
70 | 3525 | caballero | </copy>
|
71 | <copy todir="${dist}/bin/com/iver/gvsig/addeventtheme"> |
||
72 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
73 | 3525 | caballero | </copy>
|
74 | 4916 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/addeventtheme/${plugin}.jar" basedir="${build}"/> |
75 | 3525 | caballero | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
76 | 10185 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/addeventtheme"/> |
77 | 3525 | caballero | <copy todir="${dist}/bin/com/iver/gvsig/addeventtheme/images"> |
78 | <fileset dir="images"/> |
||
79 | </copy>
|
||
80 | <!-- Zip distribution -->
|
||
81 | <zip destfile="${dist}/gvSIGAddEventThemePlugin.zip" |
||
82 | basedir="${dist}" |
||
83 | update="true" |
||
84 | />
|
||
85 | </target>
|
||
86 | |||
87 | 4916 | cesar | <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" > |
88 | 3525 | caballero | <!-- Create the distribution directory -->
|
89 | <mkdir dir="${without_src}"/> |
||
90 | |||
91 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
92 | 4916 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
93 | 3525 | caballero | <copy file="config/config.xml" todir="${without_src}"/> |
94 | 10185 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
95 | 3525 | caballero | <copy todir="${without_src}"> |
96 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
97 | 3525 | caballero | </copy>
|
98 | <copy todir="${without_src}/images"> |
||
99 | <fileset dir="images/" includes="*"/> |
||
100 | </copy>
|
||
101 | <!-- jar file must be in gvSIG/lib directory -->
|
||
102 | 8765 | jjdelcerro | <move file="${without_src}/${plugin}.jar" todir="${lib-dir}"/> |
103 | 4916 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
104 | 3525 | caballero | <fileset dir="${without_src}" includes="**/**"/> |
105 | </move>
|
||
106 | </target>
|
||
107 | 4916 | cesar | |
108 | <target name="batch-build" |
||
109 | description="compile the sources, create the jar file" |
||
110 | 8765 | jjdelcerro | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
111 | 4916 | cesar | </target>
|
112 | 3525 | caballero | |
113 | 4916 | cesar | <target name="compile" description="compile the source" > |
114 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
115 | <mkdir dir="${build}" /> |
||
116 | <javac srcdir="${src}" |
||
117 | destdir="${build}" |
||
118 | classpath="${compile-classpath}" |
||
119 | 10565 | jmvivo | source="${JavaSourceVersion}" |
120 | target="${JavaTargetVersion}" |
||
121 | 6296 | cesar | debug="${debug}" |
122 | debuglevel="${debuglevel}" |
||
123 | 12479 | cesar | excludes="test/**" |
124 | encoding="${encoding}"/> |
||
125 | 4916 | cesar | </target>
|
126 | |||
127 | <target name="create-jar" |
||
128 | description="Creates the plugin jar"> |
||
129 | <mkdir dir="${dist}"/> |
||
130 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
131 | </target>
|
||
132 | |||
133 | 10185 | jmvivo | <target name="copy-data-files"> |
134 | 4916 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
135 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
136 | 4916 | cesar | <copy todir="${dist}"> |
137 | 5611 | cesar | <fileset dir="config" includes="text*.properties"/> |
138 | 4916 | cesar | </copy>
|
139 | <copy todir="${dist}/images"> |
||
140 | <fileset dir="images/" includes="*"/> |
||
141 | </copy>
|
||
142 | </target>
|
||
143 | |||
144 | <target name="move-to-andami"> |
||
145 | <!-- jar file must be in gvSIG/lib directory -->
|
||
146 | 8765 | jjdelcerro | <move file="${dist}/${plugin}.jar" todir="${lib-dir}"/> |
147 | 4916 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
148 | <fileset dir="${dist}" includes="**/**"/> |
||
149 | </move>
|
||
150 | </target>
|
||
151 | |||
152 | <target name="clean" |
||
153 | description="clean up"> |
||
154 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
155 | <delete dir="${build}" /> |
||
156 | <delete dir="${dist}" /> |
||
157 | </target>
|
||
158 | |||
159 | 6891 | fjp | <target name="clean-orig" |
160 | 4916 | cesar | description="clean dist directory" > |
161 | <!-- Clean the distribution directory -->
|
||
162 | 6891 | fjp | <delete dir="${dist}"/> |
163 | 4916 | cesar | </target>
|
164 | 3525 | caballero | </project> |