1 <?xml version=
"1.0" encoding='iso-
8859-
1'
?>
2 <project name=
"castle-service-security" default=
"build">
4 <property name=
"base.dir" value=
"${path::get-full-path( project::get-base-directory() )}" />
5 <property name=
"bin.dir" value=
"${base.dir}/bin" />
7 <include buildfile=
"../../common.xml" />
9 <property name=
"name" value=
"Castle.Services.Security" />
10 <property name=
"test.name" value=
"${name}.Tests" />
12 <property name=
"assembly.name" value=
"${name}.dll" />
13 <property name=
"test.assembly.name" value=
"${test.name}.dll" />
15 <property name=
"src.dir" value=
"${base.dir}/${name}" />
16 <property name=
"test.src.dir" value=
"${base.dir}/${test.name}" />
18 <property name=
"version" value=
"beta-1" />
21 <exec program=
"${caspol.file}" failonerror=
"false" verbose=
"true" workingdir=
"${base.dir}" unless=
"${skipcaspol}">
22 <arg value=
"-quiet" />
23 <arg value=
"-machine" />
24 <arg value=
"-rempset" />
25 <arg value=
"CastlePermissionSet" />
27 <exec program=
"${gacutil.file}" failonerror=
"false" verbose=
"true" workingdir=
"${bin.dir}" unless=
"${skipcaspol}">
29 <arg value=
"${name}" />
32 <fileset basedir=
"${bin.dir}">
33 <include name=
"*.dll" />
36 <mkdir dir=
"${bin.dir}" />
37 <mkdir dir=
"../bin" />
40 <target name=
"init" depends=
"clean">
43 <target name=
"build" depends=
"init,install,tests.run,copy" />
46 <copy file=
"${bin.dir}/${assembly.name}" todir=
"../bin" />
47 <copy file=
"${bin.dir}/${name}.xml" todir=
"../bin" />
48 <copy file=
"${bin.dir}/${name}.pdb" todir=
"../bin" if=
"${debug}" />
51 <target name=
"install" depends=
"compile">
52 <exec program=
"${gacutil.file}" failonerror=
"true" verbose=
"true" workingdir=
"${bin.dir}" unless=
"${skipcaspol}">
54 <arg value=
"${assembly.name}" />
56 <exec program=
"${caspol.file}" failonerror=
"true" verbose=
"true" workingdir=
"${base.dir}" unless=
"${skipcaspol}">
57 <arg value=
"-quiet" />
58 <arg value=
"-machine" />
59 <arg value=
"-addpset" />
60 <arg value=
"castlepermissionset.xml" />
64 <target name=
"compile" depends=
"init">
69 optimize=
"${optimize}"
70 output=
"${bin.dir}/${assembly.name}"
71 doc=
"${bin.dir}/${name}.xml">
74 <warning number=
"1591" />
75 <warning number=
"1572" />
78 <sources basedir=
"${src.dir}" defaultexcludes=
"true">
79 <include name=
"**/*.cs" />
83 <include name=
"${bin.dir}/*.dll" />
88 <target name=
"tests.compile" depends=
"compile">
92 output=
"${bin.dir}/${test.assembly.name}">
94 <sources basedir=
"${test.src.dir}" defaultexcludes=
"true">
95 <include name=
"**/*.cs" />
99 <include name=
"${nunit.framework.dll}" />
100 <include name=
"${bin.dir}/*.dll" />
105 <target name=
"tests.run" depends=
"tests.compile">
107 <formatter type=
"${nunit.formatter}" />
108 <test assemblyname=
"${bin.dir}/${test.assembly.name}" />
113 <ndoc failonerror=
"true">
114 <assemblies basedir=
"${bin.dir}">
115 <include name=
"${assembly.name}" />
118 <documenter name=
"MSDN">
119 <property name=
"OutputTarget" value=
"HTMLHelp" />
120 <property name=
"Preliminary" value=
"true" />
121 <property name=
"CleanIntermediates" value=
"true" />
122 <property name=
"SdkLinksOnWeb" value=
"true" />
123 <property name=
"AutoPropertyBackerSummaries" value=
"true" />
124 <property name=
"AutoDocumentConstructors" value=
"true" />
125 <property name=
"OutputDirectory" value=
"${doc.dir}" />
126 <property name=
"HtmlHelpName" value=
"${name}" />
127 <property name=
"IncludeFavorites" value=
"False" />
128 <property name=
"Title" value=
"Castle Common Services - ${name}" />
129 <property name=
"SplitTOCs" value=
"False" />
130 <property name=
"DefaulTOC" value=
"Windsor" />
131 <property name=
"ShowVisualBasic" value=
"True" />
132 <property name=
"ShowMissingSummaries" value=
"False" />
133 <property name=
"ShowMissingRemarks" value=
"False" />
134 <property name=
"ShowMissingParams" value=
"False" />
135 <property name=
"ShowMissingReturns" value=
"False" />
136 <property name=
"ShowMissingValues" value=
"False" />
137 <property name=
"DocumentInternals" value=
"False" />
138 <property name=
"DocumentProtected" value=
"True" />
139 <property name=
"DocumentPrivates" value=
"False" />
140 <property name=
"DocumentEmptyNamespaces" value=
"False" />
141 <property name=
"IncludeAssemblyVersion" value=
"True" />
142 <property name=
"CopyrightText" value=
"Copyright 2004,2005 - Castle Project (original author or authors)" />
143 <property name=
"CopyrightHref" value=
"http://www.castleproject.org" />
149 <target name=
"dist" depends=
"docs">
150 <zip zipfile=
"${name}.src.zip">
151 <fileset basedir=
"${base.dir}">
152 <include name=
"License.txt" />
153 <include name=
"Readme.txt" />
154 <include name=
"Changes.txt" />
155 <include name=
"*.build" />
156 <include name=
"*.sln" />
157 <include name=
"${src.dir}/**/*.*" />
158 <include name=
"${test.src.dir}/**/*.*" />
159 <include name=
"${library.dir}/**/*.*" />
161 <exclude name=
"**/Debug/*" />
162 <exclude name=
"**/obj/*" />
163 <exclude name=
"**/*.user" />
164 <exclude name=
"**/*.suo" />
167 <zip zipfile=
"${name}.${version}.zip">
168 <fileset basedir=
"${base.dir}">
169 <include name=
"${bin.dir}/${assembly.name}" />
170 <include name=
"${library.dir}/**/*.*" />
171 <include name=
"License.txt" />
172 <include name=
"Readme.txt" />
173 <include name=
"Changes.txt" />
174 <include name=
"${name}.src.zip" />
175 <include name=
"${doc.dir}/${name}.chm" />
178 <delete file=
"${name}.src.zip" />