root / branches / v2_0_0_prep / libraries / libFMap_controls / build.xml @ 25780
History | View | Annotate | Download (4.05 KB)
1 | 22030 | jmvivo | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 24940 | jmvivo | libFMap_controls
|
4 | Build library libFMap_controls
|
||
5 | 22030 | jmvivo | |
6 | jmvivo
|
||
7 | ====================================================================== -->
|
||
8 | 24940 | jmvivo | <project name="libFMap_controls" default="batch-build"> |
9 | 22030 | jmvivo | <description>
|
10 | 24940 | jmvivo | Build ${ant.project.name} |
11 | 22030 | jmvivo | </description>
|
12 | 24940 | jmvivo | <dirname file="${ant.file.libFMap_controls}" property="proyectDir"/> |
13 | 22030 | jmvivo | <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 | <property name="lib" location="${proyectDir}/lib"/> |
||
21 | <property name="lib-references" location="${proyectDir}/lib-references"/> |
||
22 | |||
23 | 24634 | jmvivo | |
24 | 22030 | jmvivo | <!-- Common -->
|
25 | 24634 | jmvivo | <property name="this-jarName" value="org.gvsig.fmap.control.jar"/> |
26 | 22030 | jmvivo | <property name="this-jarIncludes" value="**/**"/> |
27 | <property name="this-jarExcludes" value=".svn"/> |
||
28 | |||
29 | |||
30 | <!-- =================================
|
||
31 | target: generate-source
|
||
32 | ================================= -->
|
||
33 | <target name="generate-source" description="--> genera el tar de fuentes"> |
||
34 | <!-- TODO -->
|
||
35 | <echo level="warning">TODO!!!!</echo> |
||
36 | </target>
|
||
37 | |||
38 | |||
39 | |||
40 | 24634 | jmvivo | <!-- =================================
|
41 | target: compile
|
||
42 | 22030 | jmvivo | ================================= -->
|
43 | <target name="compile" depends="update-referenced-libraries" description="--> Compile sources"> |
||
44 | <mkdir dir="${build}"/> |
||
45 | <mkdir dir="${build-test}"/> |
||
46 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
47 | <loadEclipseClasspath project="${basedir}"/> |
||
48 | <gvSIG-javac
|
||
49 | classpath="${eclipseClasspath}"/> |
||
50 | <gvSIG-javac
|
||
51 | classpath="${eclipseClasspath}" |
||
52 | srcdir="${src-test}" |
||
53 | destdir="${build-test}"/> |
||
54 | |||
55 | </target>
|
||
56 | |||
57 | 24634 | jmvivo | <!-- =================================
|
58 | target: batch-build
|
||
59 | 22030 | jmvivo | ================================= -->
|
60 | 24634 | jmvivo | <target name="batch-build" |
61 | 22030 | jmvivo | depends="update-referenced-libraries, compile,generate-this" |
62 | 24634 | jmvivo | description="--> Prepare library"> |
63 | 22030 | jmvivo | </target>
|
64 | 24634 | jmvivo | |
65 | 22030 | jmvivo | <target name="update-referenced-libraries"> |
66 | <copy todir="${lib}" failonerror="false"> |
||
67 | <fileset dir="${workspaceDir}/libFMap_mapcontext/dist" includes="*.jar,*.zip"/> |
||
68 | </copy>
|
||
69 | <copy todir="${lib-references}" failonerror="false"> |
||
70 | <fileset dir="${workspaceDir}/libFMap_mapcontext/lib" includes="*.jar,*.zip"/> |
||
71 | <fileset dir="${workspaceDir}/libFMap_mapcontext/lib-references" includes="*.jar,*.zip"/> |
||
72 | </copy>
|
||
73 | |||
74 | <copy todir="${lib}" failonerror="false"> |
||
75 | 24634 | jmvivo | <fileset dir="${workspaceDir}/libFMap_dal/dist" includes="org.gvisg.fmap.dal.jar"/> |
76 | 22030 | jmvivo | </copy>
|
77 | <copy todir="${lib-references}" failonerror="false"> |
||
78 | 24634 | jmvivo | <fileset dir="${workspaceDir}/libFMap_dal/lib" includes="*.jar,*.zip"/> |
79 | 22030 | jmvivo | </copy>
|
80 | |||
81 | <copy todir="${lib}" failonerror="false"> |
||
82 | <fileset dir="${workspaceDir}/libFMap_geometries/dist" includes="*.jar,*.zip"/> |
||
83 | </copy>
|
||
84 | <copy todir="${lib-references}" failonerror="false"> |
||
85 | <fileset dir="${workspaceDir}/libFMap_geometries/lib" includes="*.jar,*.zip"/> |
||
86 | </copy>
|
||
87 | |||
88 | <copy todir="${lib}" failonerror="false"> |
||
89 | <fileset dir="${workspaceDir}/libMetadata/dist" includes="*.jar,*.zip"/> |
||
90 | </copy>
|
||
91 | <copy todir="${lib-references}" failonerror="false"> |
||
92 | <fileset dir="${workspaceDir}/libMetadata/lib" includes="*.jar,*.zip"/> |
||
93 | 24634 | jmvivo | </copy>
|
94 | 22030 | jmvivo | </target>
|
95 | 24634 | jmvivo | |
96 | 22030 | jmvivo | <target name="generate-this" depends="compile"> |
97 | <mkdir dir="${dist}"/> |
||
98 | 24634 | jmvivo | <jar destfile="${dist}/${this-jarName}" |
99 | 22030 | jmvivo | basedir="${build}" |
100 | includes="${this-jarIncludes}" |
||
101 | 24634 | jmvivo | excludes="${this-jarExcludes}"/> |
102 | 22030 | jmvivo | </target>
|
103 | |||
104 | 24634 | jmvivo | <!-- =================================
|
105 | target: clean
|
||
106 | 22030 | jmvivo | ================================= -->
|
107 | <target name="clean" depends="" description="--> Clean proyect"> |
||
108 | <delete>
|
||
109 | <fileset dir="${build}"> |
||
110 | <include name="***"/> |
||
111 | <exclude name=".svn"/> |
||
112 | </fileset>
|
||
113 | <fileset dir="${build-test}"> |
||
114 | <include name="***"/> |
||
115 | <exclude name=".svn"/> |
||
116 | </fileset>
|
||
117 | |||
118 | </delete>
|
||
119 | <delete file="${dist}/${jarName}"/> |
||
120 | |||
121 | </target>
|
||
122 | |||
123 | </project> |