Return-Path: Delivered-To: apmail-pdfbox-commits-archive@www.apache.org Received: (qmail 43278 invoked from network); 9 Feb 2010 01:15:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 01:15:22 -0000 Received: (qmail 62279 invoked by uid 500); 9 Feb 2010 01:15:22 -0000 Delivered-To: apmail-pdfbox-commits-archive@pdfbox.apache.org Received: (qmail 62253 invoked by uid 500); 9 Feb 2010 01:15:22 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 62244 invoked by uid 99); 9 Feb 2010 01:15:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 01:15:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 01:15:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 16A60238890B; Tue, 9 Feb 2010 01:15:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r907868 - in /pdfbox/trunk: ./ src/test/java/org/apache/pdfbox/pdfparser/ src/test/java/org/apache/pdfbox/pdmodel/ src/test/java/org/apache/pdfbox/util/ src/test/resources/input/ src/test/resources/pdfparser/ src/test/resources/pdfreader/ t... Date: Tue, 09 Feb 2010 01:15:00 -0000 To: commits@pdfbox.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100209011501.16A60238890B@eris.apache.org> Author: jukka Date: Tue Feb 9 01:15:00 2010 New Revision: 907868 URL: http://svn.apache.org/viewvc?rev=907868&view=rev Log: PDFBOX-545: Switch PDFBox build to Maven Use the Maven directory layout for the test files. Added: pdfbox/trunk/src/test/resources/input/ - copied from r907855, pdfbox/trunk/test/input/ pdfbox/trunk/src/test/resources/pdfparser/ - copied from r907855, pdfbox/trunk/test/pdfparser/ pdfbox/trunk/src/test/resources/pdfreader/ - copied from r907855, pdfbox/trunk/test/pdfreader/ Removed: pdfbox/trunk/test/ Modified: pdfbox/trunk/build.xml pdfbox/trunk/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java pdfbox/trunk/src/test/java/org/apache/pdfbox/pdmodel/TestFDF.java pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripperPerformance.java Modified: pdfbox/trunk/build.xml URL: http://svn.apache.org/viewvc/pdfbox/trunk/build.xml?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/build.xml (original) +++ pdfbox/trunk/build.xml Tue Feb 9 01:15:00 2010 @@ -26,7 +26,7 @@ - + @@ -91,8 +91,9 @@ - - + + + @@ -227,13 +228,13 @@ - + @@ -254,14 +255,14 @@ - - - - - - + + + + + + - + Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java Tue Feb 9 01:15:00 2010 @@ -92,7 +92,7 @@ PDDocument doc = null; try { - doc = PDDocument.load( "test/pdfparser/genko_oc_shiryo1.pdf"); + doc = PDDocument.load( "src/test/resources/pdfparser/genko_oc_shiryo1.pdf"); } finally { Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/pdmodel/TestFDF.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/pdmodel/TestFDF.java?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/pdmodel/TestFDF.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/pdmodel/TestFDF.java Tue Feb 9 01:15:00 2010 @@ -45,12 +45,12 @@ */ public class TestFDF extends TestCase { - - private static final String PDF_FDEB = "test/input-ext/fdeb.pdf"; - private static final String PDF_LOTSOFFIELDS = "test/input-ext/pdf_with_lots_of_fields.pdf"; - private static final String PDF_FREEDOM = "test/input-ext/FreedomExpressions.pdf"; - private static final String FDF_FREEDOM = "test/input-ext/FreedomExpressions.fdf"; - + + private static final String PDF_FDEB = "target/test-input-ext/fdeb.pdf"; + private static final String PDF_LOTSOFFIELDS = "target/test-input-ext/pdf_with_lots_of_fields.pdf"; + private static final String PDF_FREEDOM = "target/test-input-ext/FreedomExpressions.pdf"; + private static final String FDF_FREEDOM = "target/test-input-ext/FreedomExpressions.fdf"; + /** * Constructor. * Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java Tue Feb 9 01:15:00 2010 @@ -160,10 +160,10 @@ throws Exception { String filename = System.getProperty("org.apache.pdfbox.util.TextStripper.file"); - String inDir = new String("test/input/rendering/"); - String outDir = new String("test/output/rendering/"); - String inDirExt = new String("test/input-ext/rendering/"); - String outDirExt = new String("test/output-ext/rendering/"); + String inDir = "src/test/resources/input/rendering"; + String outDir = "target/test-output/rendering"; + String inDirExt = "target/test-input-ext/rendering"; + String outDirExt = "target/test-output-ext/rendering"; if ((filename == null) || (filename.length() == 0)) { Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java Tue Feb 9 01:15:00 2010 @@ -43,9 +43,9 @@ * * This test suite is designed to test PDFTextStripper using a set of PDF * files and known good output for each. The default mode of testAll() - * is to process each *.pdf file in "test/input". An output file is - * created in "test/output" with the same name as the PDF file, plus an - * additional ".txt" suffix. + * is to process each *.pdf file in "src/test/resources/input". An output + * file is created in "target/test-output" with the same name as the PDF file, + * plus an additional ".txt" suffix. * * The output file is then tested against a known good result file from * the input directory (again, with the same name as the tested PDF file, @@ -53,12 +53,14 @@ * with and without sorting enabled. The sorted files have a "-sorted.txt" * suffix. * - * So for the file "test/input/hello.pdf", an output file will be generated - * named "test/output/hello.pdf.txt". Then that file will be compared to - * the known good file "test/input/hello.pdf.txt", if it exists. + * So for the file "src/test/resources/input/hello.pdf", an output file will + * be generated named "target/test-output/hello.pdf.txt". Then that file + * will be compared to the known good file + * "src/test/resources/input/hello.pdf.txt", if it exists. * * To support testing with files that are not officially distributed - * with PDFBox, this test will also look in the "test/input-ext" directory. + * with PDFBox, this test will also look in the "target/test-input-ext" + * directory. * * Any errors are logged, and at the end of processing all *.pdf files, if * there were any errors, the test fails. The logging is at INFO, as the @@ -374,10 +376,10 @@ throws Exception { String filename = System.getProperty("org.apache.pdfbox.util.TextStripper.file"); - File inDir = new File("test/input"); - File outDir = new File("test/output"); - File inDirExt = new File("test/input-ext"); - File outDirExt = new File("test/output-ext"); + File inDir = new File("src/test/resources/input"); + File outDir = new File("target/test-output"); + File inDirExt = new File("target/test-input-ext"); + File outDirExt = new File("target/test-output-ext"); if ((filename == null) || (filename.length() == 0)) { Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripperPerformance.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripperPerformance.java?rev=907868&r1=907867&r2=907868&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripperPerformance.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestTextStripperPerformance.java Tue Feb 9 01:15:00 2010 @@ -107,7 +107,7 @@ throws Exception { String filename = System.getProperty("org.apache.pdfbox.util.TextStripper.file"); - File testDir = new File("test/input"); + File testDir = new File("src/test/resources/input"); if ((filename == null) || (filename.length() == 0)) {