Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extExpressionField / build.xml @ 34510

History | View | Annotate | Download (5.84 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="build" location="bin"/>
8
        <property name="src-test" location="src-test"/>
9
        <property name="build-test" location="build-test"/>
10
        <property name="doc"  location="doc"/>
11
        <property name="dist"  location="dist"/>
12
        <property name="dist-src-name"  value="dist-src"/>
13
        <property name="dist-src"  location="${dist-src-name}"/>
14
        <property name="without_src"  location="without_src"/>
15
        <property name="plugin" value="com.iver.gvsig.expressionfield"/>
16
        <property name="mainplugin" value="com.iver.cit.gvsig"/>
17
        <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
18
        <property name="readMe.files" value="Leeme-ExpressionField.txt, Readme-ExpressionField.txt"/>
19
        <property name="andami" location="../_fwAndami"/>
20
        <property name="andamiLibs" location="${andami}/lib"/>
21
        <property name="fmap" location="../libFMap"/>
22
        <property name="fmapLibs" location="${fmap}/lib"/>
23
        <property name="scripting" location="../extScripting"/>
24
        <property name="scriptingLibs" location="${scripting}/lib"/>
25
        <property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/>
26
        <property name="cad_gvsig_jar" location="${extensionDir}/${mainplugin}.cad/${mainplugin}.cad.jar"/>
27
        <import file="../binaries/ant/utilities.xml"/>
28
        <target name="init">
29
                <!-- Create the time stamp -->
30
        <echo>
31
            Compiling ${ant.project.name}...</echo>
32
                <tstamp/>
33
                   <mkdir dir="${without_src}"/>
34
        </target>
35

    
36

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

    
64
        </target>
65

    
66
        <target name="distribution" description="increment build number and generate the distribution without the source file" >
67
                <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
68
        <!--     -->
69
        </target>
70
        <target name="generate-without-source" description="generate the distribution without the source file" >
71
                <!-- Create the distribution directory -->
72
                <mkdir dir="${without_src}"/>
73

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

    
95

    
96
    <target name="deploy"
97
            description="compile the sources, create the jar file"
98
            depends="init,create-jar,copy-data-files,move-to-andami">
99
    </target>
100

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

    
106
    <target name="compile" description="compile the source" >
107
                <!-- Compile the Java code from ${src} to ${build} -->
108
                <antcall target="gvSIG-import-build-number"/>
109
                <mkdir dir="${build}" />
110
                <loadEclipseClasspath project="${basedir}"/>
111
                <gvSIG-javac
112
                        classpath="${eclipseClasspath}"        />
113
    </target>
114

    
115
    <target name="create-jar"
116
            description="Creates the plugin jar">
117
                <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/>
118
    </target>
119

    
120
    <target name="copy-data-files" depends="make-package-info">
121
                <copy file="config/config.xml" todir="${without_src}"/>
122
                <copy file="build.number" todir="${without_src}"/>
123
                <copy file="package.info" todir="${without_src}"/>
124
                <copy file="config/about.htm" todir="${without_src}"/>
125
                <loadproperties srcFile="build.number"/>
126
                <replace casesensitive="true"
127
                  file="${without_src}/about.htm"
128
                    token="#build.number#"
129
                  value="${build.number}"/>
130
                <copy todir="${without_src}">
131
                        <fileset dir="config" includes="text*.properties"/>
132
                </copy>
133
                <copy todir="${without_src}/images">
134
                        <fileset dir="images/" includes="*"/>
135
                </copy>
136
    </target>
137

    
138

    
139
    <target name="move-to-andami">
140
                <move todir="${extensionDir}/${plugin}/">
141
                        <fileset dir="${without_src}" includes="**/**"/>
142
                </move>
143
    </target>
144

    
145
        <target name="clean">
146
                <delete dir="${dist}" failonerror="false"/>
147
                <delete dir="${dist-src}" failonerror="false"/>
148
        </target>
149

    
150
        <target name="run-tests" depends="batch-build,compile-tests">
151
                <antcall target="generic-run-tests">
152
                        <param name="TestSuite.Name" value="org.gvsig.scripting.AllTests"/>
153
                </antcall>
154
        </target>
155
</project>
156