svn-gvsig-desktop / tags / v1_9_Build_1236 / libraries / openjdk-printing1.7 / build.xml @ 44480
History | View | Annotate | Download (2.99 KB)
1 |
<project name="Linux printing support" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Linux printing support backported from OpenJDK 1.7, to workaround |
4 |
problems with Java 1.5 and modern versions of CUPS printing system. |
5 |
This project will not be necessary when we move gvSIG to Java 1.6 or 1.7. |
6 |
</description>
|
7 |
<!-- set global properties for this build -->
|
8 |
<property name="src" location="src"/> |
9 |
<property name="src-test" location="src-test-ui"/> |
10 |
<property name="build" location="bin"/> |
11 |
<property name="build-test" location="bin-test"/> |
12 |
<property name="dist" location="dist"/> |
13 |
<property name="lib" location="lib"/> |
14 |
<property name="jarName" value="org.gvsig.printing.cups-support"/> |
15 |
<property name="gvSIGLibs" location="../appgvSIG/lib"/> |
16 |
<property name="targetDir" location="${gvSIGLibs}"/> |
17 |
|
18 |
<import file="../binaries/ant/utilities.xml"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<echo>
|
25 |
Compiling ${ant.project.name}...</echo>
|
26 |
</target>
|
27 |
|
28 |
<target name="dist" depends="init,create-jar,move-to-installDir" /> |
29 |
|
30 |
<target name="clean" |
31 |
description="clean up" > |
32 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
33 |
<delete dir="${build}"/> |
34 |
<delete dir="${dist}"/> |
35 |
</target>
|
36 |
|
37 |
|
38 |
<target name="batch-build" |
39 |
description="compile the sources, create the jar file" |
40 |
depends="compile,create-jar,move-to-installDir"> |
41 |
</target>
|
42 |
|
43 |
<target name="compile" description="compile the source"> |
44 |
<!-- Create the build directory structure used by compile -->
|
45 |
<mkdir dir="${build}"/> |
46 |
<!-- Compile the Java code from ${src} to ${build} -->
|
47 |
<loadEclipseClasspath project="${basedir}"/> |
48 |
<gvSIG-javac
|
49 |
classpath="${eclipseClasspath}" |
50 |
/>
|
51 |
<copy todir="${build}"> |
52 |
<fileset dir="${src}" excludes="**/*.java,**/CVS"></fileset> |
53 |
</copy>
|
54 |
</target>
|
55 |
|
56 |
<target name="create-jar" description="Creates the jar file"> |
57 |
<mkdir dir="${dist}"/> |
58 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
59 |
<manifest>
|
60 |
<section name="common"> |
61 |
<attribute name="Built-By" value="${user.name}"/> |
62 |
<attribute name="Implementation-Title" value="$gvSIG Beans" /> |
63 |
<attribute name="Implementation-Version" value="${TODAY}" /> |
64 |
<attribute name="Implementation-Vendor" value="the gvSIG project" /> |
65 |
</section>
|
66 |
<!-- finally, use the magically generated libs path -->
|
67 |
</manifest>
|
68 |
</jar>
|
69 |
<!-- show in the jar name the date on which the sources were updated -->
|
70 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
71 |
</target>
|
72 |
|
73 |
<target name="move-to-installDir" description="Moves the build directory to andami"> |
74 |
<move todir="${targetDir}"> |
75 |
<fileset dir="${dist}" includes="**/*" /> |
76 |
</move>
|
77 |
</target>
|
78 |
|
79 |
<target name="run-tests" depends="batch-build,compile-tests"> |
80 |
<antcall target="generic-run-tests"> |
81 |
<param name="TestSuite.Name" value="org.gvsig.gui.beans.AllTests"/> |
82 |
</antcall>
|
83 |
</target>
|
84 |
|
85 |
</project>
|
86 |
|