ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Kumar" <ashutosh.ku...@ionidea.com>
Subject RE: calling ant from java program
Date Thu, 02 Sep 2004 14:01:10 GMT
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


Mime
View raw message