<project name="main"> <import file="build_ModelIRC200.xml"/> <import file="build_Model.xml"/> <import file="build_View.xml"/>
<target name="compile" depends="init,ModelIRC200.compile,Model.compile,View.compile" description="Compile"> </target> </project> <project name="ModelIRC200"> <target name="compile"> ... </project> <project name="Model"> <target name="compile"> ... </project> <project name="View"> <target name="compile"> ... </project> Jan >-----Ursprüngliche Nachricht----- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 19. September 2007 08:41 >An: Ant Users List; Mitja B. >Betreff: RE: import file inside target > > >Hi, > >-----Original Message----- >From: Mitja B. [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 19, 2007 7:50 AM >To: user@ant.apache.org >Subject: import file inside target > >/* ><target name="compile" depends="init" description="Compile"> ><import file="build_ModelIRC200.xml"/>g ><import file="build_Model.xml"/> ><import file="build_View.xml"/> ></target> > >i get error that import is only allowed as a top-level task. > >I need to call this files inside compile target. How can i make this? >/* > >Do you want to load properties via import ? >Use <xmlproperty ... />, <property ... />, <loadproperties ... /> >or <loadfile ... /> > >Do you want to do some xml transformation / need to edit >xml files ? >Use the <xmltask> > >Do you want to call other buildfiles ? >Use the <ant antfile="..." ... /> task > > >Regards, Gilbert > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]