You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Hunt, Bryan" <B....@emuse.ie> on 2002/01/08 16:50:31 UTC

java task failures

I have the following XML in an ant script .

 <target name="run" depends="external">
	 <java classname="ie.emuse.tutorial.ant.test" fork="yes">
        <classpath>
         <pathelement path="${outputDir}"/>
         <pathelement path="${java.class.path}"/>
        </classpath>
       </java>
   </target>

It works fine, no problems , note that I have set the fork attribute to yes
the default is no. However if I remove the fork attribute I get a 
java.lang.NoSuchMethodException error. If I am compiling a large project and

I want to have a variety of tests going on as the project is built this
means 
that I will be forking JVM's all over the place, not a pretty sight ...

Can anyone give me an idea as to the cause of this problem.

I suspect that it has something to do with this "build.sysclasspath" can
anyone 
throw any light on the matter ?

Thanks

Bryan








perl -e 'print
pack("c*",0x62,0x72,0x79,0x61,0x0,0x6E,0x68,0x75,0x6E,0x74)."\n";'

___________________________________________

eMuse Technologies
Unit 24, Trinity Enterprise Centre,
Pearse Street, Dublin 2, Ireland

Tel:  353-1-671-7317
Fax:  353-1-671-7319

website: www.emuse.ie 
email: info@emuse.ie 
___________________________________________

This message has been scanned for viruses using GroupShield for Exchange 4.5

CONFIDENTIALITY NOTICE - The information contained in this email message is
intended only for confidential use of the named recipient. If the reader is
not the intended recipient or the person responsible for delivering it to
the recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination or copying of this
communication is strictly prohibited. If you have received this in error,
please notify the sender immediately.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java task failures

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 8 Jan 2002, Bryan Hunt <B....@emuse.ie> wrote:

> However if I remove the fork attribute I get a
> java.lang.NoSuchMethodException error.

Which method in which class is it, that it cannot find?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>