You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by François Lictevout <fr...@alti.com> on 2001/07/13 09:51:19 UTC

Idea for future version


Hi,

I'm using Ant inside a java program, (for a task FTP), but there's a
System.exit(0) in the main class.
So my programs stops after the ant command.
To solve the problem, I've downloaded the sources and deleted the right
line. It works now.
However, I should do it for each new version.

Could it be possible for a future version (1.4 or more) to add any argument
(in the main class or in XML build file), which would make it possible to
stop or not a process?


François


AW: Idea for future version

Posted by Christoph Wilhelms <Ch...@t-online.de>.
> > François Lictevout wrote:
> > > I'm using Ant inside a java program, (for a task FTP), but there's a
> > > System.exit(0) in the main class.
> > > So my programs stops after the ant command.
> >
> > So don't use the main class. Create a Project and run it directly. It is
> not
> > hard.
> >
>
> He can for example have a look at the testcases - they do something like
> this.

... or Look into one of the Ant Integration Tool sources (VAJava, JBuilder
and Antidote). You'll find everything ypu need there!

Greetinx,
Chris


Re: Idea for future version

Posted by Nico Seessle <ni...@apache.org>.
----- Original Message -----
From: "Jesse Glick" <Je...@netbeans.com>
To: <an...@jakarta.apache.org>
Sent: Friday, July 13, 2001 5:41 PM
Subject: Re: Idea for future version


> François Lictevout wrote:
> > I'm using Ant inside a java program, (for a task FTP), but there's a
> > System.exit(0) in the main class.
> > So my programs stops after the ant command.
>
> So don't use the main class. Create a Project and run it directly. It is
not
> hard.
>

He can for example have a look at the testcases - they do something like
this.

Nico



Re: Idea for future version

Posted by Jesse Glick <Je...@netbeans.com>.
François Lictevout wrote:
> I'm using Ant inside a java program, (for a task FTP), but there's a
> System.exit(0) in the main class.
> So my programs stops after the ant command.

So don't use the main class. Create a Project and run it directly. It is not
hard.

-Jesse

-- 
Jesse Glick   <ma...@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR