Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_2_Build_1044 / extensions / extExpressionField / build.xml @ 44178

History | View | Annotate | Download (6.49 KB)

1 11869 jmvivo
<project name="extExpresionField" default="deploy" basedir=".">
2 11843 jmvivo
        <description>
3 10229 caballero
        Instala el plugin de Centrar la Vista sobre un punto en Andami.
4
    </description>
5 11843 jmvivo
        <!-- 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 12737 jmvivo
        <property name="andami" location="../_fwAndami"/>
18 16958 jmvivo
        <property name="andamiLibs" location="${andami}/lib"/>
19 12737 jmvivo
        <property name="fmap" location="../libFMap"/>
20
        <property name="fmapLibs" location="${fmap}/lib"/>
21
        <property name="scripting" location="../extScripting"/>
22 16958 jmvivo
        <property name="scriptingLibs" location="${scripting}/lib"/>
23 12737 jmvivo
        <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 10229 caballero
        <property name="build" location="bin"/>
27 11843 jmvivo
        <target name="init">
28
                <!-- Create the time stamp -->
29
        <echo>
30 16958 jmvivo
            Compiling ${ant.project.name}...</echo>
31
                <tstamp/>
32 11843 jmvivo
                   <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 11531 jmvivo
                            token="#build.number#"
55
                          value="${build.number}"
56
                          dir="${dist-src}"
57 11843 jmvivo
                          includes="${readMe.files}"/>
58
                <zip destfile="${dist-src}/gvsig_expresionfield-01_${build.number}-src.zip"
59 11531 jmvivo
                         basedir="${dist-src-name}"
60
                         excludes="*.zip"
61
                    />
62 11843 jmvivo
63
        </target>
64
65
66
67
68 10335 caballero
        <target name="buildNumber">
69 11843 jmvivo
                <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
70 16958 jmvivo
        <!--
71 10335 caballero
                <propertyfile
72
                                file="build.number"
73
                                comment="Build Number for ANT. Do not edit!">
74 11843 jmvivo
                        <entry key="build.number" default="0" type="int" operation="+" />
75 10335 caballero
                </propertyfile>
76 11843 jmvivo
                <property file="build.number" />
77
        -->
78 10335 caballero
        </target>
79 11843 jmvivo
        <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 16958 jmvivo
        <!--     -->
82 10335 caballero
        </target>
83 11843 jmvivo
        <target name="generate-without-source" description="generate the distribution without the source file" >
84
                <!-- Create the distribution directory -->
85
                <mkdir dir="${without_src}"/>
86 10229 caballero
87 11843 jmvivo
                <!-- 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 10335 caballero
                  file="${without_src}/about.htm"
95
                    token="#build.number#"
96
                  value="${build.number}"/>
97 11843 jmvivo
                <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 10229 caballero
108 11869 jmvivo
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 16958 jmvivo
    </target>
113
114 11843 jmvivo
    <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 16958 jmvivo
                encoding="${encoding}"
129 11843 jmvivo
            classpath="${compile-classpath}"/>
130 16958 jmvivo
            <copy todir="${build}">
131
                    <fileset
132
                            dir="${src}"
133
                            excludes="**/*.java"/>
134
                </copy>
135
136
    </target>
137
138 11843 jmvivo
    <target name="create-jar"
139
            description="Creates the plugin jar">
140
                <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
141
    </target>
142 16958 jmvivo
143 11843 jmvivo
    <target name="copy-data-files">
144
                <copy file="config/config.xml" todir="${without_src}"/>
145
                <copy file="build.number" todir="${without_src}"/>
146
                <copy file="config/about.htm" todir="${without_src}"/>
147
                <loadproperties srcFile="build.number"/>
148
                <replace casesensitive="true"
149
                  file="${without_src}/about.htm"
150
                    token="#build.number#"
151
                  value="${build.number}"/>
152
                <copy todir="${without_src}">
153
                        <fileset dir="config" includes="text*.properties"/>
154
                </copy>
155
                <copy todir="${without_src}/images">
156
                        <fileset dir="images/" includes="*"/>
157
                </copy>
158
    </target>
159 16958 jmvivo
160
161 11843 jmvivo
    <target name="move-to-andami">
162
                <move todir="${extensionDir}/${plugin}/">
163
                        <fileset dir="${without_src}" includes="**/**"/>
164
                </move>
165 16958 jmvivo
    </target>
166
167 11843 jmvivo
    <target name="import-build-number">
168
        <copy todir=".">
169
                    <fileset file="${buildNumberFile}"/>
170
                </copy>
171 12710 jmvivo
        </target>
172 16958 jmvivo
173 12710 jmvivo
        <target name="clean">
174
                <delete dir="${dist}" failonerror="false"/>
175
                <delete dir="${dist-src}" failonerror="false"/>
176
        </target>
177 12737 jmvivo
178 10229 caballero
</project>