Note that there are some explanatory texts on larger screens.

plurals
  1. PONAnt ignoring property in included build file
    primarykey
    data
    text
    <p>I'm trying to make my project build file include a local build file, to allow for some customization for each developer, without having to keep exclulding the build file from version control commits etc.</p> <p>But NAnt keeps ignoring the properties in my included build file, and not overwriting the properties set in the global build file.</p> <p>For demo purposes this short build file behaves the same:</p> <pre><code>&lt;project name="FooProject" default="showme" basedir="." &gt; &lt;description&gt;Foo&lt;/description&gt; &lt;!-- Overwrite this property in local.build --&gt; &lt;property name="database.connectionstring" overwrite="true" readonly="false" value="foo" /&gt; &lt;include buildfile="local.build" failonerror="true" verbose="true" /&gt; &lt;target name="showme" description="Show connectionstring variable"&gt; &lt;echo message="Connectionstring: ${database.connectionstring}" /&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p>-and my local.build file looks like this:</p> <pre><code>&lt;property name="database.connectionstring" value="bar" /&gt; </code></pre> <p>The expected output when running NAnt with this build file is "Connectionstring: bar", but the resulit is "Connectionstring: foo", no matter which combination of readonly and overwrite I try.</p> <p>It does fail if I rename the file to something else, so NAnt is aware of the included file.</p> <p>NAnt is v0.91 alpha.</p> <p>Am I overlooking something or is NAnt not supposed to work like I expect?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload