I have a build script that executes ejbdeploy.bat. When errors are found the
build still reports a successful build. I need to find a way to stop the
build and report a build failure when the ejbdeploy.bat program finds
errors. I have tried using failonerror="true" to no effect. I have pasted
the last few lines of the ejbdeploy results and the code below:
[exec] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean:
PartSessionFacade): CHKJ2805E: <local-home> interface
com.quest.businessfacade.parts.PartSessionFacadeLocalHome, or one of its
supertypes, cannot be reflected. Check the classpath.
[exec] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean:
PartSessionFacade): CHKJ2800E: <local> interface
com.quest.businessfacade.parts.PartSessionFacadeLocal, or one of its
supertypes, cannot be reflected. Check the classpath.
[exec] Shutting down workbench.
[exec] Execution Halted: Validation Errors Reported
[exec] 2 Errors, 4 Warnings, 2 Informational Messages
<target name="execute-ejbdeploy" depends="build-ejb">
<echo message="RMIC and EJBC. EJB Deploy VIEW=${ejb.viewpath}"/>
<exec executable="${ejbdeploy}/ejbdeploy.bat" failonerror="true"
os="Windows XP, Windows 2003">
<arg line="${deployb1}/jar/EJBTemp.jar
${deployb1}/jar
${deployb1}/jar/EJB.jar -trace
-cp
${deployb1}/jar/FrameworkBusiness.jar;
${deployb1}/jar/FrameworkCommon.jar;
${deployb1}/jar/FrameworkServices.jar;
${deployb1}/jar/Aspect.jar;
${deployb1}/jar/Common.jar;
${deployb1}/jar/Service.jar;
${deployb1}/jar/Persistence.jar;
${deployb1}/jar/Business.jar;
${deployb1}/jar/EJBClient.jar">
</arg>
</exec>
</target>
--
View this message in context:
http://www.nabble.com/How-to-Stop-Build-When-EJBDeploy-Finds-Errors-tf2321467.html#a6458935
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]