blob: 7516a9a299ae16371c0d9b4410fc082800b968ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<project name="">
<target name="web.clean">
<delete dir="${build.deploy.dir}" />
</target>
<target name="web.init" depends="web.clean">
<mkdir dir="${build.deploy.dir}\source\bin" />
<mkdir dir="${build.deploy.dir}\app" />
</target>
<target name="deploy.compile">
<property name="compile.dir" value="${build.temp.dir}" />
<call target="compile"/>
</target>
<target name="prep.dist.web" depends="web.init">
<property name="target" value="${log4net.config}"/>
<call target="expand.template.file"/>
<property name="path.to.runtime.log4net.config" value="${build.deploy.dir}\app\log4net.config.xml" />
<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.deploy.dir}\source\bin" flatten="true">
<fileset>
<include name="${build.temp.dir}\${app.lib}" />
<include name="${build.lib.dir}\log4net\bin\log4net.dll" />
<include name="${build.lib.dir}\castle\bin\*.dll" />
</fileset>
</copy>
<copy todir="${build.deploy.dir}\source" flatten="false">
<fileset basedir="${app.src.web.ui.dir}">
<include name="**\*.aspx" />
<include name="**\*.cs" />
<include name="**\*.png" />
<include name="**\*.jpg" />
<include name="**\*.css" />
<include name="**\*.Master" />
<include name="**\*.asax" />
<include name="${log4net.config}" />
<include name="${windsor.config}" />
<exclude name="Properties\**\*.*" />
</fileset>
</copy>
<copy todir="${build.deploy.dir}\source\services" flatten="true">
<fileset basedir="${app.src.dir}\Marina\Web\Services">
<include name="**\*.asmx" />
</fileset>
</copy>
<copy file="${app.config}" tofile="${build.deploy.dir}\source\web.config" />
</target>
<target name="dist.web" depends="deploy.compile, prep.dist.web">
<exec program="aspnet_compiler.exe"
basedir="${framework.dir}"
workingdir="${build.deploy.dir}\source"
commandline="-v /${virtual.directory.name} -p ${build.deploy.dir}\source ${build.deploy.dir}\app"
verbose="true" />
</target>
<target name="run" depends="dist.web">
<exec program="${browser.path}" commandline="${run.url}" />
<call target="kill.aspnet" />
</target>
<target name="kill.aspnet">
<exec program="taskkill.exe"
basedir="${environment::get-folder-path('System')}"
commandline="/F /IM aspnet_wp.exe"/>
</target>
</project>
|