Statistics
| Revision:

root / tags / v1_9_Build_1226 / libraries / libUIComponent / build.xml @ 30610

History | View | Annotate | Download (3.67 KB)

1 10741 nacho
<project name="libBeans" default="dist" basedir=".">
2
    <description>
3
        Generates Beans
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7 13440 cesar
  <property name="src-test" location="src-test-ui"/>
8 10741 nacho
  <property name="build" location="bin"/>
9 13440 cesar
  <property name="build-test" location="bin-test"/>
10 10741 nacho
  <property name="dist"  location="dist"/>
11
  <property name="lib"  location="lib"/>
12
  <property name="beans.home" location="${build}/org/gvsig/gui/beans"/>
13 13209 cesar
  <property name="jarName" value="org.gvsig.ui"/>
14 10741 nacho
  <property name="installBaseDir" location="../_fwAndami"/>
15
  <property name="installDir" location="${installBaseDir}/lib"/>
16
  <property name="andami" location="../_fwAndami"/>
17
  <property name="andamiLibs" location="${andami}/lib"/>
18
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
19
  <property name="gvsigLibDir" location="${extensionsDir}/com.iver.cit.gvsig/lib/"/>
20 13143 cesar
  <property name="targetDir" location="${andamiLibs}"/>
21 13296 jmvivo
22 13236 jmvivo
        <import file="../binaries/ant/utilities.xml"/>
23 10741 nacho
24 13126 jmvivo
        <!--<property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/>-->
25
26 10741 nacho
  <target name="init">
27
    <!-- Create the time stamp -->
28
    <tstamp/>
29
    <!-- Create the build directory structure used by compile -->
30 13143 cesar
        <echo>
31
                Compiling ${ant.project.name}...</echo>
32 10741 nacho
  </target>
33
34 13143 cesar
  <target name="dist" depends="init,copy-data-files,create-jar,move-to-installDir" />
35 13126 jmvivo
36 10741 nacho
  <target name="clean"
37
        description="clean up" >
38
    <!-- Delete the ${build} and ${dist} directory trees -->
39
    <delete dir="${build}"/>
40
    <delete dir="${dist}"/>
41
  </target>
42
43
44
        <target name="batch-build"
45
                        description="compile the sources, create the jar file"
46
                        depends="compile,copy-data-files,create-jar,move-to-installDir">
47
        </target>
48
49
        <target name="compile" description="compile the source">
50
                <!-- Create the build directory structure used by compile -->
51
                <mkdir dir="${build}"/>
52
                <!-- Compile the Java code from ${src} to ${build} -->
53 13126 jmvivo
                <loadEclipseClasspath project="${basedir}"/>
54 13296 jmvivo
                <gvSIG-javac
55 13204 jmvivo
                        classpath="${eclipseClasspath}"
56
                />
57 13538 jmvivo
                <copy todir="${build}">
58
                        <fileset dir="${src}" excludes="**/*.java,**/CVS"></fileset>
59
                </copy>
60
61 13126 jmvivo
                <!--<javac  srcdir="${src}"
62 10741 nacho
                        destdir="${build}"
63
                        debug="${debug}"
64
                        debuglevel="${debuglevel}"
65 13126 jmvivo
                        classpath="${compile-classpath}"/>-->
66 10741 nacho
        </target>
67
68
        <target name="copy-data-files">
69
                <mkdir dir="config"/>
70 13209 cesar
        <copy todir="${build}/org/gvsig/gui/beans/resources/translations">
71 10741 nacho
                <fileset dir="config" includes="*" />
72
        </copy>
73
    </target>
74
75
        <target name="create-jar" description="Creates the jar file">
76
                <mkdir dir="${dist}"/>
77
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}">
78
                    <manifest>
79
                            <section name="common">
80
                                    <attribute name="Built-By" value="${user.name}"/>
81
                                    <attribute name="Implementation-Title" value="$gvSIG Beans" />
82
                                    <attribute name="Implementation-Version" value="${TODAY}" />
83
                                    <attribute name="Implementation-Vendor" value="the gvSIG project" />
84
                            </section>
85
                            <!-- finally, use the magically generated libs path -->
86
                    </manifest>
87
                </jar>
88
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
89
        </target>
90
91
        <target name="move-to-installDir" description="Moves the build directory to andami">
92
                <copy todir="${dist}">
93 13143 cesar
                        <fileset dir="${lib}" excludes="gvsig-i18n.jar, JWizardComponent.jar, log4j-1.2.8.jar" />
94 10741 nacho
                </copy>
95 13143 cesar
                <move todir="${targetDir}">
96
                        <fileset dir="${dist}" includes="**/*" />
97
                </move>
98 10741 nacho
        </target>
99
100 13440 cesar
        <target name="run-tests" depends="batch-build,compile-tests">
101
                <antcall target="generic-run-tests">
102 13442 cesar
                        <param name="TestSuite.Name" value="org.gvsig.gui.beans.AllTests"/>
103 13440 cesar
                </antcall>
104
        </target>
105
106 10741 nacho
</project>