Repository: flex-falcon Updated Branches: refs/heads/feature/maven-migration 8c7ea138a -> 2ea20e71a
- Moved the ProblemResourceBundleGeneratorMojo execution to the process-resources phase as it actually processes a mesages_en.properties copied to the output in the generate-resoures phase - Made the mojo append to an existing file instead of replacing it. Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/2ea20e71 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/2ea20e71 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/2ea20e71 Branch: refs/heads/feature/maven-migration Commit: 2ea20e71a3f3463670ec262a6952b732be262148 Parents: 8c7ea13 Author: Christofer Dutz <[email protected]> Authored: Wed Feb 24 12:30:04 2016 +0100 Committer: Christofer Dutz <[email protected]> Committed: Wed Feb 24 12:30:04 2016 +0100 ---------------------------------------------------------------------- .../org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java | 2 +- .../flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2ea20e71/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java ---------------------------------------------------------------------- diff --git a/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java b/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java index 38697ba..3845be9 100644 --- a/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java +++ b/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/BaseProblemGeneratorMojo.java @@ -46,7 +46,7 @@ public abstract class BaseProblemGeneratorMojo extends AbstractMojo } try { - PrintWriter writer = new PrintWriter(new FileWriter(generatedFile)); + PrintWriter writer = new PrintWriter(new FileWriter(generatedFile, true)); try { printHeader(writer); http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2ea20e71/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java ---------------------------------------------------------------------- diff --git a/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java b/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java index 0424d41..dcbedce 100644 --- a/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java +++ b/compiler-build-tools/src/main/java/org/apache/flex/compiler/tools/ProblemResourceBundleGeneratorMojo.java @@ -26,7 +26,7 @@ import java.io.*; /** * Goal which touches a timestamp file. */ -@Mojo(name="generate-problems-resource-bundle",defaultPhase = LifecyclePhase.GENERATE_RESOURCES) +@Mojo(name="generate-problems-resource-bundle",defaultPhase = LifecyclePhase.PROCESS_RESOURCES) public class ProblemResourceBundleGeneratorMojo extends BaseProblemGeneratorMojo {
