Hi, Sungho
org.apache.tools.ant.Main#startAnt calls System.exit(0) internally.
So, the Java process was terminated, IMHO.
You should use org.apache.tools.ant.Project#executeTarget( String ), or
org.apache.tools.ant.Project#executeTargets( Vector )
Best Regards,
trad-ex
>Dear Ant User Group.
>
>
to:[EMAIL PROTECTED]
Gesendet: Mittwoch, 3. Januar 2007 21:03
An: user@ant.apache.org
Betreff: Problem with startAnt()
Dear Ant User Group.
I am having a problem to execute Ant via Java. After
startAnt() executed, the Hello.xml was done successfully, but
it does not go though the next step whic
Sungho Maeung wrote:
Dear Ant User Group.
I am having a problem to execute Ant via Java. After startAnt()
executed, the Hello.xml was done successfully, but it does not go
though the next step which supports to be printing out the output
"Hello, it is done".
another strange thing is when
gt;Von: Sungho Maeung [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 3. Januar 2007 21:03
>An: user@ant.apache.org
>Betreff: Problem with startAnt()
>
>Dear Ant User Group.
>
>I am having a problem to execute Ant via Java. After
>startAnt() executed, the Hello.xml was done su
Dear Ant User Group.
I am having a problem to execute Ant via Java. After startAnt()
executed, the Hello.xml was done successfully, but it does not go
though the next step which supports to be printing out the output
"Hello, it is done".
another strange thing is when i run it on Dos comman