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