wayneaz wrote:
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

1. I'm surprised you could run the bat file that way; I would have expected you needed to run cmd with the bat file as an argument

2. if you dont get an error code from the bat file, you wont get it picked up by ant

you could look in the .bat file, see what it does, and build up a <java> command...



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to