Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libJCRS / build.xml @ 12846

History | View | Annotate | Download (2.55 KB)

1
<project name="libJCRS" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de JCrs en Andami.
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="plugin" value="jcrs"/>
10
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
11
  <property name="targetDir" location="../libFMap/lib" />
12
  <property name="JavaSourceVersion" value="1.5"/>
13
  <property name="JavaTargetVersion" value="1.5"/>
14
  <property name="debug" value="on"/>
15
  <property name="debuglevel" value="line, vars"/>
16
  <property name="encoding" value="ISO_8859_1"/>
17

    
18

    
19
  <target name="init">
20
    <!-- Create the time stamp -->
21
    <tstamp/>
22
          <echo>
23
                          Compiling ${ant.project.name}...</echo>
24
    <!-- Create the build directory structure used by compile -->
25
    <mkdir dir="${build}"/>
26
    <mkdir dir="${dist}"/>
27
          
28
  </target>
29

    
30
  <target name="compile"
31
          description="compile the source" >
32
      <!-- Compile the Java code from ${src} to ${bin} -->
33
      <javac      srcdir="${src}"
34
                  destdir="${build}"
35
                  source="${JavaSourceVersion}"
36
                        target="${JavaTargetVersion}"
37
                  debug="${debug}"
38
                  debuglevel="${debuglevel}"
39
                        encoding="${encoding}"
40
                                     classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>
41
    </target>
42
                                                
43
  <target name="generate-without-source" description="generate the distribution without the source file" >
44
    <!-- Create the distribution directory -->
45
    <mkdir dir="${dist}"/>
46

    
47
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
48
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
49
          
50
          <!-- copy file="${dist}/${plugin}.jar" todir="lib/"/> -->
51
          <copy file="${dist}/${plugin}.jar" todir="${targetDir}"/>
52
          <copy todir="${targetDir}">
53
                                  <fileset dir="./lib" includes="*.jar" />
54
        </copy>
55
          <!-- <copy file="${dist}/${plugin}.jar" todir="../extJCRS/lib/"/> -->
56
  </target>
57
        
58
        <target name="batch-build"
59
                        description="compile the sources, create the jar file"
60
                        depends="init,compile,generate-without-source">
61
        </target>
62
        
63
        <target name="clean"
64
                    description="cleans the build directories">
65
                <delete dir="${build}"/>
66
                <delete dir="${dist}"/>
67
        </target>
68
</project>
69

    
70