Statistics
| Revision:

svn-gvsig-desktop / tags / gvsig_remotesensing-0_1_0_1239 / build.xml @ 44178

History | View | Annotate | Download (3.13 KB)

1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala la extension RemoteSensing en Andami.
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="lib"  location="lib"/>
10
  <property name="plugin" value="org.gvsig.remotesensing"/>
11
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
12
  <property name="andami-dir" location="../_fwAndami"/>
13
  <property name="targetDir" location="../libFMap/lib" />
14

    
15
  <import file="../binaries/ant/utilities.xml"/>
16

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

    
25
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
26
          <!--<buildnumber/>-->
27

    
28
  </target>
29

    
30

    
31
        <target name="batch-build"
32
                        description="compile the sources, create the jar file"
33
                        depends="init,compile,create-jar,copy-data-files,move-to-andami">
34
        </target>
35

    
36
        <target name="compile" description="compile the source" >
37
                <!-- Compile the Java code from ${src} to ${build} -->
38
                <antcall target="gvSIG-import-build-number"/>
39
                <mkdir dir="${build}" />
40
                <loadEclipseClasspath project="${basedir}"/>
41
                <gvSIG-javac
42
                        classpath="${eclipseClasspath}"
43
                />
44
        </target>
45

    
46

    
47

    
48
  <target name="generate-without-source"
49
        description="generate the distribution without the source file"
50
        depends="init,create-jar,copy-data-files,move-to-andami"
51
        />
52

    
53
  <target name="create-jar">
54

    
55
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
56
    <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
57
  </target>
58

    
59
  <target name="copy-data-files">
60
          <copy file="config/config.xml" todir="${dist}"/>
61
                <copy file="build.number" todir="${dist}"/>
62
    <copy file="config/about.htm" todir="${dist}"/>
63
    <loadproperties srcFile="build.number"/>
64
    <replace casesensitive="true"
65
    file="${dist}/about.htm"
66
    token="#build.number#"
67
    value="${build.number}"/> 
68
    <copy todir="${dist}">
69
                  <fileset dir="config" includes="text*.properties"/>
70
          </copy>
71
          <copy todir="${dist}/images">
72
                  <fileset dir="images/" includes="*"/>
73
          </copy>
74
          <copy todir="${dist}/lib">
75
                  <fileset dir="${lib}" includes="**/**"/>
76
           </copy>
77

    
78
  </target>
79

    
80
  <target name="move-to-andami">
81

    
82
    <move todir="${extension-dir}/${plugin}/">
83
            <fileset dir="${dist}" includes="**/**"/>
84
    </move>
85
  </target>
86

    
87

    
88
  <target name="clean"
89
        description="clean up" >
90
    <!-- Delete the ${build} and ${dist} directory trees -->
91
    <delete dir="${dist}"/>
92
    <delete dir="${build}"/>
93
  </target>
94
  
95
  <target name="buildNumber">  
96
    <propertyfile     file="build.number"
97
        comment="Build Number for ANT. Do not edit!">
98
      <entry key="build.number" default="0" type="int" operation="+" />
99
    </propertyfile>
100
    <property file="build.number" />
101
  </target>
102

    
103
  <target name="distribution"
104
         depends="buildNumber,generate-without-source"/>
105

    
106
</project>
107

    
108