svn-gvsig-desktop / tags / gvsig_topologia-0_1_0-1235 / libraries / libInternationalization / build.xml @ 40339
History | View | Annotate | Download (2.96 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 | 13424 | cesar | <property name="src-test" location="src-test"/> |
8 | 4460 | cesar | <property name="build" location="bin"/> |
9 | 13424 | cesar | <property name="build-test" location="bin-test"/> |
10 | 13126 | jmvivo | <property name="andamiLibs" location="../_fwAndami/lib"/> |
11 | 4460 | cesar | <property name="dist" location="dist"/> |
12 | 8753 | cesar | <property name="lib" location="lib"/> |
13 | 4460 | cesar | <property name="plugin" value="org.gvsig.i18n"/> |
14 | 4869 | cesar | <property name="jarName" value="gvsig-i18n"/> |
15 | <property name="targetDir" location="../_fwAndami/lib"/> |
||
16 | <property name="build-doc" value="doc"/> |
||
17 | 13126 | jmvivo | <!--<property name="compile-classpath" value="${andamiLibs}/log4j-1.2.8.jar"/>-->
|
18 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
19 | 4460 | cesar | |
20 | <target name="init"> |
||
21 | <!-- Create the time stamp -->
|
||
22 | <tstamp /> |
||
23 | 9777 | cesar | <echo>
|
24 | Compiling ${ant.project.name}...</echo>
|
||
25 | 4460 | cesar | </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 | 4869 | cesar | <target name="dist" |
38 | 8010 | cesar | description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami"> |
39 | 4460 | cesar | </target>
|
40 | |||
41 | 4869 | cesar | <target name="batch-build" |
42 | description="compile the sources, create the jar file" |
||
43 | 9778 | cesar | depends="init,compile,copy-data-files,create-jar,move-to-andami"> |
44 | 4460 | cesar | </target>
|
45 | |||
46 | 4869 | cesar | <target name="compile" description="compile the source"> |
47 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
48 | <mkdir dir="${build}" /> |
||
49 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
50 | 13296 | jmvivo | <gvSIG-javac
|
51 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
52 | />
|
||
53 | 13126 | jmvivo | |
54 | <!--<javac srcdir="${src}"
|
||
55 | 4869 | cesar | destdir="${build}"
|
56 | 7776 | cesar | source="1.4"
|
57 | target="1.4"
|
||
58 | 4869 | cesar | classpath="${compile-classpath}"
|
59 | 6295 | cesar | debug="${debug}"
|
60 | debuglevel="${debuglevel}"
|
||
61 | 13126 | jmvivo | excludes="**/Tests/*.java" />-->
|
62 | 4869 | cesar | </target>
|
63 | 13126 | jmvivo | |
64 | 8010 | cesar | <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 | 13126 | jmvivo | |
71 | 4869 | cesar | <target name="create-jar" description="Crea el jar de la aplicacion"> |
72 | 13126 | jmvivo | <mkdir dir="${dist}"/> |
73 | 4869 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
74 | </target>
|
||
75 | 13126 | jmvivo | |
76 | 4869 | cesar | <target name="move-to-andami" description="Move jars and required libraries to andami"> |
77 | 8753 | cesar | <copy file="dist/${jarName}.jar" todir="${lib}"/> |
78 | <move file="dist/${jarName}.jar" todir="${targetDir}"/> |
||
79 | 4869 | cesar | </target>
|
80 | 13126 | jmvivo | |
81 | 4460 | cesar | <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 | 13342 | cesar | |
88 | 13424 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
89 | 13342 | cesar | <antcall target="generic-run-tests"> |
90 | <param name="TestSuite.Name" value="org.gvsig.i18n.AllTests"/> |
||
91 | </antcall>
|
||
92 | </target>
|
||
93 | 4460 | cesar | </project> |