Statistics
| Revision:

root / trunk / extensions / extExpressionField / build.xml @ 13444

History | View | Annotate | Download (6.36 KB)

1
<project name="extExpressionField" default="deploy" 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.expressionfield"/>
14
        <property name="mainplugin" value="com.iver.cit.gvsig"/>
15
        <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
16
        <property name="readMe.files" value="Leeme-ExpressionField.txt, Readme-ExpressionField.txt"/>
17
        <property name="andami" location="../_fwAndami"/>
18
        <property name="andamiLibs" location="${andami}/lib"/>
19
        <property name="fmap" location="../libFMap"/>
20
        <property name="fmapLibs" location="${fmap}/lib"/>
21
        <property name="scripting" location="../extScripting"/>
22
        <property name="scriptingLibs" location="${scripting}/lib"/>
23
        <property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/>
24
        <property name="cad_gvsig_jar" location="${extensionDir}/${mainplugin}.cad/${mainplugin}.cad.jar"/>
25
        <property name="compile-classpath" value="${andami}/andami.jar:${scriptingLibs}/bsf-2.3.0rc1.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/beans.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${installLibDir}/${mainplugin}.jar:${cad_gvsig_jar}"/>
26
        <property name="build" location="bin"/>
27
        <target name="init">
28
                <!-- Create the time stamp -->
29
        <echo>
30
            Compiling ${ant.project.name}...</echo>
31
                <tstamp/>
32
                   <mkdir dir="${without_src}"/>
33
        </target>
34

    
35

    
36
        <target name="generate-source-package">
37
                <delete dir="${dist-src}" quiet="yes"/>
38
                <mkdir dir="${dist-src}"/>
39
                <basename file="${basedir}" property="extensionProjectDir"/>
40
                <mkdir dir="${dist-src}/${extensionProjectDir}"/>
41
                <copy todir="${dist-src}/${extensionProjectDir}">
42
                        <fileset dir="${basedir}"/>
43
                </copy>
44
                <copy todir="${dist-src}">
45
                        <fileset dir="${basedir}/install/resources" includes="${readMe.files}"/>
46
                </copy>
47
                <delete dir="${dist-src}/${extensionProjectDir}/bin"/>
48
                <mkdir dir="${dist-src}/${extensionProjectDir}/bin"/>
49
                <delete dir="${dist-src}/${extensionProjectDir}/install"/>
50
                <delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/>
51
                <delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/>
52
                <loadproperties srcFile="build.number"/>
53
                <replace casesensitive="true"
54
                            token="#build.number#"
55
                          value="${build.number}"
56
                          dir="${dist-src}"
57
                          includes="${readMe.files}"/>
58
                <zip destfile="${dist-src}/gvsig_expressionfield-01_${build.number}-src.zip"
59
                         basedir="${dist-src-name}"
60
                         excludes="*.zip"
61
                    />
62

    
63
        </target>
64

    
65

    
66

    
67

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

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

    
108

    
109
    <target name="deploy"
110
            description="compile the sources, create the jar file"
111
            depends="init,create-jar,copy-data-files,move-to-andami">
112
    </target>
113

    
114
    <target name="batch-build"
115
            description="compile the sources, create the jar file"
116
            depends="init,compile,create-jar,copy-data-files,move-to-andami">
117
    </target>
118

    
119
    <target name="compile" description="compile the source" >
120
        <!-- Compile the Java code from ${src} to ${build} -->
121
        <mkdir dir="${build}" />
122
        <javac  srcdir="${src}"
123
            destdir="${build}"
124
            source="${JavaSourceVersion}"
125
            target="${JavaTargetVersion}"
126
            debug="${debug}"
127
            debuglevel="${debuglevel}"
128
            classpath="${compile-classpath}"/>
129
    </target>
130

    
131
    <target name="create-jar"
132
            description="Creates the plugin jar">
133
                <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
134
    </target>
135

    
136
    <target name="copy-data-files">
137
                <copy file="config/config.xml" todir="${without_src}"/>
138
                <copy file="build.number" todir="${without_src}"/>
139
                <copy file="config/about.htm" todir="${without_src}"/>
140
                <loadproperties srcFile="build.number"/>
141
                <replace casesensitive="true"
142
                  file="${without_src}/about.htm"
143
                    token="#build.number#"
144
                  value="${build.number}"/>
145
                <copy todir="${without_src}">
146
                        <fileset dir="config" includes="text*.properties"/>
147
                </copy>
148
                <copy todir="${without_src}/images">
149
                        <fileset dir="images/" includes="*"/>
150
                </copy>
151
    </target>
152

    
153

    
154
    <target name="move-to-andami">
155
                <move todir="${extensionDir}/${plugin}/">
156
                        <fileset dir="${without_src}" includes="**/**"/>
157
                </move>
158
    </target>
159

    
160
    <target name="import-build-number">
161
        <copy todir=".">
162
                    <fileset file="${buildNumberFile}"/>
163
                </copy>
164
        </target>
165

    
166
        <target name="clean">
167
                <delete dir="${dist}" failonerror="false"/>
168
                <delete dir="${dist-src}" failonerror="false"/>
169
        </target>
170

    
171
</project>
172