I am using the following ant-taget to verify my EJBs:

  <target name="verify" depends="jar">
    <java classname="org.jboss.verifier.Main"
          fork="true"
          dir="${jboss.home}/deploy">
      <arg value="${build.dir}/deploy/${name}.jar"/>
      <classpath>
        <pathelement location="${jboss.home}/lib/jaxp.jar"/>
        <pathelement location="${jboss.home}/lib/parser.jar"/>
        <pathelement location="${jboss.home}/bin/verifier.jar"/>
        <pathelement location="${jboss.home}/lib/ext/castor.jar"/>
      </classpath>
    </java>
  </target>

I have not managed to reuse the result of the verifier in ant
with ant's failonerror switch. Maybe the verifier does not set
returncodes?

Ralf

"Mills, Maurice" wrote:
> 
> I am working on an ejbjar task that will build EJB jars for JBoss.  Is it
> possible to use the verifier to verify the EJBs at compile time instead of
> waiting until runtime?  If so, how would I go about using it?
> 
> Any help would be appreciated.
> 
> Thanks,
> Maury
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to