Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libFMap_dataFile / build.xml @ 24158

History | View | Annotate | Download (3.62 KB)

1
<project name="extCAD" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin de CAD
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="src-test" location="src-test"/>
9
  <property name="build-test" location="bin-test"/>
10
  <property name="dist"  location="dist"/>
11
  <property name="plugin" value="com.iver.cit.gvsig.cad"/>
12
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
13

    
14
        <property name="lib" value="lib"/>
15
        <property name="andami" value="../_fwAndami"/>
16
        <property name="jarName" value="${plugin}.jar"/>
17
        <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
18
        <property name="andamiJar" location="${andami}/andami.jar"/>
19
        <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/>
20
        <property name="andamiLibs" location="${andami}/lib"/>
21
        <property name="fmapLibs" location="../libFMap/lib" />
22
        <import file="../binaries/ant/utilities.xml"/>
23

    
24

    
25
  <target name="init">
26
    <!-- Create the time stamp -->
27
    <tstamp/>
28
        <echo>
29
                Compiling ${ant.project.name}...</echo>
30

    
31
  </target>
32

    
33

    
34
  <target name="dist"
35
        description="generate the distribution" >
36
    <!-- Create the distribution directory -->
37
    <mkdir dir="${dist}"/>
38
    <copy todir="${extensionsDir}/${mainplugin}/lib">
39
            <fileset dir="./lib" includes="*.jar,*.zip"/>
40
    </copy>
41
          <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
42
    <copy file="config/config.xml" todir="${dist}"/>
43
          <copy file="build.number" todir="${dist}"/>
44
    <copy todir="${dist}">
45
            <fileset dir="config" includes="text*.properties"/>
46
    </copy>
47
    <copy todir="${dist}/images">
48
            <fileset dir="images/" includes="*"/>
49
    </copy>
50

    
51
    <move todir="${extensionsDir}/${plugin}/">
52
            <fileset dir="${dist}" includes="**/**"/>
53
    </move>
54
  </target>
55

    
56
                <target name="batch-build"
57
                                description="compile the sources, create the jar file"
58
                                depends="init,compile,create-jar,copy-data-files,move-to-andami">
59
                </target>
60

    
61
                <target name="compile" description="compile the source" >
62
                        <!-- Compile the Java code from ${src} to ${build} -->
63
                        <antcall target="gvSIG-import-build-number"/>
64
                        <mkdir dir="${build}" />
65
                        <loadEclipseClasspath project="${basedir}"/>
66
                        <gvSIG-javac
67
                                classpath="${eclipseClasspath}"/>
68
                </target>
69

    
70
                <target name="create-jar"
71
                                description="Creates the plugin jar">
72
                        <mkdir dir="${dist}"/>
73
                    <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
74
                </target>
75

    
76
                <target name="copy-data-files">
77
                    <copy file="config/config.xml" todir="${dist}"/>
78
                        <copy file="build.number" todir="${dist}"/>
79
                        <copy todir="${dist}">
80
                                <fileset dir="config" includes="text*.properties"/>
81
                        </copy>
82
                        <copy todir="${dist}/images">
83
                                <fileset dir="images/" includes="*"/>
84
                        </copy>
85
                </target>
86

    
87
                <target name="move-to-andami">
88
                    <move todir="${extensionsDir}/${plugin}/">
89
                            <fileset dir="${dist}" includes="**/**"/>
90
                    </move>
91
                    <copy todir="${extensionsDir}/${mainplugin}/lib">
92
                            <fileset dir="./lib" includes="*.jar,*.zip"/>
93
                    </copy>
94
                </target>
95

    
96
  <target name="clean"
97
        description="clean up" >
98
    <!-- Delete the ${build} and ${dist} directory trees -->
99
    <delete dir="${build}"/>
100
    <delete dir="${dist}"/>
101
  </target>
102

    
103

    
104
        <target name="run-tests" depends="batch-build,compile-tests">
105
                        <antcall target="generic-run-tests">
106
                                <param name="TestSuite.Name" value="org.gvsig.data.datastores.vectorial.driver.AllTests"/>
107
                        </antcall>
108
                </target>
109
</project>
110