summaryrefslogtreecommitdiff
path: root/Sait/Cmpp299/Assignment1/trunk/build/project.build
diff options
context:
space:
mode:
authormo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64>2008-05-08 20:21:57 +0000
committermo.khan <mo.khan@a0a4a051-f042-0410-9e78-9fae330bdb64>2008-05-08 20:21:57 +0000
commitaef1d30cc7ffaa7701fc7c530383fd15465fbbd5 (patch)
tree79086f18b3182326de08e0b1045400730f1e190b /Sait/Cmpp299/Assignment1/trunk/build/project.build
parent004893e4b8f610e9427f12dafd342b88aeb85d6f (diff)
register virtual directory when running. (requires admin privelages.)HEADmaster
added new version of nant. git-svn-id: http://mokhan.googlecode.com/svn/trunk@27 a0a4a051-f042-0410-9e78-9fae330bdb64
Diffstat (limited to 'Sait/Cmpp299/Assignment1/trunk/build/project.build')
-rw-r--r--Sait/Cmpp299/Assignment1/trunk/build/project.build67
1 files changed, 3 insertions, 64 deletions
diff --git a/Sait/Cmpp299/Assignment1/trunk/build/project.build b/Sait/Cmpp299/Assignment1/trunk/build/project.build
index 28a574c..0468f12 100644
--- a/Sait/Cmpp299/Assignment1/trunk/build/project.build
+++ b/Sait/Cmpp299/Assignment1/trunk/build/project.build
@@ -3,26 +3,18 @@
<include buildfile="local.properties.xml" />
<include buildfile="project.properties.build" />
<include buildfile="project.deploy.build" />
+ <include buildfile="project.test.build" />
<include buildfile="project.database.build" />
<fileset id="app.lib.references.fileset" >
<include name="${app.src.dir}\**\*.cs"/>
<exclude name="${app.src.dir}\**\AssemblyInfo.cs" />
</fileset>
-
- <fileset id="test.lib.references.fileset">
- <include name="${build.temp.dir}\${app.lib}" />
- <include name="${build.tools.dir}\mbunit\bin\MBUnit.Framework.dll" />
- <include name="${build.tools.dir}\rhino.mocks\bin\Rhino.Mocks.dll" />
- <include name="${build.lib.dir}\log4net\bin\log4net.dll" />
- <include name="${build.lib.dir}\castle\bin\*.dll" />
- </fileset>
<target name="clean">
<exec
program="taskkill.exe"
- commandline="/f /im notepad.exe"
- failonerror="false" />
+ commandline="/f /im notepad.exe /fi &quot;STATUS eq RUNNING&quot;" />
<delete dir="${build.temp.dir}" />
<delete dir="${build.deploy.dir}" />
<delete dir="${log.dir}" />
@@ -54,62 +46,9 @@
<csc output="${compile.dir}\${app.lib}" target="library" debug="${debug}">
<sources refid="app.lib.references.fileset" />
<references>
- <include name="${build.lib.dir}\log4net\bin\log4net.dll" />
- <include name="${build.lib.dir}\castle\bin\*.dll" />
+ <include name="${build.lib.dir}\**\*.dll" />
</references>
</csc>
</target>
- <target name="test.compile" >
- <property name="compile.dir" value="${build.temp.dir}" />
-
- <call target="compile"/>
- <csc output="${compile.dir}\${test.lib}" target="library" debug="${debug}">
- <sources>
- <include name="${test.src.dir}\**\*.cs" />
- </sources>
- <references refid="test.lib.references.fileset" />
- </csc>
- </target>
-
- <target name="test.setup" depends="test.compile">
- <property name="target" value="${log4net.config}"/>
- <call target="expand.template.file"/>
-
- <property name="target" value="${app.config}"/>
- <call target="expand.template.file"/>
-
- <property name="target" value="${windsor.config}"/>
- <call target="expand.template.file"/>
-
- <copy todir="${build.temp.dir}" flatten="true">
- <fileset>
- <include name="${build.tools.dir}\mbunit\bin\**.dll" />
- <include name="${build.tools.dir}\rhino.mocks\bin\Rhino.Mocks.dll" />
- <include name="${build.lib.dir}\log4Net\bin\*.dll" />
- <include name="${build.lib.dir}\castle\bin\*.dll" />
- <include name="${log4net.config}" />
- <include name="${windsor.config}" />
- </fileset>
- </copy>
-
- <copy file="${app.config}" tofile="${build.temp.dir}\${test.lib}.config" />
- </target>
-
- <target name="test" depends="test.setup">
- <exec
- program="${path.xunit.console}"
- commandline="${build.temp.dir}\${test.lib} ${xunit.console.args}"
- workingdir="${build.temp.dir}"
- />
- </target>
-
- <target name="test.html" depends="test.setup">
- <exec
- program="${path.xunit.console}"
- commandline="${build.temp.dir}\${test.lib} ${xunit.console.args.html}"
- workingdir="${build.temp.dir}"
- />
- </target>
-
</project> \ No newline at end of file