如何向trunk.dir
属性分配相对路径到中继位置?
这是我的nant.build
文件:
<?xml version="1.0" encoding="utf-8"?>
<project name="ProjectName" default="build" xmlns="http://nant.sf.net/release/0.85/nant.xsd">
<!-- Directories -->
<property name="trunk.dir" value="C:\Projects\ProjectName" /><!-- I want relative path over here! -->
<property name="source.dir" value="${trunk.dir}src\" />
<!-- Working Files -->
<property name="msbuild.exe" value="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" />
<property name="solution.sln" value="${source.dir}ProjectName.sln" />
<!-- Called Externally -->
<target name="compile">
<!-- Rebuild foces msbuild to clean and build -->
<exec program="${msbuild.exe}" commandline="${solution.sln} /t:Rebuild /v:q" />
</target>
</project>