Bugs item #3311984, was opened at 2011-06-05 19:45
Message generated for change (Comment added) made by dogu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3311984&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: swquinn ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Project basedir is not treated as property by default...

Initial Comment:
Using NAnt-0.91-Alpha2

In adopting NAnt for several build tasks, because of its obvious influences 
from Apache Ant, I am surprised to find that the basedir attribute on the 
project does not appear to be codified into an actual useable parameter.

The code below generates the property exception: "Propery evaluation failed."
<?xml version="1.0"?>
<project name="Foo" default="build" basedir=".">
        <include buildfile="${basedir}/foo.xml" />
        ...
</project>

In Ant the basedir attribute is a useable property in string substitutions. 
Phing--a PHP-based Ant derivative--supports the handling of the basedir 
property the same way as Ant. It seems only natural NAnt should support this as 
well.

Is there a reason NAnt doesn't support the basedir value as a property?

----------------------------------------------------------------------

>Comment By: Dominik Guder (dogu)
Date: 2011-09-25 22:31

Message:
I don't know why this is not present anymore. There was a property called
nant.project.basedir but this is deprecated. see
http://nant.sourceforge.net/release/latest/help/fundamentals/properties.html#built-in-properties
To get this directory you might use ${project::get-base-directory} see
http://nant.sourceforge.net/release/latest/help/functions/project.get-base-directory%28%29.html


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3311984&group_id=31650

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to