ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitja B." <i...@mitjab.com>
Subject Re: AW: import file inside target
Date Wed, 19 Sep 2007 08:04:50 GMT
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 <user@ant.apache.org>
To: user@ant.apache.org <user@ant.apache.org>
Subject: AW: import file inside target
Date: 19/09/07 09:07

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

________________________________________________
Message sent using UebiMiau 2.7.10



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message