Fixed IoC-87 in which the DefaultComplexConverter does not properly handle nested...
[castle.git] / default.build
blobd5a6f1141cbb51674f07b38ee3e72b75a2d9069b
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 <fileset id="buildfiles.all">
12 <!-- Files have to be in dependency order -->
13 <include name="Core/core.build" />
14 <include name="Services/services.build" />
15 <include name="Tools/Tools.build" />
16 <include name="InversionOfControl/InversionOfControl.build" />
17 <include name="Components/components.build" />
18 <include name="ActiveRecord/activerecord.build" />
19 <include name="MonoRail/monorail.build" />
20 <!--
21 <include name="AspectSharp/aspectsharp.build" />
22 -->
23 <include name="Facilities/facilities.build" />
24 </fileset>
26 <target name="build"
27 depends="init copy-referenced-assemblies"
28 description="Builds Castle in the current configuration">
30 <nant target="build">
31 <buildfiles refid="buildfiles.all" />
32 </nant>
34 </target>
36 <target name="rebuild"
37 depends="init recreate-build-directory build"
38 description="Rebuilds Castle in the current configuration" />
40 <target name="installer" depends="init createreleasenotes zip-source zip-samples">
41 <nant buildfile="Setup/Setup.build" />
42 </target>
44 <target name="init" depends="common.init">
45 <mkdir dir="${build.dir}" />
46 <mkdir dir="${testresults.dir}" />
48 <call target="common.find-svninfo" />
49 <call target="common.find-nunit" />
50 </target>
52 <target name="clean" description="Deletes current build artifacts" depends="common.init">
53 <delete dir="${build.dir}" failonerror="false" />
54 <delete>
55 <fileset basedir="${build.base.dir}">
56 <include name="*.*" />
57 </fileset>
58 </delete>
59 </target>
61 <target name="clean-vs" description="Delete Visual Studio artifacts" depends="common.init">
62 <!-- NB - this target will fail if you have a solution open in Visual Studio -->
63 <echo message="Gathering files for removal..." />
64 <foreach item="File" property="filename">
65 <in>
66 <items basedir=".">
67 <include name="**/*.suo" />
68 <include name="*/*.csproj.user" />
69 </items>
70 </in>
71 <do>
72 <delete file="${filename}" />
73 </do>
74 </foreach>
75 <echo message="Gathering folders for removal..." />
76 <foreach item="Folder" property="foldername">
77 <in>
78 <items basedir=".">
79 <include name="**/obj" />
80 <include name="**/_ReSharper*" />
81 </items>
82 </in>
83 <do>
84 <delete dir="${foldername}" failonerror="false" />
85 </do>
86 </foreach>
87 </target>
89 <target name="cleanall" description="Deletes all build artifacts" depends="common.init">
90 <echo message="Deleting all builds from all configurations" />
91 <delete dir="${build.base.dir}" failonerror="false" />
92 <call target="clean-vs" />
93 </target>
95 <target name="recreate-build-directory">
96 <echo message="Current Directory is ${project::get-base-directory()}" />
97 <echo message="Build Directory is ${build.dir}" />
99 <!-- Prepare build directory -->
100 <delete dir="${build.dir}" failonerror="false" />
101 <mkdir dir="${build.dir}" />
102 <mkdir dir="${testresults.dir}" />
103 <call target="copy-referenced-assemblies" />
104 <property name="build.rebuild" value="true" />
105 </target>
107 <target name="copy-referenced-assemblies">
108 <!-- Copy framework-neutral libraries -->
109 <copy todir="${build.dir}" >
110 <fileset basedir="${lib.dir}">
111 <include name="*.dll" />
112 <include name="*.xml" />
113 <include name="*.license.txt" />
114 </fileset>
115 </copy>
117 <!-- Copy family-specific libraries installed on the system-->
118 <copy file="${path::combine(nant::get-base-directory(), 'NAnt.Core.dll')}" todir="${lib.family.dir}" />
120 <!-- Copy family-specific libraries -->
121 <!--
122 The build of log4net works just fine for all versions of .NET.
123 When they do get framework specific extensions then we
124 can just move them to the framework specific section
126 <copy todir="${build.dir}">
127 <fileset basedir="${lib.family.dir}">
128 <include name="*.dll" />
129 <include name="*.xml" />
130 <include name="*.license.txt" />
131 </fileset>
132 </copy>
134 <!-- Copy framework-specific libraries -->
135 <copy todir="${build.dir}">
136 <fileset basedir="${lib.framework.dir}">
137 <include name="*.dll" />
138 <include name="*.xml" />
139 <include name="*.license.txt" />
140 </fileset>
141 </copy>
142 </target>
144 <target name="generate-assemblyinfo"
145 depends="init"
146 description="Generate AssemblyInfo files">
148 <property name="visual-studio" value="true" />
149 <nant target="generate-assemblyinfo">
150 <buildfiles refid="buildfiles.all" />
151 </nant>
153 </target>
155 <target name="build-all-frameworks" depends="init">
156 <!-- Save the current framework -->
157 <property name="current.framework.saved" value="${nant.settings.currentframework}" />
159 <!-- Execute build for each framework -->
160 <foreach item="String" delim=" " property="framework" in="net-1.1 net-2.0">
161 <call target="set-${framework}-framework-configuration" />
162 <call target="build" />
163 </foreach>
165 <!-- Reset the current framework to the saved value -->
166 <call target="set-${current.framework.saved}-framework-configuration" />
167 </target>
169 <!-- Packaging related tasks -->
171 <target name="package" depends="zip-build"
172 description="Creates Zip files for Release">
174 <echo message="Created a '${project.config}' package in file://${build.zip.fullpath}" />
176 <delete file="${build.base.dir}/castle-sourcecode.zip" failonerror="false" />
177 <delete file="${build.dir}/test-results.zip" failonerror="false" />
178 <delete file="${build.dir}/external-dependencies.zip" failonerror="false" />
180 </target>
182 <target name="createreleasenotes" depends="init">
183 <mkdir dir="${releasenotes.dir}" />
184 <delete dir="${releasenotes.dir}" />
186 <echo message="Top level projects Release notes" />
188 <copy file="ActiveRecord/Changes.txt" tofile="${releasenotes.dir}/ActiveRecord Release Notes.txt" />
189 <copy file="ActiveRecord/License.txt" tofile="${releasenotes.dir}/License.txt" />
190 <copy file="MonoRail/Changes.txt" tofile="${releasenotes.dir}/MonoRail Release Notes.txt" />
191 <copy file="InversionOfControl/Changes.txt" tofile="${releasenotes.dir}/InversionOfControl Release Notes.txt" />
192 <copy file="AspectSharp/Changes.txt" tofile="${releasenotes.dir}/AspectSharp Release Notes.txt" />
193 <copy file="Tools/DynamicProxy/Changes.txt" tofile="${releasenotes.dir}/DynamicProxy Release Notes.txt" />
194 <copy file="Core/Changes.txt" tofile="${releasenotes.dir}/Core Release Notes.txt" />
196 <echo message="Components Release notes" />
198 <mkdir dir="${releasenotes.dir}/Components" />
199 <property name="target.folder" value="Components" />
200 <call target="copy-scope-releasednotes" />
202 <echo message="Facilities Release notes" />
204 <mkdir dir="${releasenotes.dir}/Facilities" />
205 <property name="target.folder" value="Facilities" />
206 <call target="copy-scope-releasednotes" />
208 <echo message="Services Release notes" />
210 <mkdir dir="${releasenotes.dir}/Services" />
211 <property name="target.folder" value="Services" />
212 <call target="copy-scope-releasednotes" />
214 </target>
216 <target name="copy-scope-releasednotes">
217 <foreach item="File" property="changeLogFile">
218 <in>
219 <items>
220 <include name="${target.folder}/**/Changes.txt"/>
221 </items>
222 </in>
223 <do>
224 <echo message="changeLogFile ${changeLogFile}" />
226 <property name="folder" value="${directory::get-parent-directory(changeLogFile)}" />
228 <if test="${platform::is-win32()}">
229 <property name="lastsepindex" value="${string::last-index-of(folder, '\') + 1}" />
230 </if>
232 <if test="${platform::is-unix()}">
233 <property name="lastsepindex" value="${string::last-index-of(folder, '/') + 1}" />
234 </if>
236 <property name="length" value="${string::get-length(folder) - int::parse(lastsepindex)}" />
238 <property name="project.name" value="${string::substring(folder, lastsepindex, length)}" />
240 <copy file="${changeLogFile}" tofile="${releasenotes.dir}/${target.folder}/${project.name} Release Notes.txt" />
241 </do>
242 </foreach>
243 </target>
245 <!-- depends="build" -->
246 <target name="zip-build" depends="build">
247 <property name="build.zip.dir" value="${build.dir}" overwrite="false" />
248 <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" />
249 <property name="build.zip.fullpath" value="${build.zip.dir}/${build.zip.file}" readonly="true" />
251 <delete>
252 <fileset basedir="${root.dir}">
253 <include name="*.zip" />
254 <include name="${build.dir}/external-dependencies.zip" />
255 </fileset>
256 </delete>
258 <!-- Prepare release note files -->
259 <call target="createreleasenotes" />
261 <!-- Include a zip file with all source code -->
262 <call target="zip-source" if="${build.debug}" />
264 <!-- Include a zip file with all dependencies -->
265 <call target="zip-dependencies" />
267 <!-- Create the master zip file with all files included -->
268 <zip zipfile="${build.zip.fullpath}">
269 <fileset basedir="${build.dir}" prefix="bin" >
270 <include name="**/Castle*.*" />
271 <include name="AspectSharp*.*" />
272 <include name="external-dependencies.zip" />
273 <exclude name="*Tests.*" />
274 <exclude name="test-results/**" />
275 </fileset>
276 <fileset basedir="${root.dir}">
277 <include name="ASL - Apache Software Foundation License.txt" />
278 <include name="Committers.txt" />
279 <include name="Castle main limitations.txt" />
280 </fileset>
281 <fileset basedir="${build.base.dir}" >
282 <include name="castle-sourcecode.zip" />
283 </fileset>
284 <fileset basedir="${releasenotes.dir}" prefix="ReleaseNotes" >
285 <include name="**/*.txt" />
286 </fileset>
287 </zip>
288 </target>
290 <target name="zip-dependencies" >
291 <zip zipfile="${build.dir}/external-dependencies.zip">
292 <fileset basedir="${build.dir}">
293 <include name="*.*" />
294 <exclude name="**/Castle*" />
295 <exclude name="**/AspectSharp*" />
296 <exclude name="**/db4o.dll" />
297 <exclude name="**/EULA.rtf" />
298 <exclude name="**/*.zip" />
299 </fileset>
300 </zip>
301 </target>
303 <target name="zip-doc">
304 <zip zipfile="${root.dir}/Castle-api-doc.zip">
305 <fileset basedir="${root.dir}/docs">
306 <include name="Castle.chm" />
307 </fileset>
308 </zip>
309 </target>
311 <target name="zip-samples-for-website" depends="init">
312 <delete dir="${root.dir}/samplesforwebsite/" failonerror="false" />
313 <mkdir dir="${root.dir}/samplesforwebsite/" />
315 <zip zipfile="${root.dir}/samplesforwebsite/InitializingAndConfiguring.zip">
316 <fileset basedir="${root.dir}/Samples/ActiveRecord/BlogSample">
317 <include name="**/*.build" />
318 <include name="**/*.sln" />
319 <include name="**/*.cs" />
320 <include name="**/*.ico" />
321 <include name="**/*.csproj" />
322 <include name="**/*.xml" />
323 <include name="**/*.config" />
324 <include name="**/*.lang" />
325 <include name="**/*.txt" />
326 <include name="**/*.inc" />
327 <include name="**/*.vm" />
328 <include name="*.snk" />
329 <exclude name="**/bin/*" />
330 <exclude name="**/bin/Debug/*" />
331 <exclude name="**/bin/Release/*" />
332 <exclude name="**/obj/*" />
333 <exclude name="**.user" />
334 <exclude name="**/_Resharper.*/*" />
335 </fileset>
336 </zip>
337 <zip zipfile="${root.dir}/samplesforwebsite/TableHierarchy.zip">
338 <fileset basedir="${root.dir}/Samples/ActiveRecord/TableHierarchySample">
339 <include name="**/*.build" />
340 <include name="**/*.sln" />
341 <include name="**/*.cs" />
342 <include name="**/*.ico" />
343 <include name="**/*.csproj" />
344 <include name="**/*.xml" />
345 <include name="**/*.config" />
346 <include name="**/*.lang" />
347 <include name="**/*.txt" />
348 <include name="**/*.inc" />
349 <include name="**/*.vm" />
350 <include name="*.snk" />
351 <exclude name="**/bin/*" />
352 <exclude name="**/bin/Debug/*" />
353 <exclude name="**/bin/Release/*" />
354 <exclude name="**/obj/*" />
355 <exclude name="**.user" />
356 <exclude name="**/_Resharper.*/*" />
357 </fileset>
358 </zip>
359 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.WizardSample.zip">
360 <fileset basedir="${root.dir}/Samples/MonoRail/WizardSample">
361 <include name="**/*.build" />
362 <include name="**/*.sln" />
363 <include name="**/*.cs" />
364 <include name="**/*.ico" />
365 <include name="**/*.csproj" />
366 <include name="**/*.xml" />
367 <include name="**/*.config" />
368 <include name="**/*.lang" />
369 <include name="**/*.txt" />
370 <include name="**/*.inc" />
371 <include name="**/*.vm" />
372 <include name="**/*.resx" />
373 <include name="**/*.aspx" />
374 <include name="**/*.asax" />
375 <include name="*.snk" />
376 <exclude name="**/bin/*" />
377 <exclude name="**/bin/Debug/*" />
378 <exclude name="**/bin/Release/*" />
379 <exclude name="**/obj/*" />
380 <exclude name="**.user" />
381 <exclude name="**/_Resharper.*/*" />
382 </fileset>
383 </zip>
384 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.SimpleBindingSample.zip">
385 <fileset basedir="${root.dir}/Samples/MonoRail/SimpleBindingSample">
386 <include name="**/*.build" />
387 <include name="**/*.sln" />
388 <include name="**/*.cs" />
389 <include name="**/*.ico" />
390 <include name="**/*.csproj" />
391 <include name="**/*.xml" />
392 <include name="**/*.config" />
393 <include name="**/*.lang" />
394 <include name="**/*.txt" />
395 <include name="**/*.inc" />
396 <include name="**/*.vm" />
397 <include name="**/*.resx" />
398 <include name="**/*.aspx" />
399 <include name="**/*.asax" />
400 <include name="*.snk" />
401 <exclude name="**/bin/*" />
402 <exclude name="**/bin/Debug/*" />
403 <exclude name="**/bin/Release/*" />
404 <exclude name="**/obj/*" />
405 <exclude name="**.user" />
406 <exclude name="**/_Resharper.*/*" />
407 </fileset>
408 </zip>
409 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DataBindSample.zip">
410 <fileset basedir="${root.dir}/Samples/MonoRail/DataBindSample">
411 <include name="**/*.build" />
412 <include name="**/*.sln" />
413 <include name="**/*.cs" />
414 <include name="**/*.ico" />
415 <include name="**/*.csproj" />
416 <include name="**/*.xml" />
417 <include name="**/*.config" />
418 <include name="**/*.lang" />
419 <include name="**/*.txt" />
420 <include name="**/*.inc" />
421 <include name="**/*.vm" />
422 <include name="**/*.resx" />
423 <include name="**/*.aspx" />
424 <include name="**/*.asax" />
425 <include name="*.snk" />
426 <exclude name="**/bin/*" />
427 <exclude name="**/bin/Debug/*" />
428 <exclude name="**/bin/Release/*" />
429 <exclude name="**/obj/*" />
430 <exclude name="**.user" />
431 <exclude name="**/_Resharper.*/*" />
432 </fileset>
433 </zip>
434 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.SendingEmailSample.zip">
435 <fileset basedir="${root.dir}/Samples/MonoRail/SendingEmailSample">
436 <include name="**/*.build" />
437 <include name="**/*.sln" />
438 <include name="**/*.cs" />
439 <include name="**/*.ico" />
440 <include name="**/*.csproj" />
441 <include name="**/*.xml" />
442 <include name="**/*.config" />
443 <include name="**/*.lang" />
444 <include name="**/*.txt" />
445 <include name="**/*.inc" />
446 <include name="**/*.vm" />
447 <include name="**/*.resx" />
448 <include name="**/*.aspx" />
449 <include name="**/*.asax" />
450 <include name="*.snk" />
451 <exclude name="**/bin/*" />
452 <exclude name="**/bin/Debug/*" />
453 <exclude name="**/bin/Release/*" />
454 <exclude name="**/obj/*" />
455 <exclude name="**.user" />
456 <exclude name="**/_Resharper.*/*" />
457 </fileset>
458 </zip>
459 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.ViewComponentSample.zip">
460 <fileset basedir="${root.dir}/Samples/MonoRail/ViewComponentSample">
461 <include name="**/*.build" />
462 <include name="**/*.sln" />
463 <include name="**/*.cs" />
464 <include name="**/*.ico" />
465 <include name="**/*.csproj" />
466 <include name="**/*.xml" />
467 <include name="**/*.config" />
468 <include name="**/*.lang" />
469 <include name="**/*.txt" />
470 <include name="**/*.inc" />
471 <include name="**/*.vm" />
472 <include name="**/*.resx" />
473 <include name="**/*.aspx" />
474 <include name="**/*.asax" />
475 <include name="*.snk" />
476 <exclude name="**/bin/*" />
477 <exclude name="**/bin/Debug/*" />
478 <exclude name="**/bin/Release/*" />
479 <exclude name="**/obj/*" />
480 <exclude name="**.user" />
481 <exclude name="**/_Resharper.*/*" />
482 </fileset>
483 </zip>
484 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.AuthenticationUsingFilters.zip">
485 <fileset basedir="${root.dir}/Samples/MonoRail/AuthenticationUsingFilters">
486 <include name="**/*.build" />
487 <include name="**/*.sln" />
488 <include name="**/*.cs" />
489 <include name="**/*.ico" />
490 <include name="**/*.csproj" />
491 <include name="**/*.xml" />
492 <include name="**/*.config" />
493 <include name="**/*.lang" />
494 <include name="**/*.txt" />
495 <include name="**/*.inc" />
496 <include name="**/*.vm" />
497 <include name="**/*.resx" />
498 <include name="**/*.aspx" />
499 <include name="**/*.asax" />
500 <include name="*.snk" />
501 <exclude name="**/bin/*" />
502 <exclude name="**/bin/Debug/*" />
503 <exclude name="**/bin/Release/*" />
504 <exclude name="**/obj/*" />
505 <exclude name="**.user" />
506 <exclude name="**/_Resharper.*/*" />
507 </fileset>
508 </zip>
509 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.AuthenticationUsingForms.zip">
510 <fileset basedir="${root.dir}/Samples/MonoRail/AuthenticationUsingForms">
511 <include name="**/*.build" />
512 <include name="**/*.sln" />
513 <include name="**/*.cs" />
514 <include name="**/*.ico" />
515 <include name="**/*.csproj" />
516 <include name="**/*.xml" />
517 <include name="**/*.config" />
518 <include name="**/*.lang" />
519 <include name="**/*.txt" />
520 <include name="**/*.inc" />
521 <include name="**/*.vm" />
522 <include name="**/*.resx" />
523 <include name="**/*.aspx" />
524 <include name="**/*.asax" />
525 <include name="*.snk" />
526 <exclude name="**/bin/*" />
527 <exclude name="**/bin/Debug/*" />
528 <exclude name="**/bin/Release/*" />
529 <exclude name="**/obj/*" />
530 <exclude name="**.user" />
531 <exclude name="**/_Resharper.*/*" />
532 </fileset>
533 </zip>
534 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.LocalizationSample.zip">
535 <fileset basedir="${root.dir}/Samples/MonoRail/LocalizationSample">
536 <include name="**/*.build" />
537 <include name="**/*.sln" />
538 <include name="**/*.cs" />
539 <include name="**/*.ico" />
540 <include name="**/*.csproj" />
541 <include name="**/*.xml" />
542 <include name="**/*.config" />
543 <include name="**/*.lang" />
544 <include name="**/*.txt" />
545 <include name="**/*.inc" />
546 <include name="**/*.vm" />
547 <include name="**/*.resx" />
548 <include name="**/*.aspx" />
549 <include name="**/*.asax" />
550 <include name="*.snk" />
551 <exclude name="**/bin/*" />
552 <exclude name="**/bin/Debug/*" />
553 <exclude name="**/bin/Release/*" />
554 <exclude name="**/obj/*" />
555 <exclude name="**.user" />
556 <exclude name="**/_Resharper.*/*" />
557 </fileset>
558 </zip>
559 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.FormHelperSample.zip">
560 <fileset basedir="${root.dir}/Samples/MonoRail/FormHelperSample">
561 <include name="**/*.build" />
562 <include name="**/*.sln" />
563 <include name="**/*.cs" />
564 <include name="**/*.ico" />
565 <include name="**/*.csproj" />
566 <include name="**/*.xml" />
567 <include name="**/*.config" />
568 <include name="**/*.lang" />
569 <include name="**/*.txt" />
570 <include name="**/*.inc" />
571 <include name="**/*.vm" />
572 <include name="**/*.resx" />
573 <include name="**/*.aspx" />
574 <include name="**/*.asax" />
575 <include name="*.snk" />
576 <exclude name="**/bin/*" />
577 <exclude name="**/bin/Debug/*" />
578 <exclude name="**/bin/Release/*" />
579 <exclude name="**/obj/*" />
580 <exclude name="**.user" />
581 <exclude name="**/_Resharper.*/*" />
582 </fileset>
583 </zip>
585 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.GettingStartedSampleVS2003.zip">
586 <fileset basedir="${root.dir}/Samples/MonoRail/GettingStartedSampleVS2003">
587 <include name="**/*.build" />
588 <include name="**/*.sln" />
589 <include name="**/*.cs" />
590 <include name="**/*.ico" />
591 <include name="**/*.csproj" />
592 <include name="**/*.xml" />
593 <include name="**/*.config" />
594 <include name="**/*.lang" />
595 <include name="**/*.txt" />
596 <include name="**/*.inc" />
597 <include name="**/*.vm" />
598 <include name="**/*.resx" />
599 <include name="**/*.aspx" />
600 <include name="**/*.asax" />
601 <include name="*.snk" />
602 <exclude name="**/bin/*" />
603 <exclude name="**/bin/Debug/*" />
604 <exclude name="**/bin/Release/*" />
605 <exclude name="**/obj/*" />
606 <exclude name="**.user" />
607 <exclude name="**/_Resharper.*/*" />
608 </fileset>
609 </zip>
611 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.GettingStartedSampleVS2005.zip">
612 <fileset basedir="${root.dir}/Samples/MonoRail/GettingStartedSampleVS2005">
613 <include name="**/*.build" />
614 <include name="**/*.sln" />
615 <include name="**/*.cs" />
616 <include name="**/*.ico" />
617 <include name="**/*.csproj" />
618 <include name="**/*.xml" />
619 <include name="**/*.config" />
620 <include name="**/*.lang" />
621 <include name="**/*.txt" />
622 <include name="**/*.inc" />
623 <include name="**/*.vm" />
624 <include name="**/*.resx" />
625 <include name="**/*.aspx" />
626 <include name="**/*.asax" />
627 <include name="*.snk" />
628 <exclude name="**/bin/*" />
629 <exclude name="**/bin/Debug/*" />
630 <exclude name="**/bin/Release/*" />
631 <exclude name="**/obj/*" />
632 <exclude name="**.user" />
633 <exclude name="**/_Resharper.*/*" />
634 </fileset>
635 </zip>
637 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DynActProvSample.zip">
638 <fileset basedir="${root.dir}/Samples/MonoRail/DynActProvSample">
639 <include name="**/*.build" />
640 <include name="**/*.sln" />
641 <include name="**/*.cs" />
642 <include name="**/*.ico" />
643 <include name="**/*.csproj" />
644 <include name="**/*.xml" />
645 <include name="**/*.config" />
646 <include name="**/*.lang" />
647 <include name="**/*.txt" />
648 <include name="**/*.inc" />
649 <include name="**/*.vm" />
650 <include name="**/*.resx" />
651 <include name="**/*.aspx" />
652 <include name="**/*.asax" />
653 <include name="*.snk" />
654 <exclude name="**/bin/*" />
655 <exclude name="**/bin/Debug/*" />
656 <exclude name="**/bin/Release/*" />
657 <exclude name="**/obj/*" />
658 <exclude name="**.user" />
659 <exclude name="**/_Resharper.*/*" />
660 </fileset>
661 </zip>
664 <zip zipfile="${root.dir}/samplesforwebsite/Windsor.TimeTracking.zip">
665 <fileset basedir="${root.dir}/Samples/InversionOfControl/TimeTracking">
666 <include name="**/*.build" />
667 <include name="**/*.sln" />
668 <include name="**/*.cs" />
669 <include name="**/*.ico" />
670 <include name="**/*.csproj" />
671 <include name="**/*.xml" />
672 <include name="**/*.config" />
673 <include name="**/*.lang" />
674 <include name="**/*.txt" />
675 <include name="**/*.inc" />
676 <include name="**/*.vm" />
677 <include name="**/*.resx" />
678 <include name="**/*.aspx" />
679 <include name="**/*.asax" />
680 <include name="*.snk" />
681 <exclude name="**/bin/*" />
682 <exclude name="**/bin/Debug/*" />
683 <exclude name="**/bin/Release/*" />
684 <exclude name="**/obj/*" />
685 <exclude name="**.user" />
686 <exclude name="**/_Resharper.*/*" />
687 </fileset>
688 </zip>
689 <zip zipfile="${root.dir}/samplesforwebsite/CustomTypeConverterSample.zip">
690 <fileset basedir="${root.dir}/Samples/InversionOfControl/CustomTypeConverterSample">
691 <include name="**/*.build" />
692 <include name="**/*.sln" />
693 <include name="**/*.cs" />
694 <include name="**/*.ico" />
695 <include name="**/*.csproj" />
696 <include name="**/*.xml" />
697 <include name="**/*.config" />
698 <include name="**/*.lang" />
699 <include name="**/*.txt" />
700 <include name="**/*.inc" />
701 <include name="**/*.vm" />
702 <include name="**/*.resx" />
703 <include name="**/*.aspx" />
704 <include name="**/*.asax" />
705 <include name="*.snk" />
706 <exclude name="**/bin/*" />
707 <exclude name="**/bin/Debug/*" />
708 <exclude name="**/bin/Release/*" />
709 <exclude name="**/obj/*" />
710 <exclude name="**.user" />
711 <exclude name="**/_Resharper.*/*" />
712 </fileset>
713 </zip>
714 <zip zipfile="${root.dir}/samplesforwebsite/FacilitySample2.zip">
715 <fileset basedir="${root.dir}/Samples/InversionOfControl/ExtendingSample2">
716 <include name="**/*.build" />
717 <include name="**/*.sln" />
718 <include name="**/*.cs" />
719 <include name="**/*.ico" />
720 <include name="**/*.csproj" />
721 <include name="**/*.xml" />
722 <include name="**/*.config" />
723 <include name="**/*.lang" />
724 <include name="**/*.txt" />
725 <include name="**/*.inc" />
726 <include name="**/*.vm" />
727 <include name="**/*.resx" />
728 <include name="**/*.aspx" />
729 <include name="**/*.asax" />
730 <include name="*.snk" />
731 <exclude name="**/bin/*" />
732 <exclude name="**/bin/Debug/*" />
733 <exclude name="**/bin/Release/*" />
734 <exclude name="**/obj/*" />
735 <exclude name="**.user" />
736 <exclude name="**/_Resharper.*/*" />
737 </fileset>
738 </zip>
739 <zip zipfile="${root.dir}/samplesforwebsite/GettingStartedPart1.zip">
740 <fileset basedir="${root.dir}/Samples/InversionOfControl/GettingStarted/GettingStartedPart1">
741 <include name="**/*.build" />
742 <include name="**/*.sln" />
743 <include name="**/*.cs" />
744 <include name="**/*.ico" />
745 <include name="**/*.csproj" />
746 <include name="**/*.xml" />
747 <include name="**/*.config" />
748 <include name="**/*.lang" />
749 <include name="**/*.txt" />
750 <include name="**/*.inc" />
751 <include name="**/*.resx" />
752 <include name="*.snk" />
753 <exclude name="**/bin/*" />
754 <exclude name="**/bin/Debug/*" />
755 <exclude name="**/bin/Release/*" />
756 <exclude name="**/obj/*" />
757 <exclude name="**.user" />
758 <exclude name="**/_Resharper.*/*" />
759 </fileset>
760 </zip>
762 <zip zipfile="${root.dir}/samplesforwebsite/KernelInOneEndPoint.Sample.zip">
763 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelInOneEndPoint">
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="**/*.txt" />
772 <include name="**/*.vm" />
773 <include name="**/*.resx" />
774 <include name="*.snk" />
775 <exclude name="**/bin/*" />
776 <exclude name="**/bin/Debug/*" />
777 <exclude name="**/bin/Release/*" />
778 <exclude name="**/obj/*" />
779 <exclude name="**.user" />
780 <exclude name="**/_Resharper.*/*" />
781 </fileset>
782 </zip>
783 <zip zipfile="${root.dir}/samplesforwebsite/KernelOnBothEndPoints.Sample.zip">
784 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelOnBothEndPoints">
785 <include name="**/*.build" />
786 <include name="**/*.sln" />
787 <include name="**/*.cs" />
788 <include name="**/*.ico" />
789 <include name="**/*.csproj" />
790 <include name="**/*.xml" />
791 <include name="**/*.config" />
792 <include name="**/*.txt" />
793 <include name="**/*.vm" />
794 <include name="**/*.resx" />
795 <include name="*.snk" />
796 <exclude name="**/bin/*" />
797 <exclude name="**/bin/Debug/*" />
798 <exclude name="**/bin/Release/*" />
799 <exclude name="**/obj/*" />
800 <exclude name="**.user" />
801 <exclude name="**/_Resharper.*/*" />
802 </fileset>
803 </zip>
804 <zip zipfile="${root.dir}/samplesforwebsite/ContainersConnected.Sample.zip">
805 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/ContainersConnected">
806 <include name="**/*.build" />
807 <include name="**/*.sln" />
808 <include name="**/*.cs" />
809 <include name="**/*.ico" />
810 <include name="**/*.csproj" />
811 <include name="**/*.xml" />
812 <include name="**/*.config" />
813 <include name="**/*.txt" />
814 <include name="**/*.vm" />
815 <include name="**/*.resx" />
816 <include name="*.snk" />
817 <exclude name="**/bin/*" />
818 <exclude name="**/bin/Debug/*" />
819 <exclude name="**/bin/Release/*" />
820 <exclude name="**/obj/*" />
821 <exclude name="**.user" />
822 <exclude name="**/_Resharper.*/*" />
823 </fileset>
824 </zip>
825 </target>
827 <target name="zip-samples">
828 <zip zipfile="${build.base.dir}/ActiveRecord-Samples.zip">
829 <fileset basedir="${root.dir}/Samples/ActiveRecord">
830 <include name="**/*.build" />
831 <include name="**/*.sln" />
832 <include name="**/*.cs" />
833 <include name="**/*.ico" />
834 <include name="**/*.csproj" />
835 <include name="**/*.xml" />
836 <include name="**/*.config" />
837 <include name="**/*.lang" />
838 <include name="**/*.txt" />
839 <include name="**/*.inc" />
840 <include name="**/*.vm" />
841 <include name="**/*.resx" />
842 <include name="**/*.aspx" />
843 <include name="**/*.asax" />
844 <include name="**/*.sql" />
845 <include name="*.snk" />
846 <exclude name="**/bin/*" />
847 <exclude name="**/bin/Debug/*" />
848 <exclude name="**/bin/Release/*" />
849 <exclude name="**/obj/*" />
850 <exclude name="**.user" />
851 <exclude name="**/_Resharper.*/*" />
852 </fileset>
853 </zip>
854 <zip zipfile="${build.base.dir}/Facilities-Samples.zip">
855 <fileset basedir="${root.dir}/Samples/Facilities">
856 <include name="**/*.build" />
857 <include name="**/*.sln" />
858 <include name="**/*.cs" />
859 <include name="**/*.ico" />
860 <include name="**/*.csproj" />
861 <include name="**/*.xml" />
862 <include name="**/*.config" />
863 <include name="**/*.lang" />
864 <include name="**/*.txt" />
865 <include name="**/*.inc" />
866 <include name="**/*.vm" />
867 <include name="*.snk" />
868 <exclude name="**/bin/*" />
869 <exclude name="**/bin/Debug/*" />
870 <exclude name="**/bin/Release/*" />
871 <exclude name="**/obj/*" />
872 <exclude name="**.user" />
873 <exclude name="**/_Resharper.*/*" />
874 </fileset>
875 </zip>
876 <zip zipfile="${build.base.dir}/InversionOfControl-Samples.zip">
877 <fileset basedir="${root.dir}/Samples/InversionOfControl">
878 <include name="**/*.build" />
879 <include name="**/*.sln" />
880 <include name="**/*.cs" />
881 <include name="**/*.ico" />
882 <include name="**/*.csproj" />
883 <include name="**/*.xml" />
884 <include name="**/*.config" />
885 <include name="**/*.lang" />
886 <include name="**/*.txt" />
887 <include name="**/*.inc" />
888 <include name="**/*.vm" />
889 <include name="*.snk" />
890 <exclude name="**/bin/*" />
891 <exclude name="**/bin/Debug/*" />
892 <exclude name="**/bin/Release/*" />
893 <exclude name="**/obj/*" />
894 <exclude name="**.user" />
895 <exclude name="**/_Resharper.*/*" />
896 </fileset>
897 </zip>
898 <zip zipfile="${build.base.dir}/MonoRail-Samples.zip">
899 <fileset basedir="${root.dir}/Samples/MonoRail">
900 <include name="**/*.build" />
901 <include name="**/*.sln" />
902 <include name="**/*.cs" />
903 <include name="**/*.css" />
904 <include name="**/*.gif" />
905 <include name="**/*.png" />
906 <include name="**/*.jpg" />
907 <include name="**/*.js" />
908 <include name="**/*.ico" />
909 <include name="**/*.csproj" />
910 <include name="**/*.xml" />
911 <include name="**/*.config" />
912 <include name="**/*.lang" />
913 <include name="**/*.txt" />
914 <include name="**/*.inc" />
915 <include name="**/*.vm" />
916 <include name="*.snk" />
917 <exclude name="**/bin/*" />
918 <exclude name="**/bin/Debug/*" />
919 <exclude name="**/bin/Release/*" />
920 <exclude name="**/obj/*" />
921 <exclude name="**.user" />
922 <exclude name="**/_Resharper.*/*" />
923 </fileset>
924 </zip>
925 <zip zipfile="${build.base.dir}/Castle-Samples.zip">
926 <fileset basedir="${root.dir}/Samples/Castle">
927 <include name="**/*.build" />
928 <include name="**/*.sln" />
929 <include name="**/*.cs" />
930 <include name="**/*.ico" />
931 <include name="**/*.csproj" />
932 <include name="**/*.xml" />
933 <include name="**/*.config" />
934 <include name="**/*.lang" />
935 <include name="**/*.txt" />
936 <include name="**/*.inc" />
937 <include name="**/*.vm" />
938 <include name="*.snk" />
939 <exclude name="**/bin/*" />
940 <exclude name="**/bin/Debug/*" />
941 <exclude name="**/bin/Release/*" />
942 <exclude name="**/obj/*" />
943 <exclude name="**.user" />
944 <exclude name="**/_Resharper.*/*" />
945 </fileset>
946 </zip>
947 </target>
949 <target name="zip-source">
950 <zip zipfile="${build.base.dir}/castle-sourcecode.zip">
951 <fileset basedir="${root.dir}">
952 <include name="**/*.build" />
953 <include name="**/*.sln" />
954 <include name="**/*.cs" />
955 <include name="**/*.ico" />
956 <include name="**/*.csproj" />
957 <include name="**/*.xml" />
958 <include name="**/*.config" />
959 <include name="**/*.lang" />
960 <include name="**/*.txt" />
961 <include name="**/*.inc" />
962 <include name="**/*.vm" />
963 <include name="**/*.gif" />
964 <include name="**/*.resx" />
965 <include name="**/*.boo" />
966 <include name="**/*.booproj" />
967 <include name="**/*.prjx" />
968 <include name="**/*.cmbx" />
969 <exclude name="**/obj/" />
970 <exclude name="**/obj/**/*.*" />
971 <exclude name="**/bin*/**/*.*" />
972 <exclude name="**/temp/**/*.*" />
973 <exclude name="**/*.user" />
974 <exclude name="**/_ReSharper.*" />
975 <exclude name="**/_ReSharper.*/**/*.*" />
976 <exclude name="**/*.suo" />
977 <exclude name="SharedLibs/**/*.*" />
978 <exclude name="Samples/**/*.*" />
979 <exclude name="Experiments/**/*.*" />
980 <exclude name="build/**/*.*" />
981 <exclude name="Rook/**/*.*" />
982 <exclude name="setup/*.*" />
983 <exclude name="Tools/VSNetWizards/**/*.*" />
984 <exclude name="Tools/SubversionHooks/**/*.*" />
985 <exclude name="Tools/ManagedExtensions/**/*.*" />
986 <exclude name="Tools/Castle.DynamicProxy2/**/*.*" />
987 <exclude name="Tools/DynamicProxy2/**/*.*" />
988 </fileset>
989 </zip>
990 </target>
992 <description>Documentation generation.</description><property name="root.dir" value="." />
993 <property name="doc.dir" value="${root.dir}/docs" />
994 <property name="tempBin.dir" value="${doc.dir}/bin"/>
995 <property name="outputDocs.file" value="Castle"/>
997 <description>Docs generation properties.</description>
998 <property name="ShowMissing" value="false"/>
999 <property name="ShowPrivate" value="false"/>
1000 <property name="OutputTarget" value="HTMLHelp"/>
1002 <description>Generates documentation with default properties.</description>
1003 <target name="releaseDocs" depends="init,cleanup">
1004 <call target="copyFilesToDocument"/>
1005 <call target="generateReleaseDocs"/>
1006 </target>
1008 <description>Generates documentation for developers, with all missing information indicated and private members visible.</description>
1009 <target name="devDocs" depends="cleanup">
1010 <property name="ShowMissing" value="true"/>
1011 <property name="ShowPrivate" value="true"/>
1012 <property name="outputDocs.file" value="CastleDev"/>
1013 <call target="copyFilesToDocument"/>
1014 <call target="generateReleaseDocs"/>
1015 </target>
1017 <description>Generates documentation for release.</description>
1018 <target name="generateReleaseDocs">
1019 <ndoc failonerror="true">
1020 <assemblies basedir="${tempBin.dir}">
1021 <include name="Castle.*.dll"/>
1022 </assemblies>
1023 <referencepaths>
1024 <include name="ActiveRecord/lib"/>
1025 <include name="AspectSharp/bin"/>
1026 <include name="Monorail/lib"/>
1027 <include name="Tools/DynamicProxy/bin"/>
1028 <include name="Tools/NVelocity/bin"/>
1030 <!-- Components -->
1031 <include name="SharedLibs/Prevalence"/>
1032 <include name="SharedLibs/Db4o/net-1.1"/>
1033 <include name="SharedLibs/IBatis"/>
1034 <include name="SharedLibs/NHibernate"/>
1035 <include name="SharedLibs/boo"/>
1036 <include name="SharedLibs/cassini"/>
1037 <include name="SharedLibs/log4net"/>
1038 <include name="SharedLibs/netron"/>
1039 <include name="SharedLibs/Nlog"/>
1040 <include name="SharedLibs/log4net"/>
1041 <include name="SharedLibs/Nvelocity"/>
1042 <include name="SharedLibs/stringtemplate/net-1.1"/>
1043 </referencepaths>
1044 <documenters>
1045 <documenter name="MSDN">
1046 <property name="OutputTarget" value="${OutputTarget}" />
1047 <property name="Preliminary" value="true" />
1048 <property name="BinaryTOC" value="true" />
1049 <property name="CleanIntermediates" value="true" />
1050 <property name="SdkLinksOnWeb" value="true" />
1052 <property name="OutputDirectory" value="${doc.dir}" />
1053 <property name="HtmlHelpName" value="${outputDocs.file}" />
1054 <property name="IncludeFavorites" value="True" />
1055 <property name="SplitTOCs" value="False" />
1057 <property name="Title" value="Castle API documentation" />
1058 <property name="DefaulTOC" value="Castle.MicroKernel" />
1060 <property name="ShowVisualBasic" value="True" />
1061 <property name="ShowMissingSummaries" value="${ShowMissing}" />
1062 <property name="ShowMissingRemarks" value="${ShowMissing}" />
1063 <property name="ShowMissingParams" value="${ShowMissing}" />
1064 <property name="ShowMissingReturns" value="${ShowMissing}" />
1065 <property name="ShowMissingValues" value="${ShowMissing}" />
1066 <property name="DocumentEmptyNamespaces" value="${ShowMissing}" />
1068 <property name="AutoPropertyBackerSummaries" value="true" />
1069 <property name="AutoDocumentConstructors" value="true" />
1070 <property name="DocumentProtected" value="True" />
1071 <property name="DocumentInternals" value="${ShowPrivate}" />
1072 <property name="DocumentPrivates" value="${ShowPrivate}" />
1074 <property name="IncludeAssemblyVersion" value="True" />
1075 <property name="CopyrightText" value="Copyright 2004,2006 - Castle Project (original author or authors)" />
1076 <property name="CopyrightHref" value="http://www.castleproject.org" />
1077 </documenter>
1078 </documenters>
1079 </ndoc>
1080 </target>
1082 <description>Copies all files to be documented to a single location to speed up the documentation process.</description>
1083 <target name="copyFilesToDocument">
1084 <foreach item="Folder" property="foldername">
1085 <in>
1086 <!-- Hardcode projects folders to speed up assemblies search -->
1087 <items>
1088 <include name="${build.dir}"/>
1089 </items>
1090 </in>
1091 <do>
1092 <echo message="${foldername}" />
1094 <foreach item="File" property="file">
1095 <in>
1096 <items>
1097 <include name="${foldername}/Castle.*.dll"/>
1098 <include name="${foldername}/AspectSharp*.dll"/>
1099 <include name="${foldername}/NVelocity.dll"/>
1100 <exclude name="Castle.*.Tests.dll"/>
1101 </items>
1102 </in>
1103 <do>
1104 <property name="xml.file" value="${path::change-extension( file, 'xml' )}"/>
1105 <copy todir="${tempBin.dir}" if="${file::exists( xml.file )}" flatten="true">
1106 <fileset>
1107 <include name="${file}"/>
1108 <include name="${xml.file}"/>
1109 </fileset>
1110 </copy>
1111 </do>
1112 </foreach>
1113 </do>
1114 </foreach>
1115 </target>
1117 <description>Cleans up prior to documentation generation.</description>
1118 <target name="cleanup">
1119 <delete>
1120 <fileset>
1121 <include name="${doc.dir}/**"/>
1122 <exclude name="**/*.chm"/>
1123 </fileset>
1124 </delete>
1125 </target>
1127 </project>