Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2011-01-27 16:31:35 -0500
committerpelder2011-01-27 16:31:35 -0500
commit3ae538545c5e08dadc6a8d70ee4db73b72e5c290 (patch)
treec7629aca9964dc51b99a458c11f3a7729dc82e07
parentdacb915e6f53091ab65b15b2169ac577a437e338 (diff)
downloadorg.eclipse.jet-3ae538545c5e08dadc6a8d70ee4db73b72e5c290.tar.gz
org.eclipse.jet-3ae538545c5e08dadc6a8d70ee4db73b72e5c290.tar.xz
org.eclipse.jet-3ae538545c5e08dadc6a8d70ee4db73b72e5c290.zip
[331856] JET: jet.transform throws ant failure on success
-rw-r--r--plugins/org.eclipse.jet/antsrc/org/eclipse/jet/ant/tasks/JETTransformTask.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/antsrc/org/eclipse/jet/ant/tasks/JETTransformTask.java b/plugins/org.eclipse.jet/antsrc/org/eclipse/jet/ant/tasks/JETTransformTask.java
index 7ac61c8..a9048f1 100644
--- a/plugins/org.eclipse.jet/antsrc/org/eclipse/jet/ant/tasks/JETTransformTask.java
+++ b/plugins/org.eclipse.jet/antsrc/org/eclipse/jet/ant/tasks/JETTransformTask.java
@@ -90,7 +90,10 @@ public class JETTransformTask extends Task {
log("Running \"" + transformId + "\" on resource \"" + resource.getFullPath().toString() + "\".");
final IStatus result = JET2Platform.runTransformOnResource(transformId, resource, monitor);
- if(!result.matches(IStatus.OK|IStatus.INFO)) {
+ if(result.matches(IStatus.INFO) || result.isOK()) {
+ // INFO status arises from <c:log> tags - not considered errors.
+ // Do nothing... everything worked as planned.
+ } else {
throw new BuildException(result.getMessage());
}
}

Back to the top