Statistics
| Revision:

root / tags / v10_RC3 / libraries / libInternationalization / build.xml @ 34606

History | View | Annotate | Download (2.37 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="plugin" value="org.gvsig.i18n"/>
11
        <property name="jarName" value="gvsig-i18n"/>
12
        <property name="targetDir" location="../_fwAndami/lib"/>
13
        <property name="build-doc" value="doc"/>
14
        <property name="compile-classpath" value="${andamiLibs}/log4j-1.2.8.jar"/>
15

    
16
        <target name="init">
17
                <!-- Create the time stamp -->
18
                <tstamp />
19
        </target>
20

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

    
31
        <target name="dist"
32
                description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami">
33
        </target>
34

    
35
        <target                name="batch-build"
36
                                description="compile the sources, create the jar file"
37
                                depends="compile,copy-data-files,create-jar,move-to-andami">
38
        </target>
39

    
40
        <target name="compile" description="compile the source">
41
                <!-- Compile the Java code from ${src} to ${build} -->
42
                <mkdir dir="${build}" />
43
                <javac        srcdir="${src}"
44
                                destdir="${build}"
45
                                source="1.4"
46
                                target="1.4"
47
                                classpath="${compile-classpath}"
48
                                debug="${debug}"
49
                                debuglevel="${debuglevel}"
50
                                excludes="**/Tests/*.java" />
51
        </target>
52
        
53
        <target name="copy-data-files">
54
                <mkdir dir="config"/>
55
        <copy todir="${build}/org/gvsig/i18n/resources/translations">
56
                <fileset dir="config" includes="*" />
57
        </copy>
58
    </target>
59
        
60
        <target name="create-jar" description="Crea el jar de la aplicacion">
61
                <mkdir dir="${dist}"/>        
62
            <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/>
63
        </target>
64
        
65
        <target name="move-to-andami" description="Move jars and required libraries to andami">
66
                <copy file="dist/${jarName}.jar" todir="${targetDir}"/>
67
        </target>
68
        
69
        <target name="clean"
70
                description="clean up" >
71
                <!-- Delete the ${build} and ${dist} directory trees -->
72
                <delete dir="${build}"/>
73
                <delete dir="${dist}"/>
74
        </target>
75
</project>