Fixing MR-340, if ?Errors doesn't work correctly.
[castle.git] / default.build
blob8efcc4ea05d8c34320c4b2cd61def5b8dea3f650
1 <?xml version="1.0" encoding='iso-8859-1' ?>
2 <project
3 name="Castle"
4 default="build"
5 xmlns="http://nant.sf.net/release/0.85/nant.xsd"
8 <property name="root.dir" value="." />
9 <include buildfile="${root.dir}/common.xml" />
11 <call target="common.find-svninfo" />
13 <fileset id="buildfiles.all">
14 <!-- Files have to be in dependency order -->
15 <include name="Core/core.build" />
16 <include name="Services/services.build" />
17 <include name="Tools/Tools.build" />
18 <include name="InversionOfControl/InversionOfControl.build" />
19 <include name="Components/components.build" />
20 <include name="ActiveRecord/activerecord.build" />
21 <include name="MonoRail/monorail.build" />
22 <!--
23 <include name="AspectSharp/aspectsharp.build" />
24 -->
25 <include name="Facilities/facilities.build" />
26 </fileset>
28 <target name="build"
29 depends="init copy-referenced-assemblies"
30 description="Builds Castle in the current configuration">
32 <nant target="build">
33 <buildfiles refid="buildfiles.all" />
34 </nant>
36 </target>
38 <target name="rebuild"
39 depends="init recreate-build-directory build"
40 description="Rebuilds Castle in the current configuration" />
42 <target name="installer" depends="init releaseDocs createreleasenotes zip-source zip-samples">
43 <nant buildfile="Setup/Setup.build" />
44 </target>
46 <target name="init" depends="common.init">
47 <mkdir dir="${build.dir}" />
48 <mkdir dir="${testresults.dir}" />
50 <call target="common.find-svninfo" />
51 <call target="common.find-nunit" />
52 </target>
54 <target name="clean" description="Deletes current build artifacts" depends="common.init">
55 <delete dir="${build.dir}" failonerror="false" />
56 <delete>
57 <fileset basedir="${build.base.dir}">
58 <include name="*.*" />
59 </fileset>
60 </delete>
61 </target>
63 <target name="clean-vs" description="Delete Visual Studio artifacts" depends="common.init">
64 <!-- NB - this target will fail if you have a solution open in Visual Studio -->
65 <echo message="Gathering files for removal..." />
66 <foreach item="File" property="filename">
67 <in>
68 <items basedir=".">
69 <include name="**/*.suo" />
70 <include name="*/*.csproj.user" />
71 </items>
72 </in>
73 <do>
74 <delete file="${filename}" />
75 </do>
76 </foreach>
77 <echo message="Gathering folders for removal..." />
78 <foreach item="Folder" property="foldername">
79 <in>
80 <items basedir=".">
81 <include name="**/obj" />
82 <include name="**/_ReSharper*" />
83 </items>
84 </in>
85 <do>
86 <delete dir="${foldername}" failonerror="false" />
87 </do>
88 </foreach>
89 </target>
91 <target name="cleanall" description="Deletes all build artifacts" depends="common.init">
92 <echo message="Deleting all builds from all configurations" />
93 <delete dir="${build.base.dir}" failonerror="false" />
94 <call target="clean-vs" />
95 </target>
97 <target name="recreate-build-directory">
98 <echo message="Current Directory is ${project::get-base-directory()}" />
99 <echo message="Build Directory is ${build.dir}" />
101 <!-- Prepare build directory -->
102 <delete dir="${build.dir}" failonerror="false" />
103 <mkdir dir="${build.dir}" />
104 <mkdir dir="${testresults.dir}" />
105 <call target="copy-referenced-assemblies" />
106 <property name="build.rebuild" value="true" />
107 </target>
109 <target name="copy-referenced-assemblies">
110 <!-- Copy framework-neutral libraries -->
111 <copy todir="${build.dir}" >
112 <fileset basedir="${lib.dir}">
113 <include name="*.dll" />
114 <include name="*.xml" />
115 <include name="*.license.txt" />
116 </fileset>
117 </copy>
119 <!-- Copy family-specific libraries installed on the system-->
120 <copy file="${path::combine(nant::get-base-directory(), 'NAnt.Core.dll')}" todir="${lib.family.dir}" />
122 <!-- Copy family-specific libraries -->
123 <!--
124 The build of log4net works just fine for all versions of .NET.
125 When they do get framework specific extensions then we
126 can just move them to the framework specific section
128 <copy todir="${build.dir}">
129 <fileset basedir="${lib.family.dir}">
130 <include name="*.dll" />
131 <include name="*.xml" />
132 <include name="*.license.txt" />
133 </fileset>
134 </copy>
136 <!-- Copy framework-specific libraries -->
137 <copy todir="${build.dir}">
138 <fileset basedir="${lib.framework.dir}">
139 <include name="*.dll" />
140 <include name="*.xml" />
141 <include name="*.license.txt" />
142 </fileset>
143 </copy>
144 </target>
146 <target name="generate-assemblyinfo"
147 depends="init"
148 description="Generate AssemblyInfo files">
150 <property name="visual-studio" value="true" />
151 <nant target="generate-assemblyinfo">
152 <buildfiles refid="buildfiles.all" />
153 </nant>
155 </target>
157 <target name="build-all-frameworks" depends="init">
158 <!-- Save the current framework -->
159 <property name="current.framework.saved" value="${nant.settings.currentframework}" />
161 <!-- Execute build for each framework -->
162 <foreach item="String" delim=" " property="framework" in="net-1.1 net-2.0">
163 <call target="set-${framework}-framework-configuration" />
164 <call target="build" />
165 </foreach>
167 <!-- Reset the current framework to the saved value -->
168 <call target="set-${current.framework.saved}-framework-configuration" />
169 </target>
171 <!-- Packaging related tasks -->
173 <target name="package" depends="zip-build"
174 description="Creates Zip files for Release">
176 <echo message="Created a '${project.config}' package in file://${build.zip.fullpath}" />
178 <delete file="${build.base.dir}/castle-sourcecode.zip" failonerror="false" />
179 <delete file="${build.dir}/test-results.zip" failonerror="false" />
180 <delete file="${build.dir}/external-dependencies.zip" failonerror="false" />
182 </target>
184 <target name="createreleasenotes" depends="init">
185 <mkdir dir="${releasenotes.dir}" />
186 <delete dir="${releasenotes.dir}" />
188 <echo message="Top level projects Release notes" />
190 <copy file="ActiveRecord/Changes.txt" tofile="${releasenotes.dir}/ActiveRecord Release Notes.txt" />
191 <copy file="ActiveRecord/License.txt" tofile="${releasenotes.dir}/License.txt" />
192 <copy file="MonoRail/Changes.txt" tofile="${releasenotes.dir}/MonoRail Release Notes.txt" />
193 <copy file="InversionOfControl/Changes.txt" tofile="${releasenotes.dir}/InversionOfControl Release Notes.txt" />
194 <!--
195 <copy file="AspectSharp/Changes.txt" tofile="${releasenotes.dir}/AspectSharp Release Notes.txt" />
197 <copy file="Tools/DynamicProxy/Changes.txt" tofile="${releasenotes.dir}/DynamicProxy Release Notes.txt" />
198 <copy file="Core/Changes.txt" tofile="${releasenotes.dir}/Core Release Notes.txt" />
200 <echo message="Components Release notes" />
202 <mkdir dir="${releasenotes.dir}/Components" />
203 <property name="target.folder" value="Components" />
204 <call target="copy-scope-releasednotes" />
206 <echo message="Facilities Release notes" />
208 <mkdir dir="${releasenotes.dir}/Facilities" />
209 <property name="target.folder" value="Facilities" />
210 <call target="copy-scope-releasednotes" />
212 <echo message="Services Release notes" />
214 <mkdir dir="${releasenotes.dir}/Services" />
215 <property name="target.folder" value="Services" />
216 <call target="copy-scope-releasednotes" />
218 </target>
220 <target name="copy-scope-releasednotes">
221 <foreach item="File" property="changeLogFile">
222 <in>
223 <items>
224 <include name="${target.folder}/**/Changes.txt"/>
225 </items>
226 </in>
227 <do>
228 <echo message="changeLogFile ${changeLogFile}" />
230 <property name="folder" value="${directory::get-parent-directory(changeLogFile)}" />
232 <if test="${platform::is-win32()}">
233 <property name="lastsepindex" value="${string::last-index-of(folder, '\') + 1}" />
234 </if>
236 <if test="${platform::is-unix()}">
237 <property name="lastsepindex" value="${string::last-index-of(folder, '/') + 1}" />
238 </if>
240 <property name="length" value="${string::get-length(folder) - int::parse(lastsepindex)}" />
242 <property name="project.name" value="${string::substring(folder, lastsepindex, length)}" />
244 <copy file="${changeLogFile}" tofile="${releasenotes.dir}/${target.folder}/${project.name} Release Notes.txt" />
245 </do>
246 </foreach>
247 </target>
249 <!-- depends="build" -->
250 <target name="zip-build" depends="build">
251 <property name="build.zip.dir" value="${build.dir}" overwrite="false" />
252 <property name="build.zip.file" value="Castle-${framework::get-target-framework()}-${project.config}-${datetime::get-year(datetime::now())}-${datetime::get-month(datetime::now())}-${datetime::get-day(datetime::now())} (r${svn.revision}).zip" overwrite="false" dynamic="true" />
253 <property name="build.zip.fullpath" value="${build.zip.dir}/${build.zip.file}" readonly="true" />
255 <delete>
256 <fileset basedir="${root.dir}">
257 <include name="*.zip" />
258 <include name="${build.dir}/external-dependencies.zip" />
259 </fileset>
260 </delete>
262 <!-- Prepare release note files -->
263 <call target="createreleasenotes" />
265 <!-- Include a zip file with all source code -->
266 <call target="zip-source" if="${build.debug}" />
268 <!-- Include a zip file with all dependencies -->
269 <call target="zip-dependencies" />
271 <!-- Create the master zip file with all files included -->
272 <zip zipfile="${build.zip.fullpath}">
273 <fileset basedir="${build.dir}" prefix="bin" >
274 <include name="**/Castle*.*" />
275 <!--
276 <include name="AspectSharp*.*" />
278 <include name="external-dependencies.zip" />
279 <exclude name="*Tests.*" />
280 <exclude name="test-results/**" />
281 </fileset>
282 <fileset basedir="${root.dir}">
283 <include name="ASL - Apache Software Foundation License.txt" />
284 <include name="Committers.txt" />
285 <include name="Castle main limitations.txt" />
286 </fileset>
287 <fileset basedir="${build.base.dir}" >
288 <include name="castle-sourcecode.zip" />
289 </fileset>
290 <fileset basedir="${releasenotes.dir}" prefix="ReleaseNotes" >
291 <include name="**/*.txt" />
292 </fileset>
293 </zip>
294 </target>
296 <target name="zip-dependencies" >
297 <zip zipfile="${build.dir}/external-dependencies.zip">
298 <fileset basedir="${build.dir}">
299 <include name="*.*" />
300 <exclude name="**/Castle*" />
301 <exclude name="**/AspectSharp*" />
302 <exclude name="**/db4o.dll" />
303 <exclude name="**/EULA.rtf" />
304 <exclude name="**/*.zip" />
305 </fileset>
306 </zip>
307 </target>
309 <target name="zip-doc">
310 <zip zipfile="${root.dir}/Castle-api-doc.zip">
311 <fileset basedir="${root.dir}/docs">
312 <include name="Castle.chm" />
313 </fileset>
314 </zip>
315 </target>
317 <target name="zip-samples-for-website" depends="init">
318 <delete dir="${root.dir}/samplesforwebsite/" failonerror="false" />
319 <mkdir dir="${root.dir}/samplesforwebsite/" />
321 <zip zipfile="${root.dir}/samplesforwebsite/InitializingAndConfiguring.zip">
322 <fileset basedir="${root.dir}/Samples/ActiveRecord/BlogSample">
323 <include name="**/*.build" />
324 <include name="**/*.sln" />
325 <include name="**/*.cs" />
326 <include name="**/*.ico" />
327 <include name="**/*.csproj" />
328 <include name="**/*.xml" />
329 <include name="**/*.config" />
330 <include name="**/*.lang" />
331 <include name="**/*.txt" />
332 <include name="**/*.inc" />
333 <include name="**/*.vm" />
334 <include name="*.snk" />
335 <exclude name="**/bin/*" />
336 <exclude name="**/bin/Debug/*" />
337 <exclude name="**/bin/Release/*" />
338 <exclude name="**/obj/*" />
339 <exclude name="**.user" />
340 <exclude name="**/_Resharper.*/*" />
341 </fileset>
342 </zip>
343 <zip zipfile="${root.dir}/samplesforwebsite/TableHierarchy.zip">
344 <fileset basedir="${root.dir}/Samples/ActiveRecord/TableHierarchySample">
345 <include name="**/*.build" />
346 <include name="**/*.sln" />
347 <include name="**/*.cs" />
348 <include name="**/*.ico" />
349 <include name="**/*.csproj" />
350 <include name="**/*.xml" />
351 <include name="**/*.config" />
352 <include name="**/*.lang" />
353 <include name="**/*.txt" />
354 <include name="**/*.inc" />
355 <include name="**/*.vm" />
356 <include name="*.snk" />
357 <exclude name="**/bin/*" />
358 <exclude name="**/bin/Debug/*" />
359 <exclude name="**/bin/Release/*" />
360 <exclude name="**/obj/*" />
361 <exclude name="**.user" />
362 <exclude name="**/_Resharper.*/*" />
363 </fileset>
364 </zip>
365 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.WizardSample.zip">
366 <fileset basedir="${root.dir}/Samples/MonoRail/WizardSample">
367 <include name="**/*.build" />
368 <include name="**/*.sln" />
369 <include name="**/*.cs" />
370 <include name="**/*.ico" />
371 <include name="**/*.csproj" />
372 <include name="**/*.xml" />
373 <include name="**/*.config" />
374 <include name="**/*.lang" />
375 <include name="**/*.txt" />
376 <include name="**/*.inc" />
377 <include name="**/*.vm" />
378 <include name="**/*.resx" />
379 <include name="**/*.aspx" />
380 <include name="**/*.asax" />
381 <include name="*.snk" />
382 <exclude name="**/bin/*" />
383 <exclude name="**/bin/Debug/*" />
384 <exclude name="**/bin/Release/*" />
385 <exclude name="**/obj/*" />
386 <exclude name="**.user" />
387 <exclude name="**/_Resharper.*/*" />
388 </fileset>
389 </zip>
390 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.SimpleBindingSample.zip">
391 <fileset basedir="${root.dir}/Samples/MonoRail/SimpleBindingSample">
392 <include name="**/*.build" />
393 <include name="**/*.sln" />
394 <include name="**/*.cs" />
395 <include name="**/*.ico" />
396 <include name="**/*.csproj" />
397 <include name="**/*.xml" />
398 <include name="**/*.config" />
399 <include name="**/*.lang" />
400 <include name="**/*.txt" />
401 <include name="**/*.inc" />
402 <include name="**/*.vm" />
403 <include name="**/*.resx" />
404 <include name="**/*.aspx" />
405 <include name="**/*.asax" />
406 <include name="*.snk" />
407 <exclude name="**/bin/*" />
408 <exclude name="**/bin/Debug/*" />
409 <exclude name="**/bin/Release/*" />
410 <exclude name="**/obj/*" />
411 <exclude name="**.user" />
412 <exclude name="**/_Resharper.*/*" />
413 </fileset>
414 </zip>
415 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DataBindSample.zip">
416 <fileset basedir="${root.dir}/Samples/MonoRail/DataBindSample">
417 <include name="**/*.build" />
418 <include name="**/*.sln" />
419 <include name="**/*.cs" />
420 <include name="**/*.ico" />
421 <include name="**/*.csproj" />
422 <include name="**/*.xml" />
423 <include name="**/*.config" />
424 <include name="**/*.lang" />
425 <include name="**/*.txt" />
426 <include name="**/*.inc" />
427 <include name="**/*.vm" />
428 <include name="**/*.resx" />
429 <include name="**/*.aspx" />
430 <include name="**/*.asax" />
431 <include name="*.snk" />
432 <exclude name="**/bin/*" />
433 <exclude name="**/bin/Debug/*" />
434 <exclude name="**/bin/Release/*" />
435 <exclude name="**/obj/*" />
436 <exclude name="**.user" />
437 <exclude name="**/_Resharper.*/*" />
438 </fileset>
439 </zip>
440 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.SendingEmailSample.zip">
441 <fileset basedir="${root.dir}/Samples/MonoRail/SendingEmailSample">
442 <include name="**/*.build" />
443 <include name="**/*.sln" />
444 <include name="**/*.cs" />
445 <include name="**/*.ico" />
446 <include name="**/*.csproj" />
447 <include name="**/*.xml" />
448 <include name="**/*.config" />
449 <include name="**/*.lang" />
450 <include name="**/*.txt" />
451 <include name="**/*.inc" />
452 <include name="**/*.vm" />
453 <include name="**/*.resx" />
454 <include name="**/*.aspx" />
455 <include name="**/*.asax" />
456 <include name="*.snk" />
457 <exclude name="**/bin/*" />
458 <exclude name="**/bin/Debug/*" />
459 <exclude name="**/bin/Release/*" />
460 <exclude name="**/obj/*" />
461 <exclude name="**.user" />
462 <exclude name="**/_Resharper.*/*" />
463 </fileset>
464 </zip>
465 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.ViewComponentSample.zip">
466 <fileset basedir="${root.dir}/Samples/MonoRail/ViewComponentSample">
467 <include name="**/*.build" />
468 <include name="**/*.sln" />
469 <include name="**/*.cs" />
470 <include name="**/*.ico" />
471 <include name="**/*.csproj" />
472 <include name="**/*.xml" />
473 <include name="**/*.config" />
474 <include name="**/*.lang" />
475 <include name="**/*.txt" />
476 <include name="**/*.inc" />
477 <include name="**/*.vm" />
478 <include name="**/*.resx" />
479 <include name="**/*.aspx" />
480 <include name="**/*.asax" />
481 <include name="*.snk" />
482 <exclude name="**/bin/*" />
483 <exclude name="**/bin/Debug/*" />
484 <exclude name="**/bin/Release/*" />
485 <exclude name="**/obj/*" />
486 <exclude name="**.user" />
487 <exclude name="**/_Resharper.*/*" />
488 </fileset>
489 </zip>
490 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.AuthenticationUsingFilters.zip">
491 <fileset basedir="${root.dir}/Samples/MonoRail/AuthenticationUsingFilters">
492 <include name="**/*.build" />
493 <include name="**/*.sln" />
494 <include name="**/*.cs" />
495 <include name="**/*.ico" />
496 <include name="**/*.csproj" />
497 <include name="**/*.xml" />
498 <include name="**/*.config" />
499 <include name="**/*.lang" />
500 <include name="**/*.txt" />
501 <include name="**/*.inc" />
502 <include name="**/*.vm" />
503 <include name="**/*.resx" />
504 <include name="**/*.aspx" />
505 <include name="**/*.asax" />
506 <include name="*.snk" />
507 <exclude name="**/bin/*" />
508 <exclude name="**/bin/Debug/*" />
509 <exclude name="**/bin/Release/*" />
510 <exclude name="**/obj/*" />
511 <exclude name="**.user" />
512 <exclude name="**/_Resharper.*/*" />
513 </fileset>
514 </zip>
515 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.AuthenticationUsingForms.zip">
516 <fileset basedir="${root.dir}/Samples/MonoRail/AuthenticationUsingForms">
517 <include name="**/*.build" />
518 <include name="**/*.sln" />
519 <include name="**/*.cs" />
520 <include name="**/*.ico" />
521 <include name="**/*.csproj" />
522 <include name="**/*.xml" />
523 <include name="**/*.config" />
524 <include name="**/*.lang" />
525 <include name="**/*.txt" />
526 <include name="**/*.inc" />
527 <include name="**/*.vm" />
528 <include name="**/*.resx" />
529 <include name="**/*.aspx" />
530 <include name="**/*.asax" />
531 <include name="*.snk" />
532 <exclude name="**/bin/*" />
533 <exclude name="**/bin/Debug/*" />
534 <exclude name="**/bin/Release/*" />
535 <exclude name="**/obj/*" />
536 <exclude name="**.user" />
537 <exclude name="**/_Resharper.*/*" />
538 </fileset>
539 </zip>
540 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.LocalizationSample.zip">
541 <fileset basedir="${root.dir}/Samples/MonoRail/LocalizationSample">
542 <include name="**/*.build" />
543 <include name="**/*.sln" />
544 <include name="**/*.cs" />
545 <include name="**/*.ico" />
546 <include name="**/*.csproj" />
547 <include name="**/*.xml" />
548 <include name="**/*.config" />
549 <include name="**/*.lang" />
550 <include name="**/*.txt" />
551 <include name="**/*.inc" />
552 <include name="**/*.vm" />
553 <include name="**/*.resx" />
554 <include name="**/*.aspx" />
555 <include name="**/*.asax" />
556 <include name="*.snk" />
557 <exclude name="**/bin/*" />
558 <exclude name="**/bin/Debug/*" />
559 <exclude name="**/bin/Release/*" />
560 <exclude name="**/obj/*" />
561 <exclude name="**.user" />
562 <exclude name="**/_Resharper.*/*" />
563 </fileset>
564 </zip>
565 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.FormHelperSample.zip">
566 <fileset basedir="${root.dir}/Samples/MonoRail/FormHelperSample">
567 <include name="**/*.build" />
568 <include name="**/*.sln" />
569 <include name="**/*.cs" />
570 <include name="**/*.ico" />
571 <include name="**/*.csproj" />
572 <include name="**/*.xml" />
573 <include name="**/*.config" />
574 <include name="**/*.lang" />
575 <include name="**/*.txt" />
576 <include name="**/*.inc" />
577 <include name="**/*.vm" />
578 <include name="**/*.resx" />
579 <include name="**/*.aspx" />
580 <include name="**/*.asax" />
581 <include name="*.snk" />
582 <exclude name="**/bin/*" />
583 <exclude name="**/bin/Debug/*" />
584 <exclude name="**/bin/Release/*" />
585 <exclude name="**/obj/*" />
586 <exclude name="**.user" />
587 <exclude name="**/_Resharper.*/*" />
588 </fileset>
589 </zip>
590 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.GettingStartedSampleVS2005.zip">
591 <fileset basedir="${root.dir}/Samples/MonoRail/GettingStartedSampleVS2005">
592 <include name="**/*.build" />
593 <include name="**/*.sln" />
594 <include name="**/*.cs" />
595 <include name="**/*.ico" />
596 <include name="**/*.csproj" />
597 <include name="**/*.xml" />
598 <include name="**/*.config" />
599 <include name="**/*.lang" />
600 <include name="**/*.txt" />
601 <include name="**/*.inc" />
602 <include name="**/*.vm" />
603 <include name="**/*.resx" />
604 <include name="**/*.aspx" />
605 <include name="**/*.asax" />
606 <include name="*.snk" />
607 <exclude name="**/bin/*" />
608 <exclude name="**/bin/Debug/*" />
609 <exclude name="**/bin/Release/*" />
610 <exclude name="**/obj/*" />
611 <exclude name="**.user" />
612 <exclude name="**/_Resharper.*/*" />
613 </fileset>
614 </zip>
616 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DynActProvSample.zip">
617 <fileset basedir="${root.dir}/Samples/MonoRail/DynActProvSample">
618 <include name="**/*.build" />
619 <include name="**/*.sln" />
620 <include name="**/*.cs" />
621 <include name="**/*.ico" />
622 <include name="**/*.csproj" />
623 <include name="**/*.xml" />
624 <include name="**/*.config" />
625 <include name="**/*.lang" />
626 <include name="**/*.txt" />
627 <include name="**/*.inc" />
628 <include name="**/*.vm" />
629 <include name="**/*.resx" />
630 <include name="**/*.aspx" />
631 <include name="**/*.asax" />
632 <include name="*.snk" />
633 <exclude name="**/bin/*" />
634 <exclude name="**/bin/Debug/*" />
635 <exclude name="**/bin/Release/*" />
636 <exclude name="**/obj/*" />
637 <exclude name="**.user" />
638 <exclude name="**/_Resharper.*/*" />
639 </fileset>
640 </zip>
641 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DiggStylePagination.zip">
642 <fileset basedir="${root.dir}/Samples/MonoRail/DiggPaginationSample">
643 <include name="**/*.build" />
644 <include name="**/*.sln" />
645 <include name="**/*.cs" />
646 <include name="**/*.ico" />
647 <include name="**/*.csproj" />
648 <include name="**/*.xml" />
649 <include name="**/*.config" />
650 <include name="**/*.lang" />
651 <include name="**/*.txt" />
652 <include name="**/*.inc" />
653 <include name="**/*.vm" />
654 <include name="*.snk" />
655 <exclude name="**/bin/*" />
656 <exclude name="**/bin/Debug/*" />
657 <exclude name="**/bin/Release/*" />
658 <exclude name="**/obj/*" />
659 <exclude name="**.user" />
660 <exclude name="**/_Resharper.*/*" />
661 </fileset>
662 </zip>
663 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.JSGenExample.zip">
664 <fileset basedir="${root.dir}/Samples/MonoRail/JSGenExample">
665 <include name="**/*.build" />
666 <include name="**/*.sln" />
667 <include name="**/*.cs" />
668 <include name="**/*.ico" />
669 <include name="**/*.csproj" />
670 <include name="**/*.xml" />
671 <include name="**/*.config" />
672 <include name="**/*.lang" />
673 <include name="**/*.txt" />
674 <include name="**/*.inc" />
675 <include name="**/*.vm" />
676 <include name="*.snk" />
677 <exclude name="**/bin/*" />
678 <exclude name="**/bin/Debug/*" />
679 <exclude name="**/bin/Release/*" />
680 <exclude name="**/obj/*" />
681 <exclude name="**.user" />
682 <exclude name="**/_Resharper.*/*" />
683 </fileset>
684 </zip>
687 <zip zipfile="${root.dir}/samplesforwebsite/Windsor.TimeTracking.zip">
688 <fileset basedir="${root.dir}/Samples/InversionOfControl/TimeTracking">
689 <include name="**/*.build" />
690 <include name="**/*.sln" />
691 <include name="**/*.cs" />
692 <include name="**/*.ico" />
693 <include name="**/*.csproj" />
694 <include name="**/*.xml" />
695 <include name="**/*.config" />
696 <include name="**/*.lang" />
697 <include name="**/*.txt" />
698 <include name="**/*.inc" />
699 <include name="**/*.vm" />
700 <include name="**/*.resx" />
701 <include name="**/*.aspx" />
702 <include name="**/*.asax" />
703 <include name="*.snk" />
704 <exclude name="**/bin/*" />
705 <exclude name="**/bin/Debug/*" />
706 <exclude name="**/bin/Release/*" />
707 <exclude name="**/obj/*" />
708 <exclude name="**.user" />
709 <exclude name="**/_Resharper.*/*" />
710 </fileset>
711 </zip>
712 <zip zipfile="${root.dir}/samplesforwebsite/CustomTypeConverterSample.zip">
713 <fileset basedir="${root.dir}/Samples/InversionOfControl/CustomTypeConverterSample">
714 <include name="**/*.build" />
715 <include name="**/*.sln" />
716 <include name="**/*.cs" />
717 <include name="**/*.ico" />
718 <include name="**/*.csproj" />
719 <include name="**/*.xml" />
720 <include name="**/*.config" />
721 <include name="**/*.lang" />
722 <include name="**/*.txt" />
723 <include name="**/*.inc" />
724 <include name="**/*.vm" />
725 <include name="**/*.resx" />
726 <include name="**/*.aspx" />
727 <include name="**/*.asax" />
728 <include name="*.snk" />
729 <exclude name="**/bin/*" />
730 <exclude name="**/bin/Debug/*" />
731 <exclude name="**/bin/Release/*" />
732 <exclude name="**/obj/*" />
733 <exclude name="**.user" />
734 <exclude name="**/_Resharper.*/*" />
735 </fileset>
736 </zip>
737 <zip zipfile="${root.dir}/samplesforwebsite/FacilitySample2.zip">
738 <fileset basedir="${root.dir}/Samples/InversionOfControl/ExtendingSample2">
739 <include name="**/*.build" />
740 <include name="**/*.sln" />
741 <include name="**/*.cs" />
742 <include name="**/*.ico" />
743 <include name="**/*.csproj" />
744 <include name="**/*.xml" />
745 <include name="**/*.config" />
746 <include name="**/*.lang" />
747 <include name="**/*.txt" />
748 <include name="**/*.inc" />
749 <include name="**/*.vm" />
750 <include name="**/*.resx" />
751 <include name="**/*.aspx" />
752 <include name="**/*.asax" />
753 <include name="*.snk" />
754 <exclude name="**/bin/*" />
755 <exclude name="**/bin/Debug/*" />
756 <exclude name="**/bin/Release/*" />
757 <exclude name="**/obj/*" />
758 <exclude name="**.user" />
759 <exclude name="**/_Resharper.*/*" />
760 </fileset>
761 </zip>
762 <zip zipfile="${root.dir}/samplesforwebsite/GettingStartedPart1.zip">
763 <fileset basedir="${root.dir}/Samples/InversionOfControl/GettingStarted/GettingStartedPart1">
764 <include name="**/*.build" />
765 <include name="**/*.sln" />
766 <include name="**/*.cs" />
767 <include name="**/*.ico" />
768 <include name="**/*.csproj" />
769 <include name="**/*.xml" />
770 <include name="**/*.config" />
771 <include name="**/*.lang" />
772 <include name="**/*.txt" />
773 <include name="**/*.inc" />
774 <include name="**/*.resx" />
775 <include name="*.snk" />
776 <exclude name="**/bin/*" />
777 <exclude name="**/bin/Debug/*" />
778 <exclude name="**/bin/Release/*" />
779 <exclude name="**/obj/*" />
780 <exclude name="**.user" />
781 <exclude name="**/_Resharper.*/*" />
782 </fileset>
783 </zip>
785 <zip zipfile="${root.dir}/samplesforwebsite/KernelInOneEndPoint.Sample.zip">
786 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelInOneEndPoint">
787 <include name="**/*.build" />
788 <include name="**/*.sln" />
789 <include name="**/*.cs" />
790 <include name="**/*.ico" />
791 <include name="**/*.csproj" />
792 <include name="**/*.xml" />
793 <include name="**/*.config" />
794 <include name="**/*.txt" />
795 <include name="**/*.vm" />
796 <include name="**/*.resx" />
797 <include name="*.snk" />
798 <exclude name="**/bin/*" />
799 <exclude name="**/bin/Debug/*" />
800 <exclude name="**/bin/Release/*" />
801 <exclude name="**/obj/*" />
802 <exclude name="**.user" />
803 <exclude name="**/_Resharper.*/*" />
804 </fileset>
805 </zip>
806 <zip zipfile="${root.dir}/samplesforwebsite/KernelOnBothEndPoints.Sample.zip">
807 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelOnBothEndPoints">
808 <include name="**/*.build" />
809 <include name="**/*.sln" />
810 <include name="**/*.cs" />
811 <include name="**/*.ico" />
812 <include name="**/*.csproj" />
813 <include name="**/*.xml" />
814 <include name="**/*.config" />
815 <include name="**/*.txt" />
816 <include name="**/*.vm" />
817 <include name="**/*.resx" />
818 <include name="*.snk" />
819 <exclude name="**/bin/*" />
820 <exclude name="**/bin/Debug/*" />
821 <exclude name="**/bin/Release/*" />
822 <exclude name="**/obj/*" />
823 <exclude name="**.user" />
824 <exclude name="**/_Resharper.*/*" />
825 </fileset>
826 </zip>
827 <zip zipfile="${root.dir}/samplesforwebsite/ContainersConnected.Sample.zip">
828 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/ContainersConnected">
829 <include name="**/*.build" />
830 <include name="**/*.sln" />
831 <include name="**/*.cs" />
832 <include name="**/*.ico" />
833 <include name="**/*.csproj" />
834 <include name="**/*.xml" />
835 <include name="**/*.config" />
836 <include name="**/*.txt" />
837 <include name="**/*.vm" />
838 <include name="**/*.resx" />
839 <include name="*.snk" />
840 <exclude name="**/bin/*" />
841 <exclude name="**/bin/Debug/*" />
842 <exclude name="**/bin/Release/*" />
843 <exclude name="**/obj/*" />
844 <exclude name="**.user" />
845 <exclude name="**/_Resharper.*/*" />
846 </fileset>
847 </zip>
848 </target>
850 <target name="zip-samples">
851 <zip zipfile="${build.base.dir}/ActiveRecord-Samples.zip">
852 <fileset basedir="${root.dir}/Samples/ActiveRecord">
853 <include name="**/*.build" />
854 <include name="**/*.sln" />
855 <include name="**/*.cs" />
856 <include name="**/*.ico" />
857 <include name="**/*.csproj" />
858 <include name="**/*.xml" />
859 <include name="**/*.config" />
860 <include name="**/*.lang" />
861 <include name="**/*.txt" />
862 <include name="**/*.inc" />
863 <include name="**/*.vm" />
864 <include name="**/*.resx" />
865 <include name="**/*.aspx" />
866 <include name="**/*.asax" />
867 <include name="**/*.sql" />
868 <include name="*.snk" />
869 <exclude name="**/bin/*" />
870 <exclude name="**/bin/Debug/*" />
871 <exclude name="**/bin/Release/*" />
872 <exclude name="**/obj/*" />
873 <exclude name="**.user" />
874 <exclude name="**/_Resharper.*/*" />
875 </fileset>
876 </zip>
877 <zip zipfile="${build.base.dir}/Facilities-Samples.zip">
878 <fileset basedir="${root.dir}/Samples/Facilities">
879 <include name="**/*.build" />
880 <include name="**/*.sln" />
881 <include name="**/*.cs" />
882 <include name="**/*.ico" />
883 <include name="**/*.csproj" />
884 <include name="**/*.xml" />
885 <include name="**/*.config" />
886 <include name="**/*.lang" />
887 <include name="**/*.txt" />
888 <include name="**/*.inc" />
889 <include name="**/*.vm" />
890 <include name="*.snk" />
891 <exclude name="**/bin/*" />
892 <exclude name="**/bin/Debug/*" />
893 <exclude name="**/bin/Release/*" />
894 <exclude name="**/obj/*" />
895 <exclude name="**.user" />
896 <exclude name="**/_Resharper.*/*" />
897 </fileset>
898 </zip>
899 <zip zipfile="${build.base.dir}/InversionOfControl-Samples.zip">
900 <fileset basedir="${root.dir}/Samples/InversionOfControl">
901 <include name="**/*.build" />
902 <include name="**/*.sln" />
903 <include name="**/*.cs" />
904 <include name="**/*.ico" />
905 <include name="**/*.csproj" />
906 <include name="**/*.xml" />
907 <include name="**/*.config" />
908 <include name="**/*.lang" />
909 <include name="**/*.txt" />
910 <include name="**/*.inc" />
911 <include name="**/*.vm" />
912 <include name="*.snk" />
913 <exclude name="**/bin/*" />
914 <exclude name="**/bin/Debug/*" />
915 <exclude name="**/bin/Release/*" />
916 <exclude name="**/obj/*" />
917 <exclude name="**.user" />
918 <exclude name="**/_Resharper.*/*" />
919 </fileset>
920 </zip>
921 <zip zipfile="${build.base.dir}/MonoRail-Samples.zip">
922 <fileset basedir="${root.dir}/Samples/MonoRail">
923 <include name="**/*.build" />
924 <include name="**/*.sln" />
925 <include name="**/*.cs" />
926 <include name="**/*.css" />
927 <include name="**/*.gif" />
928 <include name="**/*.png" />
929 <include name="**/*.jpg" />
930 <include name="**/*.js" />
931 <include name="**/*.ico" />
932 <include name="**/*.csproj" />
933 <include name="**/*.xml" />
934 <include name="**/*.config" />
935 <include name="**/*.lang" />
936 <include name="**/*.txt" />
937 <include name="**/*.inc" />
938 <include name="**/*.vm" />
939 <include name="*.snk" />
940 <exclude name="**/bin/*" />
941 <exclude name="**/bin/Debug/*" />
942 <exclude name="**/bin/Release/*" />
943 <exclude name="**/obj/*" />
944 <exclude name="**.user" />
945 <exclude name="**/_Resharper.*/*" />
946 </fileset>
947 </zip>
948 <zip zipfile="${build.base.dir}/Castle-Samples.zip">
949 <fileset basedir="${root.dir}/Samples/Castle">
950 <include name="**/*.build" />
951 <include name="**/*.sln" />
952 <include name="**/*.cs" />
953 <include name="**/*.ico" />
954 <include name="**/*.csproj" />
955 <include name="**/*.xml" />
956 <include name="**/*.config" />
957 <include name="**/*.lang" />
958 <include name="**/*.txt" />
959 <include name="**/*.inc" />
960 <include name="**/*.vm" />
961 <include name="*.snk" />
962 <exclude name="**/bin/*" />
963 <exclude name="**/bin/Debug/*" />
964 <exclude name="**/bin/Release/*" />
965 <exclude name="**/obj/*" />
966 <exclude name="**.user" />
967 <exclude name="**/_Resharper.*/*" />
968 </fileset>
969 </zip>
970 </target>
972 <target name="zip-source">
973 <zip zipfile="${build.base.dir}/castle-sourcecode.zip">
974 <fileset basedir="${root.dir}">
975 <include name="**/*.build" />
976 <include name="**/*.sln" />
977 <include name="**/*.cs" />
978 <include name="**/*.cd" />
979 <include name="**/*.snk" />
980 <include name="**/*.ico" />
981 <include name="**/*.csproj" />
982 <include name="**/*.xml" />
983 <include name="**/*.config" />
984 <include name="**/*.lang" />
985 <include name="**/*.txt" />
986 <include name="**/*.inc" />
987 <include name="**/*.vm" />
988 <include name="**/*.njs" />
989 <include name="**/*.gif" />
990 <include name="**/*.resx" />
991 <include name="**/*.boo" />
992 <include name="**/*.booproj" />
993 <include name="**/*.brail" />
994 <include name="**/*.brailjs" />
995 <include name="**/*.prjx" />
996 <include name="**/*.cmbx" />
997 <include name="**/*.aspx" />
998 <include name="**/*.asax" />
999 <include name="**/*.svc" />
1000 <include name="**/*.htm" />
1001 <include name="**/*.html" />
1002 <include name="**/*.rb" />
1003 <include name="**/*.g" />
1004 <include name="**/*.resharper" />
1005 <include name="**/*.shfb" />
1006 <exclude name="**/obj/" />
1007 <exclude name="**/obj/**/*.*" />
1008 <exclude name="**/bin*/**/*.*" />
1009 <exclude name="**/temp/**/*.*" />
1010 <exclude name="**/*.user" />
1011 <exclude name="**/_ReSharper.*" />
1012 <exclude name="**/_ReSharper.*/**/*.*" />
1013 <exclude name="**/*.suo" />
1014 <exclude name="SharedLibs/**/*.*" />
1015 <exclude name="Samples/**/*.*" />
1016 <exclude name="Experiments/**/*.*" />
1017 <exclude name="build/**/*.*" />
1018 <exclude name="Rook/**/*.*" />
1019 <exclude name="docs/**/*.*" />
1020 <exclude name="setup/*.*" />
1021 <exclude name="Tools/VSNetWizards/**/*.*" />
1022 <exclude name="MonoRail2/**/*.*" />
1023 <exclude name="Tools/SubversionHooks/**/*.*" />
1024 <exclude name="Tools/ManagedExtensions/**/*.*" />
1025 </fileset>
1026 </zip>
1027 </target>
1029 <description>Documentation generation.</description>
1030 <property name="outputDocs.file" value="Castle"/>
1032 <description>Generates documentation with default properties.</description>
1033 <target name="releaseDocs" depends="init,cleanup">
1034 <property name="sanddoc.visibleitems" value="Attributes, InheritedMembers, InheritedFrameworkMembers, Protected, SealedProtected" />
1035 <property name="sanddoc.missingtags" value="Summary, Parameter, AutoDocumentCtors, Namespace" />
1036 <call target="generateReleaseDocs"/>
1037 </target>
1039 <description>Generates documentation for developers, with all missing information indicated and private members visible.</description>
1040 <target name="devDocs" depends="init,cleanup">
1041 <property name="sanddoc.visibleitems" value="Attributes, InheritedMembers, InheritedFrameworkMembers, Privates, Protected, SealedProtected" />
1042 <property name="sanddoc.missingtags" value="Summary, Parameter, Returns, Value, AutoDocumentCtors, Namespace" />
1043 <property name="outputDocs.file" value="CastleDev"/>
1044 <call target="generateReleaseDocs"/>
1045 </target>
1047 <description>Generates documentation for release.</description>
1048 <target name="generateReleaseDocs">
1049 <property name="root.dir" value="." />
1050 <exec program="SandcastleBuilderConsole" basedir="${shfb.dir}" commandline='sandcastle_docs.shfb'>
1051 <arg value="-FrameworkVersion=${framework::get-clr-version(framework::get-target-framework())}" />
1052 <arg value="-SandcastlePath=${sandcastle.dir}" />
1053 <arg value="-HtmlHelp1xCompilerPath=${htmlhelp1x.dir}" />
1054 <arg value="-OutputPath=${docs.dir}" />
1055 <arg value="-HtmlHelpName=${outputDocs.file}" />
1056 <arg value="-HelpFileFormat=HtmlHelp1x" />
1057 <arg value="-VisibleItems=${sanddoc.visibleitems}" />
1058 <arg value="-MissingTags=${sanddoc.missingtags}" />
1059 </exec>
1060 </target>
1062 <description>Cleans up prior to documentation generation.</description>
1063 <target name="cleanup">
1064 <delete>
1065 <fileset>
1066 <include name="${docs.dir}/**"/>
1067 <exclude name="**/*.chm"/>
1068 </fileset>
1069 </delete>
1070 </target>
1072 </project>