Hi Juha,

sorry that i am replying so late, but i have been quite buisy for the
last few days. The returncode works fine for my ant task, now. I just
had to change the classpath of the hava-task. So here is my actual
version (using current CVS JBoss):

  <target name="verify" depends="ear.uptodate.check"
unless="ear.uptodate">
    <java classname="org.jboss.verifier.Main"
          fork="true" failonerror="true">
      <arg value="${build.dir}/deploy/${name}.jar"/>
      <classpath>
        <pathelement location="${jboss.home}/lib/crimson.jar"/>
        <pathelement location="${jboss.home}/lib/ext/jboss.jar"/>
        <pathelement location="${jboss.home}/lib/ext/ejb.jar"/>
        <pathelement
location="${jboss.home}/lib/ext/jpl-util-0_5b.jar"/>
        <pathelement location="${jboss.home}/conf/default/"/>
      </classpath>
    </java>
  </target>

I send a copy of this mail to the list, if somebody else is interested.

Ralf

Juha Lindfors wrote:
> 
> Hi guys,
> 
> the return code fix is in the CVS if you're interested in playing with it.
> 0 for normal process exit, 1 for any warnings, -1 for abnormal process exit
> 
> -- Juha
> 
> At 08:37 21.3.2001 -0500, Mills, Maurice wrote:
> >I was looking into this last night in Ant.  The method of calling this from
> >ant is to invoke a new process calling org.jboss.verifier.Main() I believe
> >(at least that is how they have done it for WebLogic).  I believe a simple
> >return code should be fine.  I am checking with the Ant people to verify
> >this.
> >
> >Thanks,
> >Maury
> >
> >-----Original Message-----
> >From: Juha Lindfors [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 21, 2001 2:12 AM
> >To: [EMAIL PROTECTED]
> >Subject: Re: [JBoss-user] Re: ejbjar Ant task for JBoss
> >
> >
> >
> >Hi,
> >
> >At 07:31 21.3.2001 +0100, you wrote:
> >>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>
> >
> >This is what I do as well. Seemed to work, so I haven't written a specific
> >ant task for it yet. Maurice, if you're interested in doing that, we'll add
> >it to the CVS. Should be quite easy to do too.
> >
> >>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?
> >
> >No it doesn't, but that's easily fixable. Just 0|1 or do you need something
> >more fancy?
> >
> >-- Juha
> >
> >
> >
> >_______________________________________________
> >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
> >



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

Reply via email to