|
@@ -106,9 +106,11 @@ public class Filter extends Task { |
|
|
|
|
|
|
|
|
protected void readFilters() throws BuildException { |
|
|
protected void readFilters() throws BuildException { |
|
|
log("Reading filters from " + filtersFile, Project.MSG_VERBOSE); |
|
|
log("Reading filters from " + filtersFile, Project.MSG_VERBOSE); |
|
|
|
|
|
FileInputStream in = null; |
|
|
try { |
|
|
try { |
|
|
Properties props = new Properties(); |
|
|
Properties props = new Properties(); |
|
|
props.load(new FileInputStream(filtersFile)); |
|
|
|
|
|
|
|
|
in = new FileInputStream(filtersFile); |
|
|
|
|
|
props.load(in); |
|
|
|
|
|
|
|
|
Project proj = getProject(); |
|
|
Project proj = getProject(); |
|
|
|
|
|
|
|
@@ -120,6 +122,12 @@ public class Filter extends Task { |
|
|
} |
|
|
} |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
throw new BuildException("Could not read filters from file: " + filtersFile); |
|
|
throw new BuildException("Could not read filters from file: " + filtersFile); |
|
|
|
|
|
} finally { |
|
|
|
|
|
if (in != null) { |
|
|
|
|
|
try { |
|
|
|
|
|
in.close(); |
|
|
|
|
|
} catch (java.io.IOException ioex) {} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |