Statistics
| Revision:

root / branches / v10 / extensions / extExpressionField / build.xml @ 11843

History | View | Annotate | Download (5.31 KB)

1
<project name="extExpresionField" default="batch-build" basedir=".">
2
        <description>
3
        Instala el plugin de Centrar la Vista sobre un punto en Andami.
4
    </description>
5
        <!-- set global properties for this build -->
6
        <property name="src" location="src"/>
7
        <property name="bin" location="bin"/>
8
        <property name="doc"  location="doc"/>
9
        <property name="dist"  location="dist"/>
10
        <property name="dist-src-name"  value="dist-src"/>
11
        <property name="dist-src"  location="${dist-src-name}"/>
12
        <property name="without_src"  location="without_src"/>
13
        <property name="plugin" value="com.iver.gvsig.expresionfield"/>
14
        <property name="mainplugin" value="com.iver.cit.gvsig"/>
15
        <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
16
        <property name="readMe.files" value="Leeme-ExpresionField.txt, Readme-ExpresionField.txt"/>
17

    
18
        <property name="build" location="bin"/>
19
        <target name="init">
20
                <!-- Create the time stamp -->
21
        <echo>
22
            Compiling ${ant.project.name}...</echo>        
23
                <tstamp/>      
24
                   <mkdir dir="${without_src}"/>
25
        </target>
26

    
27

    
28
        <target name="generate-source-package">
29
                <delete dir="${dist-src}" quiet="yes"/>
30
                <mkdir dir="${dist-src}"/>
31
                <basename file="${basedir}" property="extensionProjectDir"/>
32
                <mkdir dir="${dist-src}/${extensionProjectDir}"/>
33
                <copy todir="${dist-src}/${extensionProjectDir}">
34
                        <fileset dir="${basedir}"/>
35
                </copy>
36
                <copy todir="${dist-src}">
37
                        <fileset dir="${basedir}/install/resources" includes="${readMe.files}"/>
38
                </copy>
39
                <delete dir="${dist-src}/${extensionProjectDir}/bin"/>
40
                <mkdir dir="${dist-src}/${extensionProjectDir}/bin"/>
41
                <delete dir="${dist-src}/${extensionProjectDir}/install"/>
42
                <delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/>
43
                <delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/>
44
                <loadproperties srcFile="build.number"/>
45
                <replace casesensitive="true"
46
                            token="#build.number#"
47
                          value="${build.number}"
48
                          dir="${dist-src}"
49
                          includes="${readMe.files}"/>
50
                <zip destfile="${dist-src}/gvsig_expresionfield-01_${build.number}-src.zip"
51
                         basedir="${dist-src-name}"
52
                         excludes="*.zip"
53
                    />
54

    
55
        </target>
56

    
57

    
58

    
59

    
60
        <target name="buildNumber">
61
                <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
62
        <!--      
63
                <propertyfile
64
                                file="build.number"
65
                                comment="Build Number for ANT. Do not edit!">
66
                        <entry key="build.number" default="0" type="int" operation="+" />
67
                </propertyfile>
68
                <property file="build.number" />
69
        -->
70
        </target>
71
        <target name="distribution" description="increment build number and generate the distribution without the source file" >
72
                <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
73
        <!--     --> 
74
        </target>
75
        <target name="generate-without-source" description="generate the distribution without the source file" >
76
                <!-- Create the distribution directory -->
77
                <mkdir dir="${without_src}"/>
78

    
79
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
80
                <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
81
                <copy file="config/config.xml" todir="${without_src}"/>
82
                <copy file="build.number" todir="${without_src}"/>
83
                <copy file="config/about.htm" todir="${without_src}"/>
84
                <loadproperties srcFile="build.number"/>
85
                <replace casesensitive="true"
86
                  file="${without_src}/about.htm"
87
                    token="#build.number#"
88
                  value="${build.number}"/>
89
                <copy todir="${without_src}">
90
                        <fileset dir="config" includes="text*.properties"/>
91
                </copy>
92
                <copy todir="${without_src}/images">
93
                        <fileset dir="images/" includes="*"/>
94
                </copy>
95
                <move todir="${extensionDir}/${plugin}/">
96
                        <fileset dir="${without_src}" includes="**/**"/>
97
                </move>
98
        </target>
99

    
100
 
101
 
102
    <target name="batch-build"
103
            description="compile the sources, create the jar file"
104
            depends="init,compile,create-jar,copy-data-files,move-to-andami">
105
    </target>
106

    
107
    <target name="compile" description="compile the source" >
108
        <!-- Compile the Java code from ${src} to ${build} -->
109
        <mkdir dir="${build}" />
110
        <javac  srcdir="${src}"
111
            destdir="${build}"
112
            source="${JavaSourceVersion}"
113
            target="${JavaTargetVersion}"
114
            debug="${debug}"
115
            debuglevel="${debuglevel}"
116
            classpath="${compile-classpath}"/>
117
    </target> 
118
    
119
    <target name="create-jar"
120
            description="Creates the plugin jar">
121
                <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
122
    </target>
123
    
124
    <target name="copy-data-files">
125
                <copy file="config/config.xml" todir="${without_src}"/>
126
                <copy file="build.number" todir="${without_src}"/>
127
                <copy file="config/about.htm" todir="${without_src}"/>
128
                <loadproperties srcFile="build.number"/>
129
                <replace casesensitive="true"
130
                  file="${without_src}/about.htm"
131
                    token="#build.number#"
132
                  value="${build.number}"/>
133
                <copy todir="${without_src}">
134
                        <fileset dir="config" includes="text*.properties"/>
135
                </copy>
136
                <copy todir="${without_src}/images">
137
                        <fileset dir="images/" includes="*"/>
138
                </copy>
139
    </target>
140
    
141
 
142
    <target name="move-to-andami">
143
                <move todir="${extensionDir}/${plugin}/">
144
                        <fileset dir="${without_src}" includes="**/**"/>
145
                </move>
146
    </target>    
147
        
148
    <target name="import-build-number">
149
        <copy todir=".">
150
                    <fileset file="${buildNumberFile}"/>
151
                </copy>
152
        </target>    
153
</project>
154