Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extCAD / build.xml @ 5717

History | View | Annotate | Download (4.34 KB)

1
<project name="Generar extension en Andami" 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="dist"  location="dist"/>
9
  <property name="plugin" value="com.iver.cit.gvsig.cad"/>
10
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
11

    
12
        <property name="lib" value="lib"/>
13
        <property name="andami" value="../_fwAndami"/>
14
        <property name="jarName" value="${plugin}.jar"/>
15
        <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
16
        <property name="andamiJar" location="${andami}/andami.jar"/>
17
        <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/>
18
        <property name="andamiLibs" location="${andami}/lib"/>
19
        <property name="fmapLibs" location="../libFMap/lib" />
20
        <property name="fmap-compile-classpath" value="${fmapLibs}/batik-awt-util.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/gt2-legacy.jar:${fmapLibs}/gt2-main.jar:${fmapLibs}/gt2-postgis.jar:${fmapLibs}/gt2-wfs.jar:${fmapLibs}/gt2-wms.jar:${fmapLibs}/gt2sidx.jar:${fmapLibs}/hsqldb.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/jecw.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/wmsclient.jar:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar:${fmapLibs}/spatialindex.jar:${fmapLibs}/units-0.01.jar:${fmapLibs}/vecmath-1.3.jar" />
21
        <property name="compile-classpath" value="${andamiJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gt2-main.jar:${lib}/gt2-postgis.jar:${lib}/gt2-shapefile.jar:${gvsigJar}:${andamiLibs}/iver-utiles.jar:${lib}/jdom-1.0b10.jar:${fmapLibs}/jts.jar:${lib}/JWizardComponent.jar:${lib}/Smc.jar:${fmap-compile-classpath}"/>
22
        <property name="compile-sourcepath" value="../libFMap/src:../appgvSIG/src:../extJDBC/src"/>
23
        
24
        
25
  <target name="init">
26
    <!-- Create the time stamp -->
27
    <tstamp/>
28
    <!-- Create the build directory structure used by compile -->
29
    <mkdir dir="${build}"/>
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 todir="${dist}">
44
            <fileset dir="config" includes="text*.properties"/>
45
    </copy>
46
    <copy todir="${dist}/images">
47
            <fileset dir="images/" includes="*"/>
48
    </copy>
49

    
50
    <move todir="${extensionsDir}/${plugin}/">
51
            <fileset dir="${dist}" includes="**/**"/>
52
    </move>
53
  </target>
54
        
55
                <target name="batch-build"
56
                                description="compile the sources, create the jar file"
57
                                depends="compile,create-jar,copy-data-files,move-to-andami">
58
                </target>
59

    
60
                <target name="compile" description="compile the source" >
61
                        <!-- Compile the Java code from ${src} to ${build} -->
62
                        <mkdir dir="${build}" />
63
                        <javac  srcdir="${src}"
64
                                destdir="${build}"
65
                                source="1.4"
66
                                target="1.4"
67
                                classpath="${compile-classpath}"
68
                                sourcepath="${compile-sourcepath}"/>
69
                </target>
70
                
71
                <target name="create-jar"
72
                                description="Creates the plugin jar">
73
                        <mkdir dir="${dist}"/>
74
                    <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
75
                </target>
76
        
77
                <target name="copy-data-files">
78
                    <copy file="config/config.xml" 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
</project>
103