main
 1<?xml version="1.0" encoding="utf-8" ?>
 2<project name="project.deployment">
 3	<property name="assembly.config" value="${build.config.dir}\AssemblyInfo.cs" />
 4
 5	<property name="log4net.config" value="${build.config.dir}\log4net.config.xml" />
 6
 7	<target name="copy.app.dependencies">
 8		<copy todir="${build.compile.dir}" flatten="true">
 9			<fileset basedir="${build.lib.dir}\app">
10				<include name="\**\*.dll" />
11			</fileset>
12		</copy>
13		<copy todir="${build.compile.dir}" flatten="false">
14			<fileset basedir="${build.resources.dir}">
15				<include name="\**\*.*" />
16			</fileset>
17		</copy>
18		<property name="target" value="${log4net.config}" />
19		<call target="expand.template.file" />
20		<copy file="${log4net.config}" tofile="${build.compile.dir}\log4net.config.xml" />
21	</target>
22
23	<target name="create.licenses" depends="clean">
24		<copy todir="${build.compile.dir}" flatten="true">
25			<fileset basedir="${build.lib.dir}\app">
26				<include name="\**\*.dll" />
27				<include name="${build.lib.dir}\app\licenses.licx" />
28			</fileset>
29		</copy>
30		<exec 
31			basedir="${build.compile.dir}"
32			workingdir="${build.compile.dir}"
33			program="${dot.net.sdk.dir}\lc.exe"
34			commandline="/target:${app.output} /complist:licenses.licx /i:activereports3.dll /i:componentfactory.krypton.navigator.dll /i:componentfactory.krypton.ribbon.dll /i:componentfactory.krypton.toolkit.dll /i:componentfactory.krypton.workspace.dll /i:logicnp.fileview.dll /i:logicnp.folderview.dll /i:logicnp.shcombobox.dll /i:logicnp.shellobjects.dll /nologo /outdir:${build.lib.dir}\app"
35		/>
36	</target>     
37	
38	<!--<target name="deploy" depends="create.licenses">-->
39	<target name="deploy">
40		<property name="target" value="${assembly.config}" />
41		<call target="expand.template.file" />
42
43		<call target="app.compile" />
44		<call target="copy.app.dependencies" />		
45	</target>
46	
47	<target name="run" depends="deploy">
48		<exec program="${build.compile.dir}\${app.output}" commandline="" />
49	</target>
50	
51</project>