Statistics
| Revision:

root / trunk / extensions / extCenterViewToPoint / build.xml @ 38628

History | View | Annotate | Download (3.15 KB)

1 11146 cesar
<project name="extCenterViewToPoint" default="dist" basedir=".">
2
        <description>
3
                Instala el plugin de Centrar la Vista sobre un punto en Andami.
4
        </description>
5
        <!-- set global properties for this build -->
6 13236 jmvivo
        <import file="../binaries/ant/utilities.xml"/>
7 11146 cesar
        <property name="src" location="src"/>
8
        <property name="build" location="bin"/>
9 13488 cesar
        <property name="src-test" location="src-test"/>
10 13527 cesar
        <property name="build-test" location="bin-test"/>
11 11146 cesar
        <property name="dist"  location="dist"/>
12
        <property name="andamiBaseDir" location="../_fwAndami"/>
13
        <property name="andamiLibs" location="${andamiBaseDir}/lib"/>
14
        <property name="gvsigLibs" location="${andamiBaseDir}/gvSIG/extensiones/com.iver.cit.gvsig/lib"/>
15 13126 jmvivo
        <!--<property name="compile-classpath" value="${andamiBaseDir}/andami.jar:${andamiLibs}/beans.jar:${gvsigLibs}/cms.jar:${gvsigLibs}/fmap.jar:${gvsigLibs}/com.iver.cit.gvsig.jar"/>-->
16 11146 cesar
        <property name="pluginName" value="com.iver.gvsig.centerviewpoint"/>
17 34510 fdiaz
        <property name="plugin" value="${pluginName}"/>
18 11146 cesar
        <property name="installDir" location="${andamiBaseDir}/gvSIG/extensiones/${pluginName}"/>
19 11554 cesar
        <property name="buildNumberFile" location="build.number"/>
20 3525 caballero
21 11146 cesar
        <target name="init">
22
                <!-- Create the time stamp -->
23
                <tstamp/>
24
                <echo>
25
                        Compiling ${ant.project.name}...</echo>
26
        </target>
27 3525 caballero
28 6355 cesar
        <target name="batch-build"
29
                        description="compile the sources, create the jar file"
30 7216 cesar
                        depends="init,compile,create-jar,copy-data-files,move-to-installDir">
31 6355 cesar
        </target>
32 13126 jmvivo
33 11146 cesar
        <target name="dist"
34
                        description="create the jar file"
35
                        depends="init,create-jar,copy-data-files,move-to-installDir">
36
        </target>
37 6355 cesar
38 11146 cesar
        <target name="compile" description="compile the Java source code from ${src} to ${build}" >
39 6355 cesar
                <!-- Compile the Java code from ${src} to ${build} -->
40 13296 jmvivo
                <antcall target="gvSIG-import-build-number"/>
41 6355 cesar
                <mkdir dir="${build}" />
42 13126 jmvivo
                <loadEclipseClasspath project="${basedir}"/>
43 13296 jmvivo
                <gvSIG-javac
44 13204 jmvivo
                        classpath="${eclipseClasspath}"
45
                />
46 13126 jmvivo
                <!--<javac  srcdir="${src}"
47 6355 cesar
                        destdir="${build}"
48 11146 cesar
                    source="${JavaSourceVersion}"
49
                        target="${JavaTargetVersion}"
50 6355 cesar
                        debug="${debug}"
51
                        debuglevel="${debuglevel}"
52 13126 jmvivo
                        classpath="${compile-classpath}"/>-->
53 6355 cesar
        </target>
54 8259 caballero
55 6355 cesar
        <target name="create-jar"
56
                        description="Creates the plugin jar">
57
                <mkdir dir="${dist}"/>
58 11146 cesar
            <jar jarfile="${dist}/${pluginName}.jar" basedir="${build}" />
59 6355 cesar
        </target>
60 13126 jmvivo
61 34510 fdiaz
        <target name="copy-data-files" depends="make-package-info">
62 6355 cesar
            <copy file="config/config.xml" todir="${dist}"/>
63 10187 jmvivo
                <copy file="build.number" todir="${dist}"/>
64 34510 fdiaz
                <copy file="package.info" todir="${dist}"/>
65 6355 cesar
                <copy todir="${dist}">
66
                        <fileset dir="config" includes="text*.properties"/>
67
                </copy>
68
                <copy todir="${dist}/images">
69
                        <fileset dir="images/" includes="*"/>
70
                </copy>
71
        </target>
72 8259 caballero
73 6359 cesar
        <target name="move-to-installDir">
74
                <move todir="${installDir}">
75
                        <fileset dir="${dist}" includes="**/**"/>
76
                </move>
77 6355 cesar
        </target>
78 13126 jmvivo
79 11146 cesar
        <target name="clean"
80
                        description="clean dist directory" >
81
                <!-- Clean the distribution directory -->
82
                <delete dir="${dist}" failonerror="false"/>
83
        </target>
84 6355 cesar
85 13488 cesar
        <target name="run-tests" depends="batch-build,compile-tests">
86
                <antcall target="generic-run-tests">
87 13489 cesar
                        <param name="TestSuite.Name" value="com.iver.gvsig.centerviewpoint.AllTests"/>
88 13488 cesar
                </antcall>
89
        </target>
90 3525 caballero
</project>