Lines 36-41
Link Here
|
36 |
<property name="pdfbox.src.dir" value="src/main/java" /> |
36 |
<property name="pdfbox.src.dir" value="src/main/java" /> |
37 |
<property name="pdfbox.target.dir" value="target" /> |
37 |
<property name="pdfbox.target.dir" value="target" /> |
38 |
<property name="pdfbox.dest.dir" value="${pdfbox.target.dir}/classes" /> |
38 |
<property name="pdfbox.dest.dir" value="${pdfbox.target.dir}/classes" /> |
|
|
39 |
<property name="pdfbox.test.classes.dir" value="${pdfbox.target.dir}/test-classes" /> |
39 |
<property name="pdfbox.test.dir" value="src/test/java" /> |
40 |
<property name="pdfbox.test.dir" value="src/test/java" /> |
40 |
<property name="pdfbox.testfiles.dir" value="/src/test/resources" /> |
41 |
<property name="pdfbox.testfiles.dir" value="/src/test/resources" /> |
41 |
<property name="pdfbox.resources.dir" value="src/main/resources" /> |
42 |
<property name="pdfbox.resources.dir" value="src/main/resources" /> |
Lines 181-195
Link Here
|
181 |
<mkdir dir="${jempbox.dest.dir}"/> |
182 |
<mkdir dir="${jempbox.dest.dir}"/> |
182 |
</target> |
183 |
</target> |
183 |
|
184 |
|
184 |
<target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init,get.adobefiles" |
185 |
<target name="pdfbox.compile" depends="pdfbox.init,get.adobefiles" |
185 |
description="Compile Java source files"> |
186 |
description="Compile Java source files"> |
186 |
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES--> |
187 |
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES--> |
187 |
<javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}" |
188 |
<javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}" |
188 |
target="1.5" source="1.5" debug="on" deprecation="on" |
189 |
target="1.5" source="1.5" debug="on" deprecation="on" |
189 |
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> |
190 |
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> |
190 |
<javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}" |
|
|
191 |
target="1.5" source="1.5" debug="on" deprecation="on" |
192 |
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> |
193 |
</target> |
191 |
</target> |
194 |
|
192 |
|
195 |
<target name="fontbox.compile" depends="fontbox.init" |
193 |
<target name="fontbox.compile" depends="fontbox.init" |
Lines 214-220
Link Here
|
214 |
classpathref="jempbox.build.classpath" encoding="ISO-8859-1"/> |
212 |
classpathref="jempbox.build.classpath" encoding="ISO-8859-1"/> |
215 |
</target> |
213 |
</target> |
216 |
|
214 |
|
217 |
<target name="test" depends="testextract,test-junit,testimage" description="Run all the junit tests"/> |
215 |
<target name="test" depends="testextract,test-junit" description="Run all the junit tests"/> |
218 |
|
216 |
|
219 |
<target name="find.adobefiles"> |
217 |
<target name="find.adobefiles"> |
220 |
<available property="adobefiles.found" file="${dest.dir}/org/apache/pdfbox/resources/cmap"/> |
218 |
<available property="adobefiles.found" file="${dest.dir}/org/apache/pdfbox/resources/cmap"/> |
Lines 277-283
Link Here
|
277 |
<unjar src="${testfiles.encryption.jar}" dest="${testinput-ext.dir}"/> |
275 |
<unjar src="${testfiles.encryption.jar}" dest="${testinput-ext.dir}"/> |
278 |
</target> |
276 |
</target> |
279 |
|
277 |
|
280 |
<target name="testextract" depends="clean,pdfbox.compile" description="Test text extraction"> |
278 |
<target name="testextract" depends="pdfbox.test.compile" description="Test text extraction"> |
281 |
<junit printsummary="off" fork="on" dir="."> |
279 |
<junit printsummary="off" fork="on" dir="."> |
282 |
<jvmarg value="-Xmx1024M"/> |
280 |
<jvmarg value="-Xmx1024M"/> |
283 |
<jvmarg value="-Xms512M"/> |
281 |
<jvmarg value="-Xms512M"/> |
Lines 300-306
Link Here
|
300 |
</junit> |
298 |
</junit> |
301 |
</target> |
299 |
</target> |
302 |
|
300 |
|
303 |
<target name="testimage" depends="clean,pdfbox.compile" description="Test image rendering"> |
301 |
<target name="testimage" depends="pdfbox.test.compile" description="Test image rendering"> |
304 |
<junit printsummary="off" fork="on" dir="." > |
302 |
<junit printsummary="off" fork="on" dir="." > |
305 |
<jvmarg value="-Xmx1024M"/> |
303 |
<jvmarg value="-Xmx1024M"/> |
306 |
<jvmarg value="-Xms512M"/> |
304 |
<jvmarg value="-Xms512M"/> |
Lines 323-330
Link Here
|
323 |
<test name="org.apache.pdfbox.util.TestPDFToImage" /> |
321 |
<test name="org.apache.pdfbox.util.TestPDFToImage" /> |
324 |
</junit> |
322 |
</junit> |
325 |
</target> |
323 |
</target> |
|
|
324 |
|
325 |
<target name="pdfbox.test.compile" depends="pdfbox.compile"> |
326 |
<mkdir dir="${pdfbox.test.classes.dir}" /> |
327 |
<javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}" |
328 |
target="1.5" source="1.5" debug="on" deprecation="on" |
329 |
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> |
330 |
</target> |
326 |
|
331 |
|
327 |
<target name="test-junit" depends="clean,pdfbox.compile" description="run junit tests"> |
332 |
<target name="test-junit" depends="pdfbox.test.compile" description="run junit tests"> |
328 |
<junit printsummary="off" fork="on" dir="."> |
333 |
<junit printsummary="off" fork="on" dir="."> |
329 |
<sysproperty key="java.util.logging.config.file" |
334 |
<sysproperty key="java.util.logging.config.file" |
330 |
value="src/test/resources/logging.properties"/> |
335 |
value="src/test/resources/logging.properties"/> |