From: Jeremias Maerki Date: Mon, 31 Jan 2005 13:25:34 +0000 (+0000) Subject: -Dfop.layoutengine.starts-with=breaks selects all tests that begin with "breaks"... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a0c6e26f18453ffa0aac8af661f850db541a3a1;p=xmlgraphics-fop.git -Dfop.layoutengine.starts-with=breaks selects all tests that begin with "breaks", eg. "breaks2.xml". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198346 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java index a36f4fb5a..f005aeb2c 100644 --- a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java +++ b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java @@ -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");