svn-gvsig-desktop / tags / v1_0_2_Build_899 / libraries / libInternationalization / build.xml @ 43228
History | View | Annotate | Download (2.46 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="build" location="bin"/> |
8 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
9 |
<property name="dist" location="dist"/> |
10 |
<property name="lib" location="lib"/> |
11 |
<property name="plugin" value="org.gvsig.i18n"/> |
12 |
<property name="jarName" value="gvsig-i18n"/> |
13 |
<property name="targetDir" location="../_fwAndami/lib"/> |
14 |
<property name="build-doc" value="doc"/> |
15 |
<property name="compile-classpath" value="${andamiLibs}/log4j-1.2.8.jar"/> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp /> |
20 |
</target>
|
21 |
|
22 |
<target name="build-doc" depends="" description="Genera la documentación"> |
23 |
<javadoc
|
24 |
packagenames="org.gvsig.i18n.*" |
25 |
sourcepath="src" |
26 |
defaultexcludes="yes" |
27 |
destdir="${build-doc}/org.gvsig.i18n" |
28 |
windowtitle="libInternationalization API"> |
29 |
</javadoc>
|
30 |
</target>
|
31 |
|
32 |
<target name="dist" |
33 |
description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami"> |
34 |
</target>
|
35 |
|
36 |
<target name="batch-build" |
37 |
description="compile the sources, create the jar file" |
38 |
depends="compile,copy-data-files,create-jar,move-to-andami"> |
39 |
</target>
|
40 |
|
41 |
<target name="compile" description="compile the source"> |
42 |
<!-- Compile the Java code from ${src} to ${build} -->
|
43 |
<mkdir dir="${build}" /> |
44 |
<javac srcdir="${src}" |
45 |
destdir="${build}" |
46 |
source="1.4" |
47 |
target="1.4" |
48 |
classpath="${compile-classpath}" |
49 |
debug="${debug}" |
50 |
debuglevel="${debuglevel}" |
51 |
excludes="**/Tests/*.java" /> |
52 |
</target>
|
53 |
|
54 |
<target name="copy-data-files"> |
55 |
<mkdir dir="config"/> |
56 |
<copy todir="${build}/org/gvsig/i18n/resources/translations"> |
57 |
<fileset dir="config" includes="*" /> |
58 |
</copy>
|
59 |
</target>
|
60 |
|
61 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
62 |
<mkdir dir="${dist}"/> |
63 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
64 |
</target>
|
65 |
|
66 |
<target name="move-to-andami" description="Move jars and required libraries to andami"> |
67 |
<copy file="dist/${jarName}.jar" todir="${lib}"/> |
68 |
<move file="dist/${jarName}.jar" todir="${targetDir}"/> |
69 |
</target>
|
70 |
|
71 |
<target name="clean" |
72 |
description="clean up" > |
73 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
74 |
<delete dir="${build}"/> |
75 |
<delete dir="${dist}"/> |
76 |
</target>
|
77 |
</project>
|