Statistics
| Revision:

root / trunk / libraries / libUIComponent_praster / build.xml @ 8026

History | View | Annotate | Download (3.81 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="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="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/>
17

    
18
  <target name="init">
19
    <!-- Create the time stamp -->
20
    <tstamp/>
21
    <!-- Create the build directory structure used by compile -->
22
    <mkdir dir="${build}"/>
23
  </target>
24

    
25
  <target name="dist" depends="init"
26
        description="generate the distribution" >
27
 
28
    <!-- Create the distribution directory -->
29
    <mkdir dir="${dist}"/>
30

    
31
          <!-- Copy the translations -->
32
        <mkdir dir="config"/>
33
    <copy todir="${dist}/org/gvsig/gui/beans/resources/translations">
34
        <fileset dir="config" includes="*" />
35
    </copy>
36
    <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
37
    <jar jarfile="${dist}/${jarName}.jar" basedir="${build}">
38
            <manifest>
39
                    <section name="common">
40
                            <attribute name="Built-By" value="${user.name}"/>
41
                            <attribute name="Implementation-Title" value="$gvSIG Beans" />
42
                            <attribute name="Implementation-Version" value="${TODAY}" />
43
                            <attribute name="Implementation-Vendor" value="the gvSIG project" />
44
                    </section>
45
                    <!-- finally, use the magically generated libs path -->
46
            </manifest>
47
    </jar>
48
    <jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.gif" update="true" />
49
          <copy todir="../libCq CMS for java/lib">
50
                            <fileset dir="${dist}" includes="${jarName}.jar"/>
51
          </copy>
52

    
53
  </target>
54

    
55
  <target name="clean"
56
        description="clean up" >
57
    <!-- Delete the ${build} and ${dist} directory trees -->
58
    <delete dir="${build}"/>
59
    <delete dir="${dist}"/>
60
  </target>
61

    
62

    
63
        <target name="batch-build"
64
                        description="compile the sources, create the jar file"
65
                        depends="compile,copy-data-files,create-jar,move-to-installDir">
66
        </target>
67

    
68
        <target name="compile" description="compile the source">
69
                <!-- Create the time stamp -->
70
                <tstamp/>
71
                <!-- Create the build directory structure used by compile -->
72
                <mkdir dir="${build}"/>
73
                <!-- Compile the Java code from ${src} to ${build} -->
74
                <javac  srcdir="${src}"
75
                        destdir="${build}"
76
                        debug="${debug}"
77
                        debuglevel="${debuglevel}"
78
                        classpath="${compile-classpath}"/>
79
        </target>
80

    
81
        <target name="copy-data-files">
82
                <mkdir dir="config"/>
83
        <copy todir="${dist}/org/gvsig/gui/beans/resources/translations">
84
                <fileset dir="config" includes="*" />
85
        </copy>
86
    </target>
87

    
88
        <target name="create-jar" description="Creates the jar file">
89
                <mkdir dir="${dist}"/>
90
                <jar jarfile="${dist}/${jarName}.jar" basedir="${build}">
91
                    <manifest>
92
                            <section name="common">
93
                                    <attribute name="Built-By" value="${user.name}"/>
94
                                    <attribute name="Implementation-Title" value="$gvSIG Beans" />
95
                                    <attribute name="Implementation-Version" value="${TODAY}" />
96
                                    <attribute name="Implementation-Vendor" value="the gvSIG project" />
97
                            </section>
98
                            <!-- finally, use the magically generated libs path -->
99
                    </manifest>
100
                </jar>
101
                <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
102
        </target>
103

    
104
        <target name="move-to-installDir" description="Moves the build directory to andami">
105
                <copy todir="${dist}">
106
                        <fileset dir="${lib}" includes="**/**"/>
107
                </copy>
108
        </target>
109

    
110
</project>
111