svn-gvsig-desktop / tags / v1_9_Build_1240 / extensions / extQuickPrint / build.xml @ 41660
History | View | Annotate | Download (2.99 KB)
1 | 28282 | cmartinez | <project name="extQuickPrint" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <import file="../binaries/ant/utilities.xml"/> |
||
7 | <property name="src" location="src"/> |
||
8 | <property name="src-test" location="src-test"/> |
||
9 | <property name="lib" location="../_fwAndami/lib"/> |
||
10 | <property name="build" location="bin"/> |
||
11 | <property name="build-test" location="bin-test"/> |
||
12 | <property name="dist" location="dist"/> |
||
13 | <property name="plugin" value="org.gvsig.quickPrint"/> |
||
14 | <property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
15 | |||
16 | |||
17 | <target name="init"> |
||
18 | <!-- Create the time stamp -->
|
||
19 | <tstamp/> |
||
20 | <echo>
|
||
21 | Compiling ${ant.project.name}...</echo>
|
||
22 | <!-- create the build.number file -->
|
||
23 | <buildnumber/> |
||
24 | <!-- Create the build directory structure used by compile -->
|
||
25 | <mkdir dir="${build}"/> |
||
26 | </target>
|
||
27 | |||
28 | <target name="dist" description="generate the distribution" |
||
29 | depends="create-jar,copy-libs,copy-data-files,move-to-andami" /> |
||
30 | |||
31 | <target name="batch-build" |
||
32 | description="compile the sources, create the jar file" |
||
33 | depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami"> |
||
34 | </target>
|
||
35 | |||
36 | <target name="compile" description="compile the source" > |
||
37 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
38 | <mkdir dir="${build}" /> |
||
39 | <loadEclipseClasspath project="${basedir}"/> |
||
40 | <gvSIG-javac
|
||
41 | classpath="${eclipseClasspath}" |
||
42 | />
|
||
43 | </target>
|
||
44 | |||
45 | <target name="copy-libs"> |
||
46 | <copy todir="${dist}"> |
||
47 | <fileset dir="lib" includes="*.jar"/> |
||
48 | </copy>
|
||
49 | </target>
|
||
50 | |||
51 | <target name="copy-data-files"> |
||
52 | <copy file="config/config.xml" todir="${dist}"/> |
||
53 | <copy file="build.number" todir="${dist}"/> |
||
54 | <!-- <copy file="config/about.htm" todir="${dist}" overwrite="yes"/>
|
||
55 | <loadproperties srcFile="build.number"/>
|
||
56 | <replace casesensitive="true"
|
||
57 | file="${dist}/about.htm"
|
||
58 | token="#build.number#"
|
||
59 | value="${build.number}">
|
||
60 | </replace>-->
|
||
61 | <copy todir="${dist}"> |
||
62 | <fileset dir="config" includes="text*.properties"/> |
||
63 | </copy>
|
||
64 | <copy todir="${dist}/images"> |
||
65 | <fileset dir="images/" includes="*"/> |
||
66 | </copy>
|
||
67 | <copy todir="${dist}"> |
||
68 | <fileset dir="." includes="*.jar"/> |
||
69 | </copy>
|
||
70 | <copy todir="${dist}/templates"> |
||
71 | <fileset dir="templates/" includes="*"/> |
||
72 | </copy>
|
||
73 | |||
74 | </target>
|
||
75 | |||
76 | <target name="move-to-andami" description="Moves the build directory to andami"> |
||
77 | <move todir="${targetDir}/${plugin}/"> |
||
78 | <fileset dir="${dist}" includes="**/**"/> |
||
79 | </move>
|
||
80 | </target>
|
||
81 | |||
82 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
83 | <mkdir dir="${dist}"/> |
||
84 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
85 | </target>
|
||
86 | |||
87 | <target name="clean" description="clean up" > |
||
88 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
89 | <delete dir="${build}"/> |
||
90 | <delete dir="${dist}"/> |
||
91 | </target>
|
||
92 | |||
93 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
94 | <antcall target="generic-run-tests"> |
||
95 | <param name="TestSuite.Name" value="com.iver.core.AllTests"/> |
||
96 | </antcall>
|
||
97 | </target>
|
||
98 | </project>
|