You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ashutosh Kumar <as...@ionidea.com> on 2004/09/02 16:01:10 UTC
RE: calling ant from java program
I am trying to execute a Ant program It works fine in stand alone , but
when integarted with swing GUI it does not work.What may be the
reason.??
ClientHandler t = new ClientHandler();
ProgramMain programMain=new ProgramMain( t);
try {
programMain.executeBuild();
}
catch (Exception ex) {
ex.printStackTrace() ;
}
catch (Throwable ex) {
ex.printStackTrace();
-----Original Message-----
From: Olivier Croisier [mailto:Olivier.Croisier@thales-is.com]
Sent: Thursday, August 26, 2004 7:47 PM
To: Ant Users List
Subject: Re: calling ant from java program
Ah, that explains many things !
I thought you wanted to call build.xml's targets...
Anyway, according to your previous post, the error message you got was
related to a "name" attribute, that couldn't be set for some object.
Check that all the "setName" methods you call actually work, ie that
"name" attributes exist for each "setName"-ed objects, as it seems to be
a javabean reflection problem.
--
CROISIER Olivier
Software Engineer
Thales IS - ANS
olivier.croisier@thales-is.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org