diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-01-31 13:25:34 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-01-31 13:25:34 +0000 |
commit | 2a0c6e26f18453ffa0aac8af661f850db541a3a1 (patch) | |
tree | ea00df992ccebebddbd86875e73ea674ccd006a7 /test/java/org/apache/fop/layoutengine | |
parent | 9ba2e873d3fabc5e243d3da1e0c75dc52dc500ff (diff) | |
download | xmlgraphics-fop-2a0c6e26f18453ffa0aac8af661f850db541a3a1.tar.gz xmlgraphics-fop-2a0c6e26f18453ffa0aac8af661f850db541a3a1.zip |
-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
Diffstat (limited to 'test/java/org/apache/fop/layoutengine')
-rw-r--r-- | test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |