Changeset 3921 for branches/stable-2008-03-12/pfixcore
- Timestamp:
- 10/20/08 15:07:32 (3 months ago)
- Files:
-
- branches/stable-2008-03-12/pfixcore/ChangeLog (modified) (1 diff)
- branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixcore/util/TargetGeneratorTask.java (modified) (1 diff)
- branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixxml/targets/TargetGenerationReport.java (modified) (2 diffs)
- branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixxml/targets/TargetGenerator.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable-2008-03-12/pfixcore/ChangeLog
r3776 r3921 1 2008-10-20 Martin Leidig <mleidig@schlund.de> 2 3 Let generate target fail with BuildException if TargetGeneratorReport 4 contains errors. 5 6 * src/de/schlund/pfixcore/util/TargetGeneratorTask.java: throw 7 BuildException if TargetGenerator reported errors 8 * src/de/schlund/pfixxml/targets/TargetGenerator.java: added 9 method to check if TargetGenerator errors occurred 10 * src/de/schlund/pfixxml/targets/TargetGenerationReport.java: added 11 method to check if TargetGenerator errors were reported 12 1 13 2008-08-05 Martin Leidig <mleidig@schlund.de> 2 14 branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixcore/util/TargetGeneratorTask.java
r2825 r3921 92 92 } finally { 93 93 log(TargetGenerator.getReportAsString(), Project.MSG_INFO); 94 if(TargetGenerator.errorsReported()) throw new BuildException("TargetGenerator reported errors."); 94 95 } 95 96 } else { branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixxml/targets/TargetGenerationReport.java
r3367 r3921 24 24 25 25 public class TargetGenerationReport { 26 26 27 private final HashMap<String, ArrayList<Exception>> hash; 27 28 private boolean hasError; 29 28 30 public TargetGenerationReport() { 29 31 this.hash = new HashMap<String, ArrayList<Exception>>(); … … 35 37 list.add(e); 36 38 hash.put(project, list); 39 hasError = true; 37 40 } else { 38 41 hash.get(project).add(e); 39 42 } 43 } 44 45 public boolean hasError() { 46 return hasError; 40 47 } 41 48 branches/stable-2008-03-12/pfixcore/src/de/schlund/pfixxml/targets/TargetGenerator.java
r3418 r3921 852 852 return report.toString(); 853 853 } 854 855 public static boolean errorsReported() { 856 return report.hasError(); 857 } 854 858 855 859 public static void resetGenerationReport() {
