Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

wsdeploy ant error should fail

843834Oct 7 2003 — edited Oct 15 2003
When using the ant wsdeploy task, it just prints errors without failing. I tried to see if the task set any properties, but i could not find any. There seems to be no method to set the task to fail either.

Here is how I used the task:

<echo message="Processing created warfile using 'wsdeploy'"/>
<wsdeploy
keep="false"
inWarFile="${build.dir}/${ant.project.name}-raw.war"
outWarFile="${build.dir}/${ant.project.name}.war"
verbose="true">
<classpath refid="compile.classpath"/>
</wsdeploy>

It is not good if I make other tasks depend on this one without being able to see if an error occurred. Is there a way to parse the output from ant to check for the text 'error'?
/Klas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2003
Added on Oct 7 2003
1 comment
127 views