Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libUIComponent / build.xml @ 23524

History | View | Annotate | Download (3.67 KB)

1
<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
  <property name="src-test" location="src-test-ui"/>
8
  <property name="build" location="bin"/>
9
  <property name="build-test" location="bin-test"/>
10
  <property name="dist"  location="dist"/>
11
  <property name="lib"  location="lib"/>
12
  <property name="beans.home" location="${build}/org/gvsig/gui/beans"/>
13
  <property name="jarName" value="org.gvsig.ui"/>
14
  <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
  <property name="targetDir" location="${andamiLibs}"/>
21

    
22
        <import file="../binaries/ant/utilities.xml"/>
23

    
24
        <!--<property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/>-->
25

    
26
  <target name="init">
27
    <!-- Create the time stamp -->
28
    <tstamp/>
29
    <!-- Create the build directory structure used by compile -->
30
        <echo>
31
                Compiling ${ant.project.name}...</echo>
32
  </target>
33

    
34
  <target name="dist" depends="init,copy-data-files,create-jar,move-to-installDir" />
35

    
36
  <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
                <loadEclipseClasspath project="${basedir}"/>
54
                <gvSIG-javac
55
                        classpath="${eclipseClasspath}"
56
                />
57
                <copy todir="${build}">
58
                        <fileset dir="${src}" excludes="**/*.java,**/CVS"></fileset>
59
                </copy>
60

    
61
                <!--<javac  srcdir="${src}"
62
                        destdir="${build}"
63
                        debug="${debug}"
64
                        debuglevel="${debuglevel}"
65
                        classpath="${compile-classpath}"/>-->
66
        </target>
67

    
68
        <target name="copy-data-files">
69
                <mkdir dir="config"/>
70
        <copy todir="${build}/org/gvsig/gui/beans/resources/translations">
71
                <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
                        <fileset dir="${lib}" excludes="gvsig-i18n.jar, JWizardComponent.jar, log4j-1.2.8.jar" />
94
                </copy>
95
                <move todir="${targetDir}">
96
                        <fileset dir="${dist}" includes="**/*" />
97
                </move>
98
        </target>
99

    
100
        <target name="run-tests" depends="batch-build,compile-tests">
101
                <antcall target="generic-run-tests">
102
                        <param name="TestSuite.Name" value="org.gvsig.gui.beans.AllTests"/>
103
                </antcall>
104
        </target>
105

    
106
</project>
107