jeremias    2005/01/31 05:25:34

  Modified:    test/java/org/apache/fop/layoutengine
                        LayoutEngineTestSuite.java
  Log:
  -Dfop.layoutengine.starts-with=breaks selects all tests that begin with 
"breaks", eg. "breaks2.xml".
  
  Revision  Changes    Path
  1.5       +6 -1      
xml-fop/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java
  
  Index: LayoutEngineTestSuite.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LayoutEngineTestSuite.java        12 Jan 2005 12:03:17 -0000      1.4
  +++ LayoutEngineTestSuite.java        31 Jan 2005 13:25:34 -0000      1.5
  @@ -32,6 +32,7 @@
   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 @@
           
           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");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to