svn-gvsig-desktop / tags / v2_0_0_prep_before_2001 / libraries / libFMap_dataFile / build.xml @ 40339
History | View | Annotate | Download (5.84 KB)
1 | 21906 | jmvivo | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 09/01/2008 13:02:25
|
||
4 | |||
5 | libFMap_data
|
||
6 | 21986 | jmvivo | Build library libFMap_dataFile
|
7 | 21906 | jmvivo | |
8 | jmvivo
|
||
9 | ====================================================================== -->
|
||
10 | <project name="libFMap_dataFile" default="batch-build"> |
||
11 | <description>
|
||
12 | Build del libDataStore |
||
13 | </description>
|
||
14 | <dirname file="${ant.file.libFMap_dataFile}" property="proyectDir"/> |
||
15 | <import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
||
16 | |||
17 | <property name="src" location="${proyectDir}/src"/> |
||
18 | <property name="src-test" location="${proyectDir}/src-test"/> |
||
19 | <property name="build" location="${proyectDir}/bin"/> |
||
20 | <property name="build-test" location="${proyectDir}/bin-test"/> |
||
21 | <property name="dist" location="${proyectDir}/dist"/> |
||
22 | 23009 | jmvivo | |
23 | 21906 | jmvivo | <!-- dbf -->
|
24 | <property name="dbf-jarName" value="org.gvsig.fmap.data.file.dbf.jar"/> |
||
25 | 23009 | jmvivo | <property name="dbf-jarIncludes" value="org/gvsig/fmap/data/feature/file/dbf/**/**"/> |
26 | 21906 | jmvivo | <property name="dbf-jarExcludes" value=""/> |
27 | 23009 | jmvivo | |
28 | 21906 | jmvivo | <!-- dgn -->
|
29 | <property name="dgn-jarName" value="org.gvsig.fmap.data.file.dgn.jar"/> |
||
30 | 23009 | jmvivo | <property name="dgn-jarIncludes" value="org/gvsig/fmap/data/feature/file/dgn/**/**"/> |
31 | <property name="dgn-jarExcludes" value="org/gvsig/fmap/data/feature/file/dgn/operation/**/**"/> |
||
32 | |||
33 | 21906 | jmvivo | <property name="dgn-operation-jarName" value="org.gvsig.fmap.data.file.dgn.operations.jar"/> |
34 | <property name="dgn-operation-jarIncludes" value="${dgn-jarExcludes}"/> |
||
35 | <property name="dgn-operation-jarExcludes" value=""/> |
||
36 | |||
37 | <!-- dxf -->
|
||
38 | <property name="dxf-jarName" value="org.gvsig.fmap.data.file.dxf.jar"/> |
||
39 | 23009 | jmvivo | <property name="dxf-jarIncludes" value="org/gvsig/fmap/data/feature/file/dxf/**/**"/> |
40 | <property name="dxf-jarExcludes" value="org/gvsig/fmap/data/feature/file/dxf/operation/**/**"/> |
||
41 | 21906 | jmvivo | |
42 | <property name="dxf-operation-jarName" value="org.gvsig.fmap.data.file.dxf.operation.jar"/> |
||
43 | <property name="dxf-operation-jarIncludes" value="${dxf-jarExcludes}"/> |
||
44 | <property name="dxf-operation-jarExcludes" value=""/> |
||
45 | |||
46 | 23009 | jmvivo | <!-- shp -->
|
47 | 21906 | jmvivo | <property name="shp-jarName" value="org.gvsig.fmap.data.file.shp.jar"/> |
48 | 23009 | jmvivo | <property name="shp-jarIncludes" value="org/gvsig/fmap/data/feature/file/shp/**/**"/> |
49 | 21906 | jmvivo | <property name="shp-jarExcludes" value=""/> |
50 | |||
51 | |||
52 | <!-- Common -->
|
||
53 | <property name="common-jarName" value="org.gvsig.fmap.data.file.jar"/> |
||
54 | <property name="common-jarIncludes" value="**/**"/> |
||
55 | <property name="common-jarExcludes" value=".svn,${dbf-jarIncludes},${dgn-jarIncludes},${dxf-jarIncludes},${shp-jarIncludes}"/> |
||
56 | |||
57 | <!-- =================================
|
||
58 | target: generate-source
|
||
59 | ================================= -->
|
||
60 | <target name="generate-source" description="--> genera el tar de fuentes"> |
||
61 | <!-- TODO -->
|
||
62 | <echo level="warning">TODO!!!!</echo> |
||
63 | </target>
|
||
64 | |||
65 | |||
66 | 23009 | jmvivo | <!-- =================================
|
67 | target: compile
|
||
68 | 21906 | jmvivo | ================================= -->
|
69 | <target name="compile" depends="" description="--> Compile sources"> |
||
70 | 22030 | jmvivo | <mkdir dir="${build}"/> |
71 | <mkdir dir="${build-test}"/> |
||
72 | 21906 | jmvivo | <!-- Compile the Java code from ${src} to ${build} -->
|
73 | <loadEclipseClasspath project="${basedir}"/> |
||
74 | <gvSIG-javac
|
||
75 | classpath="${eclipseClasspath}"/> |
||
76 | <gvSIG-javac
|
||
77 | classpath="${eclipseClasspath}" |
||
78 | srcdir="${src-test}" |
||
79 | destdir="${build-test}"/> |
||
80 | |||
81 | </target>
|
||
82 | |||
83 | 23009 | jmvivo | <!-- =================================
|
84 | target: batch-build
|
||
85 | 21906 | jmvivo | ================================= -->
|
86 | 23009 | jmvivo | <target name="batch-build" |
87 | 21906 | jmvivo | depends="compile,generate-common,generate-dbf,generate-dgn,generate-dgn-operation,generate-dxf,generate-dxf-operation,generate-shp" |
88 | 23009 | jmvivo | description="--> Prepare library"> |
89 | 21906 | jmvivo | </target>
|
90 | 23009 | jmvivo | |
91 | 21906 | jmvivo | <target name="generate-common" depends="compile"> |
92 | <mkdir dir="${dist}"/> |
||
93 | 23009 | jmvivo | <jar destfile="${dist}/${common-jarName}" |
94 | 21906 | jmvivo | basedir="${build}" |
95 | includes="${common-jarIncludes}" |
||
96 | 23009 | jmvivo | excludes="${common-jarExcludes}"/> |
97 | 21906 | jmvivo | </target>
|
98 | |||
99 | 23009 | jmvivo | |
100 | 21906 | jmvivo | <target name="generate-dbf" depends="compile,generate-common"> |
101 | <mkdir dir="${dist}"/> |
||
102 | 23009 | jmvivo | <jar destfile="${dist}/${dbf-jarName}" |
103 | 21906 | jmvivo | basedir="${build}" |
104 | includes="${dbf-jarIncludes}" |
||
105 | 23009 | jmvivo | excludes="${dbf-jarExcludes}"/> |
106 | 21906 | jmvivo | </target>
|
107 | |||
108 | <target name="generate-shp" depends="compile,generate-common,generate-dbf"> |
||
109 | <mkdir dir="${dist}"/> |
||
110 | 23009 | jmvivo | <jar destfile="${dist}/${shp-jarName}" |
111 | 21906 | jmvivo | basedir="${build}" |
112 | includes="${shp-jarIncludes}" |
||
113 | 23009 | jmvivo | excludes="${shp-jarExcludes}"/> |
114 | 21906 | jmvivo | </target>
|
115 | 23009 | jmvivo | |
116 | 21906 | jmvivo | <target name="generate-dgn" depends="compile,generate-common"> |
117 | <mkdir dir="${dist}"/> |
||
118 | 23009 | jmvivo | <jar destfile="${dist}/${dgn-jarName}" |
119 | 21906 | jmvivo | basedir="${build}" |
120 | includes="${dgn-jarIncludes}" |
||
121 | 23009 | jmvivo | excludes="${dgn-jarExcludes}"/> |
122 | 21906 | jmvivo | </target>
|
123 | |||
124 | <target name="generate-dgn-operation" depends="compile,generate-common,generate-dgn"> |
||
125 | <mkdir dir="${dist}"/> |
||
126 | 23009 | jmvivo | <jar destfile="${dist}/${dgn-operation-jarName}" |
127 | 21906 | jmvivo | basedir="${build}" |
128 | includes="${dgn-operation-jarIncludes}" |
||
129 | 23009 | jmvivo | excludes="${dgn-operation-jarExcludes}"/> |
130 | 21906 | jmvivo | </target>
|
131 | |||
132 | 23009 | jmvivo | |
133 | 21906 | jmvivo | <target name="generate-dxf" depends="compile,generate-common"> |
134 | <mkdir dir="${dist}"/> |
||
135 | 23009 | jmvivo | <jar destfile="${dist}/${dxf-jarName}" |
136 | 21906 | jmvivo | basedir="${build}" |
137 | includes="${dxf-jarIncludes}" |
||
138 | 23009 | jmvivo | excludes="${dxf-jarExcludes}"/> |
139 | 21906 | jmvivo | </target>
|
140 | |||
141 | <target name="generate-dxf-operation" depends="compile,generate-common,generate-dxf"> |
||
142 | <mkdir dir="${dist}"/> |
||
143 | 23009 | jmvivo | <jar destfile="${dist}/${dxf-operation-jarName}" |
144 | 21906 | jmvivo | basedir="${build}" |
145 | includes="${dxf-operation-jarIncludes}" |
||
146 | 23009 | jmvivo | excludes="${dxf-operation-jarExcludes}"/> |
147 | 21906 | jmvivo | </target>
|
148 | |||
149 | |||
150 | 23009 | jmvivo | <!-- =================================
|
151 | target: clean
|
||
152 | 21906 | jmvivo | ================================= -->
|
153 | <target name="clean" depends="" description="--> Clean proyect"> |
||
154 | <delete>
|
||
155 | <fileset dir="${build}"> |
||
156 | <include name="***"/> |
||
157 | <exclude name=".svn"/> |
||
158 | </fileset>
|
||
159 | <fileset dir="${build-test}"> |
||
160 | <include name="***"/> |
||
161 | <exclude name=".svn"/> |
||
162 | </fileset>
|
||
163 | |||
164 | </delete>
|
||
165 | <delete dir="${dist}" includes="*.jar"/> |
||
166 | </target>
|
||
167 | |||
168 | </project> |