Statistics
| Revision:

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

History | View | Annotate | Download (3.81 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="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
        <!--<import file="compile-classpath.xml"/>
21
        <import file="../libFMap/compile-classpath.xml"/>
22
        <import file="../_fwAndami/compile-classpath.xml"/>
23
        <property name="compile-sourcepath" value="../appgvSIG/src"/>-->
24
        <import file="../binaries/ant/utilities.xml"/>
25

    
26

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

    
33
  </target>
34

    
35

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

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

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

    
63
                <target name="compile" description="compile the source" >
64
                        <!-- Compile the Java code from ${src} to ${build} -->
65
                        <antcall target="gvSIG-import-build-number"/>
66
                        <mkdir dir="${build}" />
67
                        <loadEclipseClasspath project="${basedir}"/>
68
                        <gvSIG-javac
69
                                classpath="${eclipseClasspath}"/>
70
                        <!--<javac  srcdir="${src}"
71
                                destdir="${build}"
72
                                source="${JavaSourceVersion}"
73
                                target="${JavaTargetVersion}"
74
                                debug="${debug}"
75
                                debuglevel="${debuglevel}"
76
                                sourcepath="${compile-sourcepath}"
77
                                encoding="${encoding}">
78
                            <classpath refid="extCAD.compile-classpath"/>
79
                            <classpath refid="libFMap.compile-classpath"/>
80
                            <classpath refid="_fwAndami.compile-classpath"/>
81
                        </javac>-->
82
                </target>
83

    
84
                <target name="create-jar"
85
                                description="Creates the plugin jar">
86
                        <mkdir dir="${dist}"/>
87
                    <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
88
                </target>
89

    
90
                <target name="copy-data-files">
91
                    <copy file="config/config.xml" todir="${dist}"/>
92
                        <copy file="build.number" todir="${dist}"/>
93
                        <copy todir="${dist}">
94
                                <fileset dir="config" includes="text*.properties"/>
95
                        </copy>
96
                        <copy todir="${dist}/images">
97
                                <fileset dir="images/" includes="*"/>
98
                        </copy>
99
                </target>
100

    
101
                <target name="move-to-andami">
102
                    <move todir="${extensionsDir}/${plugin}/">
103
                            <fileset dir="${dist}" includes="**/**"/>
104
                    </move>
105
                    <copy todir="${extensionsDir}/${mainplugin}/lib">
106
                            <fileset dir="./lib" includes="*.jar,*.zip"/>
107
                    </copy>
108
                </target>
109

    
110
  <target name="clean"
111
        description="clean up" >
112
    <!-- Delete the ${build} and ${dist} directory trees -->
113
    <delete dir="${build}"/>
114
    <delete dir="${dist}"/>
115
  </target>
116
</project>
117