svn-gvsig-desktop / tags / v1_2_Build_1201 / libraries / libInternationalization / build.xml @ 34054
History | View | Annotate | Download (2.96 KB)
1 |
<project name="i18n (Internationalization)" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Construye el jar de la biblioteca gvsig-i18n (libInternationalization) |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="src-test" location="src-test"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="build-test" location="bin-test"/> |
10 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="lib" location="lib"/> |
13 |
<property name="plugin" value="org.gvsig.i18n"/> |
14 |
<property name="jarName" value="gvsig-i18n"/> |
15 |
<property name="targetDir" location="../_fwAndami/lib"/> |
16 |
<property name="build-doc" value="doc"/> |
17 |
<!--<property name="compile-classpath" value="${andamiLibs}/log4j-1.2.8.jar"/>-->
|
18 |
<import file="../binaries/ant/utilities.xml"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp /> |
23 |
<echo>
|
24 |
Compiling ${ant.project.name}...</echo>
|
25 |
</target>
|
26 |
|
27 |
<target name="build-doc" depends="" description="Genera la documentación"> |
28 |
<javadoc
|
29 |
packagenames="org.gvsig.i18n.*" |
30 |
sourcepath="src" |
31 |
defaultexcludes="yes" |
32 |
destdir="${build-doc}/org.gvsig.i18n" |
33 |
windowtitle="libInternationalization API"> |
34 |
</javadoc>
|
35 |
</target>
|
36 |
|
37 |
<target name="dist" |
38 |
description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami"> |
39 |
</target>
|
40 |
|
41 |
<target name="batch-build" |
42 |
description="compile the sources, create the jar file" |
43 |
depends="init,compile,copy-data-files,create-jar,move-to-andami"> |
44 |
</target>
|
45 |
|
46 |
<target name="compile" description="compile the source"> |
47 |
<!-- Compile the Java code from ${src} to ${build} -->
|
48 |
<mkdir dir="${build}" /> |
49 |
<loadEclipseClasspath project="${basedir}"/> |
50 |
<gvSIG-javac
|
51 |
classpath="${eclipseClasspath}" |
52 |
/>
|
53 |
|
54 |
<!--<javac srcdir="${src}"
|
55 |
destdir="${build}"
|
56 |
source="1.4"
|
57 |
target="1.4"
|
58 |
classpath="${compile-classpath}"
|
59 |
debug="${debug}"
|
60 |
debuglevel="${debuglevel}"
|
61 |
excludes="**/Tests/*.java" />-->
|
62 |
</target>
|
63 |
|
64 |
<target name="copy-data-files"> |
65 |
<mkdir dir="config"/> |
66 |
<copy todir="${build}/org/gvsig/i18n/resources/translations"> |
67 |
<fileset dir="config" includes="*" /> |
68 |
</copy>
|
69 |
</target>
|
70 |
|
71 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
72 |
<mkdir dir="${dist}"/> |
73 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
74 |
</target>
|
75 |
|
76 |
<target name="move-to-andami" description="Move jars and required libraries to andami"> |
77 |
<copy file="dist/${jarName}.jar" todir="${lib}"/> |
78 |
<move file="dist/${jarName}.jar" todir="${targetDir}"/> |
79 |
</target>
|
80 |
|
81 |
<target name="clean" |
82 |
description="clean up" > |
83 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
84 |
<delete dir="${build}"/> |
85 |
<delete dir="${dist}"/> |
86 |
</target>
|
87 |
|
88 |
<target name="run-tests" depends="batch-build,compile-tests"> |
89 |
<antcall target="generic-run-tests"> |
90 |
<param name="TestSuite.Name" value="org.gvsig.i18n.AllTests"/> |
91 |
</antcall>
|
92 |
</target>
|
93 |
</project>
|