Revision 26716 branches/v2_0_0_prep/libraries/libTools/build.xml
build.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<!-- ====================================================================== |
3 |
02/09/2008 09:29 |
|
4 |
|
|
5 | 3 |
libTools |
6 |
Build library libTols |
|
7 |
|
|
8 |
jmvivo |
|
4 |
Build library libTools |
|
9 | 5 |
====================================================================== --> |
10 | 6 |
<project name="libTools" default="batch-build"> |
11 | 7 |
<description> |
12 | 8 |
Build del ${ant.project.name} |
13 | 9 |
</description> |
14 | 10 |
<dirname file="${ant.file.libTools}" property="proyectDir"/> |
15 |
<import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
|
11 |
<import file="${proyectDir}/../binaries/ant/utilities.xml"/>
|
|
16 | 12 |
|
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 |
<property name="jarName" value="org.gvsig.tools.jar"/> |
|
23 |
|
|
13 |
<property name="dist" location="${proyectDir}/dist"/> |
|
14 |
<property name="jarName" value="org.gvsig.tools.jar"/> |
|
15 |
<property name="mvnJarName" value="libTools-2.0-SNAPSHOT.jar" /> |
|
24 | 16 |
|
25 | 17 |
<!-- ================================= |
26 | 18 |
target: generate-source |
... | ... | |
29 | 21 |
<!-- TODO --> |
30 | 22 |
<echo level="warning">TODO!!!!</echo> |
31 | 23 |
</target> |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
<!-- ================================= |
|
36 |
target: compile |
|
37 |
================================= --> |
|
38 |
<target name="compile" depends="" description="--> Compile sources"> |
|
39 |
<mkdir dir="${build}"/> |
|
40 |
<mkdir dir="${build-test}"/> |
|
41 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
42 |
<loadEclipseClasspath project="${basedir}"/> |
|
43 |
<gvSIG-javac |
|
44 |
classpath="${eclipseClasspath}"/> |
|
45 |
<gvSIG-javac |
|
46 |
classpath="${eclipseClasspath}" |
|
47 |
srcdir="${src-test}" |
|
48 |
destdir="${build-test}"/> |
|
49 |
|
|
50 |
</target> |
|
51 | 24 |
|
52 |
<!-- ================================= |
|
53 |
target: batch-build |
|
54 |
================================= --> |
|
55 |
<target name="batch-build" depends="compile" description="--> Prepare library"> |
|
56 |
<mkdir dir="${dist}"/> |
|
57 |
<jar destfile="${dist}/${jarName}" basedir="${build}"/> |
|
58 |
</target> |
|
25 |
<!-- ================================= |
|
26 |
target: compile |
|
27 |
================================= --> |
|
28 |
<target name="compile" depends="" description="--> Compile sources"> |
|
29 |
<mvn-compile/> |
|
30 |
</target> |
|
59 | 31 |
|
60 |
<!-- ================================= |
|
61 |
target: clean |
|
62 |
================================= --> |
|
63 |
<target name="clean" depends="" description="--> Clean proyect"> |
|
64 |
<delete> |
|
65 |
<fileset dir="${build}"> |
|
66 |
<include name="***"/> |
|
67 |
<exclude name=".svn"/> |
|
68 |
</fileset> |
|
69 |
<fileset dir="${build-test}"> |
|
70 |
<include name="***"/> |
|
71 |
<exclude name=".svn"/> |
|
72 |
</fileset> |
|
73 |
|
|
74 |
</delete> |
|
75 |
<delete file="${dist}/${jarName}"/> |
|
76 |
|
|
32 |
<!-- ================================= |
|
33 |
target: batch-build |
|
34 |
================================= --> |
|
35 |
<target name="batch-build" description="--> Prepare library"> |
|
36 |
<mvn-install tofile="${dist}/${jarName}" mvnJarName="${mvnJarName}"/> |
|
77 | 37 |
</target> |
38 |
|
|
39 |
<!-- ================================= |
|
40 |
target: clean |
|
41 |
================================= --> |
|
42 |
<target name="clean" description="--> Clean proyect"> |
|
43 |
<mvn-clean/> |
|
44 |
</target> |
|
78 | 45 |
|
79 | 46 |
<!-- ================================= |
80 | 47 |
javadoc |
81 | 48 |
================================= --> |
82 |
<target name="Javadoc" description="clean javadoc dirs"> |
|
83 |
<mkdir dir="docs"/> |
|
84 |
<mkdir dir="docs/reference"/> |
|
85 |
<delete> |
|
86 |
<fileset dir="docs/reference"> |
|
87 |
<include name="***"/> |
|
88 |
</fileset> |
|
89 |
</delete> |
|
49 |
<target name="javadoc" description="--> Create javadoc"> |
|
50 |
<mvn-javadoc/> |
|
51 |
</target> |
|
90 | 52 |
|
91 |
<javadoc destdir="docs/reference" author="true" version="true" use="true" windowtitle="gvSIG's tools and patterns library"> |
|
92 |
|
|
93 |
<packageset dir="src" defaultexcludes="yes"> |
|
94 |
<include name="org/gvsig/tools"/> |
|
95 |
<include name="org/gvsig/tools/dynobject"/> |
|
96 |
<include name="org/gvsig/tools/evaluator"/> |
|
97 |
<include name="org/gvsig/tools/exception"/> |
|
98 |
<include name="org/gvsig/tools/extensionpoint"/> |
|
99 |
<include name="org/gvsig/tools/locator"/> |
|
100 |
<include name="org/gvsig/tools/observer"/> |
|
101 |
<include name="org/gvsig/tools/operations"/> |
|
102 |
<include name="org/gvsig/tools/persistence"/> |
|
103 |
<include name="org/gvsig/tools/task"/> |
|
104 |
<include name="org/gvsig/tools/undo"/> |
|
105 |
<include name="org/gvsig/tools/undo/command"/> |
|
106 |
<include name="org/gvsig/tools/visitor"/> |
|
107 |
</packageset> |
|
108 |
|
|
109 |
<doctitle><![CDATA[<h2>gvSIG's tools and patterns library</h2>]]></doctitle> |
|
110 |
<bottom><![CDATA[<i>Copyright © 2008 gvSIG Org. All Rights Reserved.</i>]]></bottom> |
|
111 |
<tag name="todo" scope="all" description="To do:" /> |
|
112 |
</javadoc> |
|
113 |
<echo>JavaDoc generado</echo> |
|
114 |
</target> |
|
115 |
|
|
116 |
</project> |
|
53 |
</project> |
Also available in: Unified diff