Gert Driesen wrote:
the nant task should be used for calling other build files. I don't see any value in doing what the call task does if there is no buildfile attribute specified. We should fail if no buildfile is specified and the buildfiles fileset is empty. I'm surprised we don't right now.You can use the <call> task to call targets in the current build file.
Ian, Scott, Jarek : is this something we should change ? Should we call the target in the current build file, if no other build file(s) have been specified ? Or should we fail when no build file is specified at all (meaning buildfile attribute is not specified, and no includes specified in buildfiles fileset ? Or should we just output a warning (or info message) that no build file(s) were specified ?
Ian
Gert
----- Original Message ----- From: "Ramón Casanova" <[EMAIL PROTECTED]>
To: "'Gert Driesen'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 26, 2004 9:40 AM
Subject: RE: [nant-dev] include Task
Hi Gert,
After some additional testing I realised that the problem isn't in the include task, but in de nant task.
I'm unable to invoke another target (included in another file or in the same project file). The following sample doesn't work.
Thanks.
<?xml version="1.0"?> <project name="Test" default="build">
<target name="test"> <echo message="Never Invoked"/> </target>
<target name="build"> <nant target="test"/> </target>
</project>
-----Mensaje original----- De: Gert Driesen [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 26 de mayo de 2004 9:14 Para: Ramón Casanova Asunto: Re: [nant-dev] include Task
Ramón,
Can you send me a repro for this ?
Thanks,
Gert
----- Original Message ----- From: "Ramón Casanova" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 25, 2004 1:33 PM
Subject: [nant-dev] include Task
Hello,
When I include a file through an include task, I have to remove the project element. Otherwise, the target is simply ignored.
When I include a file without a root project element, the only target is always executed even if I don't invoke it using a nant task.
Thanks.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&opÌk
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=click _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
