Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libInternationalization / build.xml @ 23513

History | View | Annotate | Download (2.43 KB)

1
<project name="i18n (Internationalization)" default="dist" basedir=".">
2
        <description>
3
        Construye el jar de la biblioteca gvsig-i18n (libInternationalization)
4
    </description>
5
        <import file="../binaries/ant/utilities.xml"/>
6
        <!-- set global properties for this build -->
7
        <property name="src" location="src"/>
8
        <property name="src-test" location="src-test"/>
9
        <property name="build" location="bin"/>
10
        <property name="build-test" location="bin-test"/>
11
        <property name="dist"  location="${lib_loc}"/>
12
        <property name="jarName" value="org.gvsig.i18n"/>
13
        <property name="build-doc" value="doc"/>
14

    
15

    
16
        <target name="init">
17
                <!-- Create the time stamp -->
18
                <tstamp />
19
                <echo>
20
                        Compiling ${ant.project.name}...</echo>
21
        </target>
22

    
23
        <target name="build-doc" depends="" description="Genera la documentación">
24
                <javadoc
25
                        packagenames="org.gvsig.i18n.*"
26
                        sourcepath="src"
27
                        defaultexcludes="yes"
28
                        destdir="${build-doc}/org.gvsig.i18n"
29
                        windowtitle="libInternationalization API">
30
                </javadoc>
31
        </target>
32

    
33
        <target name="dist"
34
                description="generate the distribution" depends="copy-data-files,create-jar">
35
        </target>
36

    
37
        <target                name="batch-build"
38
                                description="compile the sources, create the jar file"
39
                                depends="init,compile,copy-data-files,create-jar">
40
        </target>
41

    
42
        <target name="compile" description="compile the source">
43
                <!-- Compile the Java code from ${src} to ${build} -->
44
                <mkdir dir="${build}" />
45
                <loadEclipseClasspath project="${basedir}"/>
46
                <gvSIG-javac
47
                        classpath="${eclipseClasspath}"
48
                />
49

    
50
                <!--<javac        srcdir="${src}"
51
                                destdir="${build}"
52
                                source="1.4"
53
                                target="1.4"
54
                                classpath="${compile-classpath}"
55
                                debug="${debug}"
56
                                debuglevel="${debuglevel}"
57
                                excludes="**/Tests/*.java" />-->
58
        </target>
59

    
60
        <target name="copy-data-files">
61
                <mkdir dir="config"/>
62
        <copy todir="${build}/org/gvsig/i18n/resources/translations">
63
                <fileset dir="config" includes="*" />
64
        </copy>
65
    </target>
66

    
67
        <target name="create-jar" description="Crea el jar de la aplicacion">
68
                <mkdir dir="${dist}"/>
69
            <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/>
70
        </target>
71

    
72
        <target name="clean"
73
                description="clean up" >
74
                <!-- Delete the ${build} and ${dist} directory trees -->
75
                <delete dir="${build}"/>
76
        </target>
77

    
78
        <target name="run-tests" depends="batch-build,compile-tests">
79
                <antcall target="generic-run-tests">
80
                        <param name="TestSuite.Name" value="org.gvsig.i18n.AllTests"/>
81
                </antcall>
82
        </target>
83
</project>