Move one folder up in nant script
I'm not a Nantes expert, so I'll have to ask this question in redicolus.
I have a svn.source.root variable that points to c: \ folderA \ FolderB \ FolderC
how can I make the svn.source.root.modified variable to point 2 folders up? that is, folderA
Obviously the following didn't work:
Please, help.
thanks
+2
a source to share
2 answers
Your problem is the syntax of the property. $
must come before {}
:
<project default="test">
<property name="svn" value="c:\users\peter" />
<target name="test">
<echo message="${svn}" />
<echo message="${svn}\..\..\" />
<echo message="${path::get-full-path(svn + '\..\..\')}" />
</target>
</project>
+1
a source to share