ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Call Ant task from java file
Date Fri, 12 Aug 2005 13:51:37 GMT
And you´re trying to catch files (include="**/CVS/") without touching the default excludes...

Jan

>-----Ursprüngliche Nachricht-----
>Von: Rüegsegger Martin [mailto:martin.rueegsegger@visana.ch] 
>Gesendet: Freitag, 12. August 2005 15:50
>An: Ant Users List; graste@gmail.com
>Betreff: AW: Call Ant task from java file
>
>Hi Steffen 
>
>"First question: What am I doing wrong?"
>
>You didn't specify, what's going wrong, when you run your code. 
>I recommend writing an Ant task first and then use it outside 
>of a build.xml instead of using ant classes directly. Here's 
>an example:
>
>...
>Project project = new Project();
>project.init();
>Target target = new Target(); 
>ReorganizeAntTask rat   = new ReorganizeAntTask(); 
>rat.setProject(project);
>rat.setOwningTarget(target);
>rat.execute();
>...
>
>Maybe you code fails only because of the missing dummy target object.
>
>Regards,
>Martin
>
>---------------------------------------------------------------------
>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