Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libCorePlugin / build.xml @ 13296

History | View | Annotate | Download (3.35 KB)

1
<project name="Core plugin" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
  <!-- set global properties for this build -->
6
        <property name="src" location="src"/>
7
        <property name="lib" location="../_fwAndami/lib"/>
8
        <property name="build" location="bin"/>
9
        <property name="dist"  location="dist"/>
10
        <property name="andamiJar" location="../_fwAndami/andami.jar"/>
11
        <property name="plugin" value="com.iver.core"/>
12
        <property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/>
13
        <!--<property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:${andamiJar}:${lib}/beans.jar" />-->
14
        <import file="../binaries/ant/utilities.xml"/>
15

    
16
  <target name="init">
17
    <!-- Create the time stamp -->
18
    <tstamp/>
19
        <echo>
20
                Compiling ${ant.project.name}...</echo>
21
    <!-- Create the build directory structure used by compile -->
22
    <mkdir dir="${build}"/>
23
  </target>
24

    
25
  <target name="dist" description="generate the distribution" >
26
    <!-- Create the distribution directory -->
27
    <mkdir dir="${dist}"/>
28

    
29
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
30
    <copy todir="${build}">
31
            <fileset dir="${src}" includes="**"/>
32
    </copy>
33
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
34
    <copy file="config/config.xml" todir="${dist}"/>
35
          <copy file="build.number" todir="${dist}"/>
36
    <copy todir="${dist}">
37
            <fileset dir="config" includes="text*.properties"/>
38
    </copy>
39
    <copy todir="${dist}/images">
40
            <fileset dir="images/" includes="*"/>
41
    </copy>
42
    <copy todir="${dist}">
43
            <fileset dir="." includes="*.jar"/>
44
    </copy>
45

    
46
    <move todir="${targetDir}/${plugin}/">
47
            <fileset dir="${dist}" includes="**/**"/>
48
    </move>
49
  </target>
50

    
51
    <target name="batch-build"
52
                description="compile the sources, create the jar file"
53
                depends="compile,create-jar,copy-data-files,move-to-andami">
54
    </target>
55

    
56
    <target name="compile" description="compile the source" >
57
                <antcall target="gvSIG-import-build-number"/>
58
        <!-- Compile the Java code from ${src} to ${build} -->
59
            <mkdir dir="${build}" />
60
                <loadEclipseClasspath project="${basedir}"/>
61
                <gvSIG-javac
62
                        classpath="${eclipseClasspath}"
63
                />
64
        <!--<javac        srcdir="${src}"
65
                                destdir="${build}"
66
                                source="1.4"
67
                                target="1.4"
68
                                debug="${debug}"
69
                                debuglevel="${debuglevel}"
70
                                classpath="${compile-classpath}"/>-->
71
        </target>
72

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

    
87
        <target name="move-to-andami" description="Moves the build directory to andami">
88
            <move todir="${targetDir}/${plugin}/">
89
                    <fileset dir="${dist}" includes="**/**"/>
90
            </move>
91
        </target>
92

    
93
        <target name="create-jar" description="Crea el jar de la aplicacion">
94
                <mkdir dir="${dist}"/>
95
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
96
        </target>
97

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

    
104
</project>
105