svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / build.xml @ 24798
History | View | Annotate | Download (3.45 KB)
1 | 22001 | jmvivo | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | libFMap_geometries
|
||
4 | Build library libFMap_geometries
|
||
5 | |||
6 | jmvivo
|
||
7 | ====================================================================== -->
|
||
8 | <project name="libFMap_geometries" default="batch-build"> |
||
9 | <description>
|
||
10 | Build libFMap_geometries |
||
11 | </description>
|
||
12 | <dirname file="${ant.file.libFMap_geometries}" property="proyectDir"/> |
||
13 | <import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
||
14 | |||
15 | <property name="src" location="${proyectDir}/src"/> |
||
16 | <property name="src-test" location="${proyectDir}/src-test"/> |
||
17 | <property name="build" location="${proyectDir}/bin"/> |
||
18 | <property name="build-test" location="${proyectDir}/bin-test"/> |
||
19 | <property name="dist" location="${proyectDir}/dist"/> |
||
20 | 24635 | jmvivo | |
21 | 22001 | jmvivo | <!-- Common-Operations -->
|
22 | 24635 | jmvivo | <property name="common-operations-jarName" value="org.gvsig.fmap.geometry.operations.jar"/> |
23 | 22001 | jmvivo | <property name="common-operations-jarIncludes" value="org/gvsig/fmap/geom/operation/*/**"/> |
24 | <property name="common-operations-jarExcludes" value="org/gvsig/fmap/geom/operation/*.class"/> |
||
25 | |||
26 | 24635 | jmvivo | |
27 | 22001 | jmvivo | <!-- Common -->
|
28 | 24635 | jmvivo | <property name="common-jarName" value="org.gvsig.fmap.geometry.jar"/> |
29 | 22001 | jmvivo | <property name="common-jarIncludes" value="org/gvsig/fmap/geom/**/**"/> |
30 | <property name="common-jarExcludes" value=".svn,${common-operations-jarIncludes}"/> |
||
31 | |||
32 | |||
33 | <!-- =================================
|
||
34 | target: generate-source
|
||
35 | ================================= -->
|
||
36 | <target name="generate-source" description="--> genera el tar de fuentes"> |
||
37 | <!-- TODO -->
|
||
38 | <echo level="warning">TODO!!!!</echo> |
||
39 | </target>
|
||
40 | |||
41 | |||
42 | |||
43 | 24635 | jmvivo | <!-- =================================
|
44 | target: compile
|
||
45 | 22001 | jmvivo | ================================= -->
|
46 | <target name="compile" depends="" description="--> Compile sources"> |
||
47 | <mkdir dir="${build}"/> |
||
48 | 22030 | jmvivo | <mkdir dir="${build-test}"/> |
49 | 22001 | jmvivo | <!-- Compile the Java code from ${src} to ${build} -->
|
50 | <loadEclipseClasspath project="${basedir}"/> |
||
51 | <gvSIG-javac
|
||
52 | classpath="${eclipseClasspath}"/> |
||
53 | <gvSIG-javac
|
||
54 | classpath="${eclipseClasspath}" |
||
55 | srcdir="${src-test}" |
||
56 | destdir="${build-test}"/> |
||
57 | |||
58 | </target>
|
||
59 | |||
60 | 24635 | jmvivo | <!-- =================================
|
61 | target: batch-build
|
||
62 | 22001 | jmvivo | ================================= -->
|
63 | 24635 | jmvivo | <target name="batch-build" |
64 | 22001 | jmvivo | depends="compile,generate-common,generate-common-operations" |
65 | 24635 | jmvivo | description="--> Prepare library"> |
66 | 22001 | jmvivo | </target>
|
67 | 24635 | jmvivo | |
68 | 22001 | jmvivo | <target name="generate-common" depends="compile"> |
69 | <mkdir dir="${dist}"/> |
||
70 | 24635 | jmvivo | <jar destfile="${dist}/${common-jarName}" |
71 | 22001 | jmvivo | basedir="${build}" |
72 | includes="${common-jarIncludes}" |
||
73 | 24635 | jmvivo | excludes="${common-jarExcludes}"/> |
74 | <jar destfile="${dist}/${common-jarName}" |
||
75 | 22001 | jmvivo | update="true" |
76 | basedir="${build}" |
||
77 | includes="${common-operations-jarExcludes}" |
||
78 | />
|
||
79 | </target>
|
||
80 | |||
81 | 24635 | jmvivo | |
82 | 22001 | jmvivo | <target name="generate-common-operations" depends="compile,generate-common"> |
83 | <mkdir dir="${dist}"/> |
||
84 | 24635 | jmvivo | <jar destfile="${dist}/${common-operations-jarName}" |
85 | 22001 | jmvivo | basedir="${build}" |
86 | includes="${common-operations-jarIncludes}" |
||
87 | 24635 | jmvivo | excludes="${common-operations-jarExcludes}"/> |
88 | 22001 | jmvivo | </target>
|
89 | |||
90 | 24635 | jmvivo | <!-- =================================
|
91 | target: clean
|
||
92 | 22001 | jmvivo | ================================= -->
|
93 | <target name="clean" depends="" description="--> Clean proyect"> |
||
94 | <delete>
|
||
95 | <fileset dir="${build}"> |
||
96 | <include name="***"/> |
||
97 | <exclude name=".svn"/> |
||
98 | </fileset>
|
||
99 | <fileset dir="${build-test}"> |
||
100 | <include name="***"/> |
||
101 | <exclude name=".svn"/> |
||
102 | </fileset>
|
||
103 | |||
104 | </delete>
|
||
105 | <delete file="${dist}/${jarName}"/> |
||
106 | |||
107 | </target>
|
||
108 | |||
109 | </project> |