svn-gvsig-desktop / tags / v1_0_2_Build_907 / libraries / libCorePlugin / build.xml @ 11015
History | View | Annotate | Download (3.36 KB)
1 | 592 | fernando | <project name="Core plugin" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4852 | cesar | <property name="src" location="src"/> |
7 | <property name="lib" location="../_fwAndami/lib"/> |
||
8 | <property name="build" location="bin"/> |
||
9 | <property name="dist" location="dist"/> |
||
10 | 4904 | cesar | <property name="andamiJar" location="../_fwAndami/andami.jar"/> |
11 | 4852 | cesar | <property name="plugin" value="com.iver.core"/> |
12 | <property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
13 | 8765 | jjdelcerro | <property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:${andamiJar}:${lib}/beans.jar" /> |
14 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
15 | <property name="JavaTargetVersion" value="1.4"/> |
||
16 | 592 | fernando | |
17 | <target name="init"> |
||
18 | <!-- Create the time stamp -->
|
||
19 | <tstamp/> |
||
20 | <!-- Create the build directory structure used by compile -->
|
||
21 | <mkdir dir="${build}"/> |
||
22 | </target>
|
||
23 | |||
24 | 10185 | jmvivo | |
25 | <target name="import-build-number"> |
||
26 | <copy todir="."> |
||
27 | <fileset file="${buildNumberFile}"/> |
||
28 | </copy>
|
||
29 | </target>
|
||
30 | |||
31 | 592 | fernando | <target name="dist" description="generate the distribution" > |
32 | <!-- Create the distribution directory -->
|
||
33 | <mkdir dir="${dist}"/> |
||
34 | |||
35 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
36 | <copy todir="${build}"> |
||
37 | <fileset dir="${src}" includes="**"/> |
||
38 | </copy>
|
||
39 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
40 | 5712 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
41 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
42 | 592 | fernando | <copy todir="${dist}"> |
43 | 5712 | cesar | <fileset dir="config" includes="text*.properties"/> |
44 | 592 | fernando | </copy>
|
45 | <copy todir="${dist}/images"> |
||
46 | <fileset dir="images/" includes="*"/> |
||
47 | </copy>
|
||
48 | <copy todir="${dist}"> |
||
49 | <fileset dir="." includes="*.jar"/> |
||
50 | </copy>
|
||
51 | |||
52 | <move todir="${targetDir}/${plugin}/"> |
||
53 | <fileset dir="${dist}" includes="**/**"/> |
||
54 | </move>
|
||
55 | </target>
|
||
56 | |||
57 | 4852 | cesar | <target name="batch-build" |
58 | description="compile the sources, create the jar file" |
||
59 | depends="compile,create-jar,copy-data-files,move-to-andami"> |
||
60 | </target>
|
||
61 | |||
62 | <target name="compile" description="compile the source" > |
||
63 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
64 | <mkdir dir="${build}" /> |
||
65 | 7776 | cesar | <javac srcdir="${src}" |
66 | destdir="${build}" |
||
67 | 10565 | jmvivo | source="${JavaSourceVersion}" |
68 | target="${JavaTargetVersion}" |
||
69 | 7776 | cesar | debug="${debug}" |
70 | debuglevel="${debuglevel}" |
||
71 | classpath="${compile-classpath}"/> |
||
72 | 4852 | cesar | </target>
|
73 | |||
74 | <target name="copy-data-files"> |
||
75 | 5712 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
76 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
77 | 4852 | cesar | <copy todir="${dist}"> |
78 | 5712 | cesar | <fileset dir="config" includes="text*.properties"/> |
79 | 4852 | cesar | </copy>
|
80 | <copy todir="${dist}/images"> |
||
81 | <fileset dir="images/" includes="*"/> |
||
82 | </copy>
|
||
83 | <copy todir="${dist}"> |
||
84 | <fileset dir="." includes="*.jar"/> |
||
85 | </copy>
|
||
86 | </target>
|
||
87 | |||
88 | <target name="move-to-andami" description="Moves the build directory to andami"> |
||
89 | <move todir="${targetDir}/${plugin}/"> |
||
90 | <fileset dir="${dist}" includes="**/**"/> |
||
91 | </move>
|
||
92 | </target>
|
||
93 | |||
94 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
95 | <mkdir dir="${dist}"/> |
||
96 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
97 | </target>
|
||
98 | |||
99 | <target name="clean" description="clean up" > |
||
100 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
101 | <delete dir="${build}"/> |
||
102 | <delete dir="${dist}"/> |
||
103 | </target>
|
||
104 | |||
105 | 592 | fernando | </project>
|