Yes, I understood. And my approach does exact that.
1. "main" is your main buildfile
2. The other buildfiles are <import>ed on root level
3. The other buildfiles are 'valid' buildfiles (with <ant> they also have to be)
4. Imported targets have the names "{targetname}" and
"{projectname}.{targetname}".
5. The new compile-target makes use of the 2nd name pattern in its depends
clause
Benefit over <ant>: <ant> is more heave-weight as it creates a new Ant instance
for each new project.
But if <ant> is ok with you ... have you had a look at <subant>?
Jan
>-----Ursprüngliche Nachricht-----
>Von: Mitja B. [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 19. September 2007 10:05
>An: Ant Users List
>Betreff: Re: AW: import file inside target
>
>Hi,
>
>thx boath
>
>Maybe i did not write ok what i want. Inside <target
>name="compile" ../> i
>want to call other xml file (build_ModelIRC2000.xml,..) which
>is separate
>project for compiling ModelIRC2000,...
>
>In this files i have ant compiler
>
>Thx
>--
>L.P.
>Mitja B.
>
>
>--------- Original Message --------
>From: Ant Users List <[email protected]>
>To: [email protected] <[email protected]>
>Subject: AW: import file inside target
>Date: 19/09/07 09:07
>
>> <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: [email protected]
>> >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]
>>
>>
>>
>
>________________________________________________
>Message sent using UebiMiau 2.7.10
>
>
>
>---------------------------------------------------------------------
>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]