]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
-Dfop.layoutengine.starts-with=breaks selects all tests that begin with "breaks"...
authorJeremias Maerki <jeremias@apache.org>
Mon, 31 Jan 2005 13:25:34 +0000 (13:25 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 31 Jan 2005 13:25:34 +0000 (13:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198346 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java

index a36f4fb5afbd62404e411cf366d0edd440f12067..f005aeb2c219342a402b857c192c2ed270dc96b0 100644 (file)
@@ -32,6 +32,7 @@ import org.apache.commons.io.filefilter.AndFileFilter;
 import org.apache.commons.io.filefilter.IOFileFilter;
 import org.apache.commons.io.filefilter.NameFileFilter;
 import org.apache.commons.io.filefilter.NotFileFilter;
+import org.apache.commons.io.filefilter.PrefixFileFilter;
 import org.apache.commons.io.filefilter.SuffixFileFilter;
 import org.apache.commons.io.filefilter.TrueFileFilter;
 
@@ -70,8 +71,12 @@ public class LayoutEngineTestSuite {
         
         IOFileFilter filter;
         String single = System.getProperty("fop.layoutengine.single");
+        String startsWith = System.getProperty("fop.layoutengine.starts-with");
         if (single != null) {
             filter = new NameFileFilter(single);
+        } else if (startsWith != null) {
+            filter = new PrefixFileFilter(startsWith);
+            filter = new AndFileFilter(filter, new SuffixFileFilter(".xml"));
         } else {
             filter = new SuffixFileFilter(".xml");
             String disabled = System.getProperty("fop.layoutengine.disabled");