Chris Miles | 4 Jul 13:31

[groovy-dev] ant.inport from groovy?

Hi - I want to invoke a couple of Ant targets before running my gant stuff.
 
I can include my common ant stuff with
  ant.'import' ( file : 'buildSWFcommon.xml' )
but when I try
 
target ('try13' : '' ) {
  depends ( 'init' )
  // stuff using pre-defined properties and targets
  ...
}
(init is defined in buildSWFcommon.xml) I get
  Target `init' does not exist in this project.
 
Using -d to gant I find that gant is looking for init in build.xml - which is strange.
 
Can I invoke the buildSWFcommon.xml target 'init' ?
 
Chris
 
 

Gmane