Statistics
| Revision:

root / trunk / extensions / extDerivedGeometries / build.xml @ 27865

History | View | Annotate | Download (4.63 KB)

1
        <project name="extDerivedGeometries" default="install" basedir=".">
2
            
3
                <description>
4
                Installs the plugin extDerivedGeometries in gvSIG.
5
            </description>
6

    
7
                  <!-- set global properties for this build -->
8
                  <property name="src" location="src"/>
9
                  <property name="build" location="bin"/>
10
                  <property name="dist"  location="dist"/>
11
                  <property name="lib"  location="lib"/>
12
                  <property name="plugin" value="es.iver.derivedGeom"/>
13
                  <property name="andami-lib" value="../_fwAndami/lib"/>
14
                  <property name="andami" value="../_fwAndami/"/>
15
                  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
16
                  <property name="validation-dir" location="../_fwAndami/lib"/>
17
                  <property name="gvSIGlib-dir" location="${extension-dir}/com.iver.cit.gvsig/lib"/>        
18
                  <property name="model-dir" location="../_fwAndami/gvSIG/extensiones/"/>        
19
                  <property name="img-dir" location="../_fwAndami/src/images"/>
20
                  <property name="theme-dir" location="../_fwAndami/theme"/>
21
                  <property name="gvSIG-dir" location="${extension-dir}/com.iver.cit.gvsig/"/>
22
                  <property name="jarName" value="es.iver.derivedGeom.jar"/>
23
                <import file="../binaries/ant/utilities.xml"/>
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
            <mkdir dir="${dist}"/>
31
                  <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
32
                  <!-- <buildnumber/> -->
33
          </target>
34
                
35
        <target name="install" depends="compile,generate-without-source,generate-validation-without-source, generate-model-without-source">
36
        </target>
37

    
38
        <target name="buildNumber">
39
                <propertyfile 
40
                        file="build.number"
41
                        comment="Build Number for ANT. Do not edit!">
42
                        <entry  
43
                                key="build.number" 
44
                                default="0" 
45
                                type="int" operation="+"/>
46
                        </propertyfile>
47
                <property file="build.number"/>
48
        </target>
49

    
50

    
51
        <target name="distribution" depends="buildNumber,install">
52
        </target>
53

    
54
                
55
        <target name="generate-without-source" description="generate the distribution without the source file" >
56
            <!-- Create the distribution directory -->
57
            <mkdir dir="${dist}"/>
58

    
59
            <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
60
            <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
61

    
62
                <copy todir="${dist}">
63
                        <fileset dir="config/" includes="*"/>
64
            </copy>
65
                
66
                <mkdir dir="${dist}/images"/>
67
                <copy todir="${dist}/images">
68
                        <fileset dir="images" includes="*"/>
69
                </copy>
70
                <!-- <copy todir="${dist}">
71
                        <fileset dir="lib" includes="*"/>
72
                </copy> -->
73
                                
74
            <loadproperties srcFile="build.number"/>
75
                <replace casesensitive="true"
76
                        file="${dist}/about.htm"
77
                        token="#build.number#"
78
                        value="${build.number}"/>
79
            <copy todir="${dist}">
80
                    <fileset dir="config" includes="text*.properties"/>
81
            </copy>
82
                
83
            <copy file="build.number" todir="${dist}"/>
84

    
85
                <!-- <move file="${dist}/${plugin}.jar" todir="${gvSIGlib-dir}" />
86
            <move todir="${extension-dir}/${plugin}/">
87
                    <fileset dir="${dist}" includes="**/**" />
88
            </move> -->
89
        </target>
90
                
91
                <target name="compile" description="compile the source" >
92
                                <!-- Compile the Java code from ${src} to ${build} -->
93
                                <mkdir dir="${build}" />
94
                                <loadEclipseClasspath project="${basedir}"/>
95
                                <gvSIG-javac
96
                                        classpath="${eclipseClasspath}"
97
                                />
98

    
99
                                <!--<javac  srcdir="${src}"
100
                                        destdir="${build}"
101
                                        source="${JavaSourceVersion}"
102
                                        target="${JavaTargetVersion}"
103
                                        debug="${debug}"
104
                                        debuglevel="${debuglevel}">
105
                                    <classpath refid="libFMap.compile-classpath"/>
106
                                </javac>-->
107
                                <!-- copy data files -->
108
                                <copy todir="${build}">
109
                                        <fileset
110
                                                dir="src"
111
                                                excludes="**/*.java"/>
112
                                </copy>
113
                </target>
114
                
115
                 <target name="generate-validation-without-source" description="generate the validation module distribution without the source file" >
116
                    <!-- Create the distribution directory -->
117
                    <mkdir dir="${dist}"/>
118
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
119

    
120
                         <!-- <copy todir="${build}/images">
121
                                     <fileset dir="images/" includes="*"/>
122
                         </copy> -->
123
                    <move todir="${extension-dir}/${plugin}/">
124
                            <fileset dir="${dist}"  includes="**/**"/>
125
                    </move>
126
                         
127
                 </target>                
128

    
129
                 <target name="generate-model-without-source" description="generate the model module distribution without the source file" >
130
                    <!-- Create the distribution directory -->
131
                    <mkdir dir="${dist}"/>
132
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> 
133
                    <move todir="${extension-dir}/${plugin}/">
134
                            <fileset dir="${dist}" includes="**/**"/>
135
                    </move>
136
                         
137
                 </target>
138
        </project>