1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
diff -Nru /tmp/pdfbox.orig/build.xml ./build.xml
--- /tmp/pdfbox.orig/build.xml 2012-08-02 20:08:53.456999297 +0300
+++ ./build.xml 2012-08-02 21:46:29.145383323 +0300
@@ -36,6 +36,7 @@
<property name="pdfbox.src.dir" value="src/main/java" />
<property name="pdfbox.target.dir" value="target" />
<property name="pdfbox.dest.dir" value="${pdfbox.target.dir}/classes" />
+ <property name="pdfbox.test.classes.dir" value="${pdfbox.target.dir}/test-classes" />
<property name="pdfbox.test.dir" value="src/test/java" />
<property name="pdfbox.testfiles.dir" value="/src/test/resources" />
<property name="pdfbox.resources.dir" value="src/main/resources" />
@@ -181,15 +182,12 @@
<mkdir dir="${jempbox.dest.dir}"/>
</target>
- <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init,get.adobefiles"
+ <target name="pdfbox.compile" depends="pdfbox.init,get.adobefiles"
description="Compile Java source files">
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES-->
<javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}"
target="1.5" source="1.5" debug="on" deprecation="on"
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/>
- <javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}"
- target="1.5" source="1.5" debug="on" deprecation="on"
- classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/>
</target>
<target name="fontbox.compile" depends="fontbox.init"
@@ -277,7 +275,7 @@
<unjar src="${testfiles.encryption.jar}" dest="${testinput-ext.dir}"/>
</target>
- <target name="testextract" depends="clean,pdfbox.compile" description="Test text extraction">
+ <target name="testextract" depends="pdfbox.test.compile" description="Test text extraction">
<junit printsummary="off" fork="on" dir=".">
<jvmarg value="-Xmx1024M"/>
<jvmarg value="-Xms512M"/>
@@ -300,7 +298,7 @@
</junit>
</target>
- <target name="testimage" depends="clean,pdfbox.compile" description="Test image rendering">
+ <target name="testimage" depends="pdfbox.test.compile" description="Test image rendering">
<junit printsummary="off" fork="on" dir="." >
<jvmarg value="-Xmx1024M"/>
<jvmarg value="-Xms512M"/>
@@ -323,8 +321,15 @@
<test name="org.apache.pdfbox.util.TestPDFToImage" />
</junit>
</target>
+
+ <target name="pdfbox.test.compile" depends="pdfbox.compile">
+ <mkdir dir="${pdfbox.test.classes.dir}" />
+ <javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}"
+ target="1.5" source="1.5" debug="on" deprecation="on"
+ classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/>
+ </target>
- <target name="test-junit" depends="clean,pdfbox.compile" description="run junit tests">
+ <target name="test-junit" depends="pdfbox.test.compile" description="run junit tests">
<junit printsummary="off" fork="on" dir=".">
<sysproperty key="java.util.logging.config.file"
value="src/test/resources/logging.properties"/>
|