Statistics
| Revision:

root / trunk / extensions / extProjectBackup / build.xml @ 38628

History | View | Annotate | Download (4.82 KB)

1
        <project name="extProjectBackup" default="batch-build" basedir=".">
2

    
3
                <description>
4
                Installs the plugin extProjectBackup 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="org.gvsig.backup"/>
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="org.gvsig.backup.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="batch-build" 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="clean"
52
                    description="cleans the build directories">
53
                <delete dir="${build}" failonerror="no"/>
54
                <delete dir="${dist}" failonerror="no"/>
55
        </target>
56

    
57

    
58
        <target name="distribution" depends="buildNumber,batch-build">
59
        </target>
60

    
61

    
62
        <target name="generate-without-source" description="generate the distribution without the source file"  depends="make-package-info">
63
            <!-- Create the distribution directory -->
64
            <mkdir dir="${dist}"/>
65

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

    
69
                <copy todir="${dist}">
70
                        <fileset dir="config/" includes="*"/>
71
            </copy>
72

    
73
                <mkdir dir="${dist}/images"/>
74
                <copy todir="${dist}/images">
75
                        <fileset dir="images" includes="*"/>
76
                </copy>
77
                <copy todir="${dist}">
78
                        <fileset dir="lib" includes="*"/>
79
                </copy>
80

    
81
            <loadproperties srcFile="build.number"/>
82
                <replace casesensitive="true"
83
                        file="${dist}/about.htm"
84
                        token="#build.number#"
85
                        value="${build.number}"/>
86
            <copy todir="${dist}">
87
                    <fileset dir="config" includes="text*.properties"/>
88
            </copy>
89

    
90
            <copy file="build.number" todir="${dist}"/>
91
                <copy file="package.info" todir="${dist}"/>
92

    
93
                <!-- <move file="${dist}/${plugin}.jar" todir="${gvSIGlib-dir}" />
94
            <move todir="${extension-dir}/${plugin}/">
95
                    <fileset dir="${dist}" includes="**/**" />
96
            </move> -->
97
        </target>
98

    
99
                <target name="compile" description="compile the source" >
100
                                <!-- Compile the Java code from ${src} to ${build} -->
101
                                <mkdir dir="${build}" />
102
                                <loadEclipseClasspath project="${basedir}"/>
103
                                <gvSIG-javac
104
                                        classpath="${eclipseClasspath}"
105
                                />
106

    
107
                                <!--<javac  srcdir="${src}"
108
                                        destdir="${build}"
109
                                        source="${JavaSourceVersion}"
110
                                        target="${JavaTargetVersion}"
111
                                        debug="${debug}"
112
                                        debuglevel="${debuglevel}">
113
                                    <classpath refid="libFMap.compile-classpath"/>
114
                                </javac>-->
115
                                <!-- copy data files -->
116
                                <copy todir="${build}">
117
                                        <fileset
118
                                                dir="src"
119
                                                excludes="**/*.java"/>
120
                                </copy>
121
                </target>
122

    
123
                 <target name="generate-validation-without-source" description="generate the validation module distribution without the source file">
124
                    <!-- Create the distribution directory -->
125
                    <mkdir dir="${dist}"/>
126
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
127

    
128
                         <!-- <copy todir="${build}/images">
129
                                     <fileset dir="images/" includes="*"/>
130
                         </copy> -->
131
                    <move todir="${extension-dir}/${plugin}/">
132
                            <fileset dir="${dist}"  includes="**/**"/>
133
                    </move>
134

    
135
                 </target>
136

    
137
                 <target name="generate-model-without-source" description="generate the model module distribution without the source file">
138
                    <!-- Create the distribution directory -->
139
                    <mkdir dir="${dist}"/>
140
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
141
                    <move todir="${extension-dir}/${plugin}/">
142
                            <fileset dir="${dist}" includes="**/**"/>
143
                    </move>
144

    
145
                 </target>
146
        </project>