Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libUIComponent / build.xml @ 13296

History | View | Annotate | Download (3.28 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="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="lib"  location="lib"/>
10
  <property name="beans.home" location="${build}/org/gvsig/gui/beans"/>
11
  <property name="jarName" value="org.gvsig.ui"/>
12
  <property name="installBaseDir" location="../_fwAndami"/>
13
  <property name="installDir" location="${installBaseDir}/lib"/>
14
  <property name="andami" location="../_fwAndami"/>
15
  <property name="andamiLibs" location="${andami}/lib"/>
16
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
17
  <property name="gvsigLibDir" location="${extensionsDir}/com.iver.cit.gvsig/lib/"/>
18
  <property name="targetDir" location="${andamiLibs}"/>
19

    
20
        <import file="../binaries/ant/utilities.xml"/>
21

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

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

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

    
34
  <target name="clean"
35
        description="clean up" >
36
    <!-- Delete the ${build} and ${dist} directory trees -->
37
    <delete dir="${build}"/>
38
    <delete dir="${dist}"/>
39
  </target>
40

    
41

    
42
        <target name="batch-build"
43
                        description="compile the sources, create the jar file"
44
                        depends="compile,copy-data-files,create-jar,move-to-installDir">
45
        </target>
46

    
47
        <target name="compile" description="compile the source">
48
                <!-- Create the build directory structure used by compile -->
49
                <mkdir dir="${build}"/>
50
                <!-- Compile the Java code from ${src} to ${build} -->
51
                <loadEclipseClasspath project="${basedir}"/>
52
                <gvSIG-javac
53
                        classpath="${eclipseClasspath}"
54
                />
55
                <!--<javac  srcdir="${src}"
56
                        destdir="${build}"
57
                        debug="${debug}"
58
                        debuglevel="${debuglevel}"
59
                        classpath="${compile-classpath}"/>-->
60
        </target>
61

    
62
        <target name="copy-data-files">
63
                <mkdir dir="config"/>
64
        <copy todir="${build}/org/gvsig/gui/beans/resources/translations">
65
                <fileset dir="config" includes="*" />
66
        </copy>
67
    </target>
68

    
69
        <target name="create-jar" description="Creates the jar file">
70
                <mkdir dir="${dist}"/>
71
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}">
72
                    <manifest>
73
                            <section name="common">
74
                                    <attribute name="Built-By" value="${user.name}"/>
75
                                    <attribute name="Implementation-Title" value="$gvSIG Beans" />
76
                                    <attribute name="Implementation-Version" value="${TODAY}" />
77
                                    <attribute name="Implementation-Vendor" value="the gvSIG project" />
78
                            </section>
79
                            <!-- finally, use the magically generated libs path -->
80
                    </manifest>
81
                </jar>
82
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
83
        </target>
84

    
85
        <target name="move-to-installDir" description="Moves the build directory to andami">
86
                <copy todir="${dist}">
87
                        <fileset dir="${lib}" excludes="gvsig-i18n.jar, JWizardComponent.jar, log4j-1.2.8.jar" />
88
                </copy>
89
                <move todir="${targetDir}">
90
                        <fileset dir="${dist}" includes="**/*" />
91
                </move>
92
        </target>
93

    
94
</project>
95