Stefan Bodewig [EMAIL PROTECTED] wrote:

> * missing file in filterfile
>
> cannot find that patch
 
This was mine... just a tiny patch to make ant not die when
you try to load a filterfile that doesn't exist (to match the
behaviour of propertyfile).
 
Attached is the patch.

-- 
Ben Reed a.k.a. Ranger Rick ([EMAIL PROTECTED])
http://defiance.dyndns.org/ / http://radio.scenespot.org/
The devil's in the broad, sweeping generalizations.
--- src/main/org/apache/tools/ant/taskdefs/Filter.java  Wed Jan  3 09:18:30 2001
+++ ../opennms/tools/ant/org/apache/tools/ant/taskdefs/Filter.java      Sun Jul 
15 13:08:51 2001
@@ -58,6 +58,7 @@
 import java.util.Properties;
 import java.io.File;
 import java.io.FileInputStream;
+import java.io.FileNotFoundException;
 
 import org.apache.tools.ant.*;
 
@@ -120,6 +121,8 @@
                 String strValue = props.getProperty(strPropName);
                 proj.addFilter(strPropName, strValue);
             }
+        } catch (FileNotFoundException e) {
+            this.log("Warning: "+filtersFile+" not found.");
         } catch (Exception e) {
             throw new BuildException("Could not read filters from file: " + 
filtersFile);
         } finally {

Reply via email to