svn-gvsig-desktop / tags / v2_0_Build_1213 / extensions / extWFS2 / build.xml @ 43043
History | View | Annotate | Download (5.36 KB)
1 | 7201 | cesar | <project name="extWFS2" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 4886 | jorpiell | <description>
|
3 | Instala el plugin en Andami |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="bin"/> |
||
8 | 13485 | cesar | <property name="src-test" location="src-test"/> |
9 | <property name="build-test" location="bin-test"/> |
||
10 | 4886 | jorpiell | <property name="dist" location="dist"/> |
11 | 5624 | cesar | <property name="lib" location="lib"/> |
12 | 4886 | jorpiell | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
13 | <property name="plugin" value="com.iver.cit.gvsig.wfs2"/> |
||
14 | <property name="gvsiglibjar" value="gvsig-wfs"/> |
||
15 | <property name="fmapjar" value="fmap-wfs"/> |
||
16 | <property name="driverjar" value="wfs"/> |
||
17 | 5624 | cesar | <property name="andami" location="../_fwAndami"/> |
18 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
19 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
||
20 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
21 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
22 | 12480 | cesar | <property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
23 | 5624 | cesar | <property name="andamiLibs" location="${andami}/lib" /> |
24 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
25 | 9626 | cesar | <property name="gvsigLibs" location="../appgvSIG/lib"/> |
26 | 5624 | cesar | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
27 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
28 | 13126 | jmvivo | |
29 | 4886 | jorpiell | <target name="init"> |
30 | <!-- Create the time stamp -->
|
||
31 | <tstamp/> |
||
32 | 7201 | cesar | <echo>
|
33 | Compiling ${ant.project.name}...</echo>
|
||
34 | 4886 | jorpiell | <!-- Create the build directory structure used by compile -->
|
35 | <mkdir dir="${dist}"/> |
||
36 | 13126 | jmvivo | |
37 | 4886 | jorpiell | </target>
|
38 | |||
39 | <target name="generate-without-source" |
||
40 | description="generate the distribution without the source file"> |
||
41 | <!-- Create the distribution directory -->
|
||
42 | <mkdir dir="${dist}"/> |
||
43 | <mkdir dir="${dist}/lib"/> |
||
44 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
45 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
46 | excludes="com/iver/cit/gvsig/fmap/**" |
||
47 | />
|
||
48 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
49 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
50 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
51 | <copy file="config/config.xml" todir="${dist}"/> |
||
52 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
53 | 4886 | jorpiell | <copy todir="${dist}"> |
54 | <fileset dir="config" includes="text*.properties"/> |
||
55 | 13126 | jmvivo | </copy>
|
56 | 4886 | jorpiell | <copy todir="${lib-dir}"> |
57 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
58 | <fileset dir="." includes=".keystore"/> |
||
59 | </copy>
|
||
60 | 5624 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
61 | <!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
||
62 | 4886 | jorpiell | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
63 | </move>
|
||
64 | 5624 | cesar | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
65 | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
||
66 | </copy>
|
||
67 | <move todir="${extensionsDir}/${plugin}/"> |
||
68 | 4886 | jorpiell | <fileset dir="${dist}" includes="**/**"/> |
69 | </move>
|
||
70 | 6083 | jorpiell | <copy todir="${extensionsDir}/${plugin}/images"> |
71 | 5624 | cesar | <fileset dir="images/" includes="*"/> |
72 | 5854 | jorpiell | </copy>
|
73 | 4886 | jorpiell | </target>
|
74 | |||
75 | 5624 | cesar | <target name="batch-build" |
76 | description="compile the sources, create the jar file" |
||
77 | 7201 | cesar | depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
78 | 5624 | cesar | </target>
|
79 | 4886 | jorpiell | |
80 | 5624 | cesar | <target name="compile" description="compile the source" > |
81 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
82 | 13296 | jmvivo | <antcall target="gvSIG-import-build-number"/> |
83 | 5624 | cesar | <mkdir dir="${build}" /> |
84 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
85 | 13296 | jmvivo | <gvSIG-javac
|
86 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
87 | />
|
||
88 | 13126 | jmvivo | <!--<javac srcdir="${src}"
|
89 | 5624 | cesar | destdir="${build}"
|
90 | 12480 | cesar | source="${JavaSourceVersion}"
|
91 | target="${JavaTargetVersion}"
|
||
92 | 6297 | cesar | debug="${debug}"
|
93 | debuglevel="${debuglevel}"
|
||
94 | 12480 | cesar | classpath="${compile-classpath}"
|
95 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
96 | 5624 | cesar | </target>
|
97 | 13126 | jmvivo | |
98 | 5624 | cesar | <target name="create-jar" |
99 | description="Creates the plugin jar"> |
||
100 | <mkdir dir="${dist}/lib"/> |
||
101 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
102 | excludes="com/iver/cit/gvsig/fmap/**" |
||
103 | />
|
||
104 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
105 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
106 | </target>
|
||
107 | 4886 | jorpiell | |
108 | 5624 | cesar | <target name="copy-data-files"> |
109 | <copy file="config/config.xml" todir="${dist}"/> |
||
110 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
111 | 5624 | cesar | <copy todir="${dist}"> |
112 | <fileset dir="config" includes="text*.properties"/> |
||
113 | </copy>
|
||
114 | <copy todir="${dist}/images"> |
||
115 | <fileset dir="images/" includes="*"/> |
||
116 | </copy>
|
||
117 | </target>
|
||
118 | 13126 | jmvivo | |
119 | 5624 | cesar | <target name="copy-libs"> |
120 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
121 | <fileset file="${remoteclientjar}"/> |
||
122 | </copy>
|
||
123 | </target>
|
||
124 | 13126 | jmvivo | |
125 | 5624 | cesar | <target name="move-to-andami"> |
126 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
127 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
128 | </copy>
|
||
129 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
130 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
131 | </move>
|
||
132 | <move todir="${extensionsDir}/${plugin}/"> |
||
133 | <fileset dir="${dist}" includes="**/**"/> |
||
134 | </move>
|
||
135 | </target>
|
||
136 | 13126 | jmvivo | |
137 | 4886 | jorpiell | <target name="clean" |
138 | description="clean up" > |
||
139 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
140 | <delete dir="${dist}"/> |
||
141 | 5624 | cesar | <delete dir="${build}"/> |
142 | 4886 | jorpiell | </target>
|
143 | 13485 | cesar | |
144 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
145 | <antcall target="generic-run-tests"> |
||
146 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.wfs.AllTests"/> |
||
147 | </antcall>
|
||
148 | </target>
|
||
149 | 4886 | jorpiell | </project> |