But then it doesn't pick up the right classpath - it uses the classpath ant
is using.

Is it possible to specify a classpath and use fork=false?

Kevin Jones
Developmentor
www.develop.com

> -----Original Message-----
> From: Vojta Filip [mailto:[EMAIL PROTECTED]]
> Sent: 14 November 2001 11:42
> To: Ant Users List
> Subject: Re: Command line input
>
>
>
>
> Try fork="false". It should work.
>
>  Vojta
>
>
> On Wed, 14 Nov 2001, Kevin Jones wrote:
>
> > I'm hope this is a stupid question!
> >
> > I have a very simple Java application that reads input from the command
> > line. I use the java task like this
> >
> >   <target depends="build" name="runSender">
> >     <java classname="MyApp" classpathref="project.class.path"
> > failonerror="true" fork="true">
> >         <arg line="arg1 arg2"/>
> >      </java>
> >   </target>
> >
> > When I run this from Ant I can't enter anything from the
> command line (it's
> > being eaten by something), works OK outside of Ant.
> >
> > What am I missing?
> >
> > Kevin Jones
> > Developmentor
> > www.develop.com
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>

--
Vojtech Filip
Systinet  (formerly Idoox)
http://www.systinet.com


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


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

Reply via email to