Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libUIComponent_praster / build.xml @ 12832

History | View | Annotate | Download (3.97 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
        <property name="fmap" location="../libFMap"/>
18
        <property name="fmapLib" value="${fmap}/lib"/>
19

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

    
27
  <target name="dist" depends="init"
28
        description="generate the distribution" >
29

    
30
    <!-- Create the distribution directory -->
31
    <mkdir dir="${dist}"/>
32

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

    
55
  </target>
56

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

    
64

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

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

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

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

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

    
114
        </target>
115

    
116
</project>
117