Statistics
| Revision:

root / trunk / libraries / libUIComponent / build.xml @ 11070

History | View | Annotate | Download (4.07 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="extensionsDir" location="${andami}/gvSIG/extensiones"/>
17
  <property name="gvsigLibDir" location="${extensionsDir}/com.iver.cit.gvsig/lib/"/>
18
          
19
        
20
        <property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/>
21

    
22
  <target name="init">
23
    <!-- Create the time stamp -->
24
    <tstamp/>
25
    <!-- Create the build directory structure used by compile -->
26
    <mkdir dir="${build}"/>
27
  </target>
28

    
29
  <target name="dist" depends="init"
30
        description="generate the distribution" >
31
 
32
    <!-- Create the distribution directory -->
33
    <mkdir dir="${dist}"/>
34

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

    
61
  <target name="clean"
62
        description="clean up" >
63
    <!-- Delete the ${build} and ${dist} directory trees -->
64
    <delete dir="${build}"/>
65
    <delete dir="${dist}"/>
66
  </target>
67

    
68

    
69
        <target name="batch-build"
70
                        description="compile the sources, create the jar file"
71
                        depends="compile,copy-data-files,create-jar,move-to-installDir">
72
        </target>
73

    
74
        <target name="compile" description="compile the source">
75
                <!-- Create the time stamp -->
76
                <tstamp/>
77
                <!-- Create the build directory structure used by compile -->
78
                <mkdir dir="${build}"/>
79
                <!-- Compile the Java code from ${src} to ${build} -->
80
                <javac  srcdir="${src}"
81
                        destdir="${build}"
82
                        debug="${debug}"
83
                        debuglevel="${debuglevel}"
84
                        classpath="${compile-classpath}"/>
85
        </target>
86

    
87
        <target name="copy-data-files">
88
                <mkdir dir="config"/>
89
        <copy todir="${dist}/org/gvsig/gui/beans/resources/translations">
90
                <fileset dir="config" includes="*" />
91
        </copy>
92
    </target>
93

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

    
110
        <target name="move-to-installDir" description="Moves the build directory to andami">
111
                <copy todir="${dist}">
112
                        <fileset dir="${lib}" includes="**/**"/>
113
                </copy>
114
        </target>
115

    
116
</project>
117