Removed #if DOTNET2's and VS2003 projects/solutions.
[castle.git] / default.build
blobcbdc7dee19f07279e8e0ce8bd1d6938a3f135e66
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>
662 <zip zipfile="${root.dir}/samplesforwebsite/MonoRail.DiggStylePagination.zip">
663 <fileset basedir="${root.dir}/Samples/MonoRail/DiggPaginationSample">
664 <include name="**/*.build" />
665 <include name="**/*.sln" />
666 <include name="**/*.cs" />
667 <include name="**/*.ico" />
668 <include name="**/*.csproj" />
669 <include name="**/*.xml" />
670 <include name="**/*.config" />
671 <include name="**/*.lang" />
672 <include name="**/*.txt" />
673 <include name="**/*.inc" />
674 <include name="**/*.vm" />
675 <include name="*.snk" />
676 <exclude name="**/bin/*" />
677 <exclude name="**/bin/Debug/*" />
678 <exclude name="**/bin/Release/*" />
679 <exclude name="**/obj/*" />
680 <exclude name="**.user" />
681 <exclude name="**/_Resharper.*/*" />
682 </fileset>
683 </zip>
686 <zip zipfile="${root.dir}/samplesforwebsite/Windsor.TimeTracking.zip">
687 <fileset basedir="${root.dir}/Samples/InversionOfControl/TimeTracking">
688 <include name="**/*.build" />
689 <include name="**/*.sln" />
690 <include name="**/*.cs" />
691 <include name="**/*.ico" />
692 <include name="**/*.csproj" />
693 <include name="**/*.xml" />
694 <include name="**/*.config" />
695 <include name="**/*.lang" />
696 <include name="**/*.txt" />
697 <include name="**/*.inc" />
698 <include name="**/*.vm" />
699 <include name="**/*.resx" />
700 <include name="**/*.aspx" />
701 <include name="**/*.asax" />
702 <include name="*.snk" />
703 <exclude name="**/bin/*" />
704 <exclude name="**/bin/Debug/*" />
705 <exclude name="**/bin/Release/*" />
706 <exclude name="**/obj/*" />
707 <exclude name="**.user" />
708 <exclude name="**/_Resharper.*/*" />
709 </fileset>
710 </zip>
711 <zip zipfile="${root.dir}/samplesforwebsite/CustomTypeConverterSample.zip">
712 <fileset basedir="${root.dir}/Samples/InversionOfControl/CustomTypeConverterSample">
713 <include name="**/*.build" />
714 <include name="**/*.sln" />
715 <include name="**/*.cs" />
716 <include name="**/*.ico" />
717 <include name="**/*.csproj" />
718 <include name="**/*.xml" />
719 <include name="**/*.config" />
720 <include name="**/*.lang" />
721 <include name="**/*.txt" />
722 <include name="**/*.inc" />
723 <include name="**/*.vm" />
724 <include name="**/*.resx" />
725 <include name="**/*.aspx" />
726 <include name="**/*.asax" />
727 <include name="*.snk" />
728 <exclude name="**/bin/*" />
729 <exclude name="**/bin/Debug/*" />
730 <exclude name="**/bin/Release/*" />
731 <exclude name="**/obj/*" />
732 <exclude name="**.user" />
733 <exclude name="**/_Resharper.*/*" />
734 </fileset>
735 </zip>
736 <zip zipfile="${root.dir}/samplesforwebsite/FacilitySample2.zip">
737 <fileset basedir="${root.dir}/Samples/InversionOfControl/ExtendingSample2">
738 <include name="**/*.build" />
739 <include name="**/*.sln" />
740 <include name="**/*.cs" />
741 <include name="**/*.ico" />
742 <include name="**/*.csproj" />
743 <include name="**/*.xml" />
744 <include name="**/*.config" />
745 <include name="**/*.lang" />
746 <include name="**/*.txt" />
747 <include name="**/*.inc" />
748 <include name="**/*.vm" />
749 <include name="**/*.resx" />
750 <include name="**/*.aspx" />
751 <include name="**/*.asax" />
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>
761 <zip zipfile="${root.dir}/samplesforwebsite/GettingStartedPart1.zip">
762 <fileset basedir="${root.dir}/Samples/InversionOfControl/GettingStarted/GettingStartedPart1">
763 <include name="**/*.build" />
764 <include name="**/*.sln" />
765 <include name="**/*.cs" />
766 <include name="**/*.ico" />
767 <include name="**/*.csproj" />
768 <include name="**/*.xml" />
769 <include name="**/*.config" />
770 <include name="**/*.lang" />
771 <include name="**/*.txt" />
772 <include name="**/*.inc" />
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>
784 <zip zipfile="${root.dir}/samplesforwebsite/KernelInOneEndPoint.Sample.zip">
785 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelInOneEndPoint">
786 <include name="**/*.build" />
787 <include name="**/*.sln" />
788 <include name="**/*.cs" />
789 <include name="**/*.ico" />
790 <include name="**/*.csproj" />
791 <include name="**/*.xml" />
792 <include name="**/*.config" />
793 <include name="**/*.txt" />
794 <include name="**/*.vm" />
795 <include name="**/*.resx" />
796 <include name="*.snk" />
797 <exclude name="**/bin/*" />
798 <exclude name="**/bin/Debug/*" />
799 <exclude name="**/bin/Release/*" />
800 <exclude name="**/obj/*" />
801 <exclude name="**.user" />
802 <exclude name="**/_Resharper.*/*" />
803 </fileset>
804 </zip>
805 <zip zipfile="${root.dir}/samplesforwebsite/KernelOnBothEndPoints.Sample.zip">
806 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/KernelOnBothEndPoints">
807 <include name="**/*.build" />
808 <include name="**/*.sln" />
809 <include name="**/*.cs" />
810 <include name="**/*.ico" />
811 <include name="**/*.csproj" />
812 <include name="**/*.xml" />
813 <include name="**/*.config" />
814 <include name="**/*.txt" />
815 <include name="**/*.vm" />
816 <include name="**/*.resx" />
817 <include name="*.snk" />
818 <exclude name="**/bin/*" />
819 <exclude name="**/bin/Debug/*" />
820 <exclude name="**/bin/Release/*" />
821 <exclude name="**/obj/*" />
822 <exclude name="**.user" />
823 <exclude name="**/_Resharper.*/*" />
824 </fileset>
825 </zip>
826 <zip zipfile="${root.dir}/samplesforwebsite/ContainersConnected.Sample.zip">
827 <fileset basedir="${root.dir}/Samples/Facilities/Remoting/ContainersConnected">
828 <include name="**/*.build" />
829 <include name="**/*.sln" />
830 <include name="**/*.cs" />
831 <include name="**/*.ico" />
832 <include name="**/*.csproj" />
833 <include name="**/*.xml" />
834 <include name="**/*.config" />
835 <include name="**/*.txt" />
836 <include name="**/*.vm" />
837 <include name="**/*.resx" />
838 <include name="*.snk" />
839 <exclude name="**/bin/*" />
840 <exclude name="**/bin/Debug/*" />
841 <exclude name="**/bin/Release/*" />
842 <exclude name="**/obj/*" />
843 <exclude name="**.user" />
844 <exclude name="**/_Resharper.*/*" />
845 </fileset>
846 </zip>
847 </target>
849 <target name="zip-samples">
850 <zip zipfile="${build.base.dir}/ActiveRecord-Samples.zip">
851 <fileset basedir="${root.dir}/Samples/ActiveRecord">
852 <include name="**/*.build" />
853 <include name="**/*.sln" />
854 <include name="**/*.cs" />
855 <include name="**/*.ico" />
856 <include name="**/*.csproj" />
857 <include name="**/*.xml" />
858 <include name="**/*.config" />
859 <include name="**/*.lang" />
860 <include name="**/*.txt" />
861 <include name="**/*.inc" />
862 <include name="**/*.vm" />
863 <include name="**/*.resx" />
864 <include name="**/*.aspx" />
865 <include name="**/*.asax" />
866 <include name="**/*.sql" />
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}/Facilities-Samples.zip">
877 <fileset basedir="${root.dir}/Samples/Facilities">
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}/InversionOfControl-Samples.zip">
899 <fileset basedir="${root.dir}/Samples/InversionOfControl">
900 <include name="**/*.build" />
901 <include name="**/*.sln" />
902 <include name="**/*.cs" />
903 <include name="**/*.ico" />
904 <include name="**/*.csproj" />
905 <include name="**/*.xml" />
906 <include name="**/*.config" />
907 <include name="**/*.lang" />
908 <include name="**/*.txt" />
909 <include name="**/*.inc" />
910 <include name="**/*.vm" />
911 <include name="*.snk" />
912 <exclude name="**/bin/*" />
913 <exclude name="**/bin/Debug/*" />
914 <exclude name="**/bin/Release/*" />
915 <exclude name="**/obj/*" />
916 <exclude name="**.user" />
917 <exclude name="**/_Resharper.*/*" />
918 </fileset>
919 </zip>
920 <zip zipfile="${build.base.dir}/MonoRail-Samples.zip">
921 <fileset basedir="${root.dir}/Samples/MonoRail">
922 <include name="**/*.build" />
923 <include name="**/*.sln" />
924 <include name="**/*.cs" />
925 <include name="**/*.css" />
926 <include name="**/*.gif" />
927 <include name="**/*.png" />
928 <include name="**/*.jpg" />
929 <include name="**/*.js" />
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 <zip zipfile="${build.base.dir}/Castle-Samples.zip">
948 <fileset basedir="${root.dir}/Samples/Castle">
949 <include name="**/*.build" />
950 <include name="**/*.sln" />
951 <include name="**/*.cs" />
952 <include name="**/*.ico" />
953 <include name="**/*.csproj" />
954 <include name="**/*.xml" />
955 <include name="**/*.config" />
956 <include name="**/*.lang" />
957 <include name="**/*.txt" />
958 <include name="**/*.inc" />
959 <include name="**/*.vm" />
960 <include name="*.snk" />
961 <exclude name="**/bin/*" />
962 <exclude name="**/bin/Debug/*" />
963 <exclude name="**/bin/Release/*" />
964 <exclude name="**/obj/*" />
965 <exclude name="**.user" />
966 <exclude name="**/_Resharper.*/*" />
967 </fileset>
968 </zip>
969 </target>
971 <target name="zip-source">
972 <zip zipfile="${build.base.dir}/castle-sourcecode.zip">
973 <fileset basedir="${root.dir}">
974 <include name="**/*.build" />
975 <include name="**/*.sln" />
976 <include name="**/*.cs" />
977 <include name="**/*.ico" />
978 <include name="**/*.csproj" />
979 <include name="**/*.xml" />
980 <include name="**/*.config" />
981 <include name="**/*.lang" />
982 <include name="**/*.txt" />
983 <include name="**/*.inc" />
984 <include name="**/*.vm" />
985 <include name="**/*.gif" />
986 <include name="**/*.resx" />
987 <include name="**/*.boo" />
988 <include name="**/*.booproj" />
989 <include name="**/*.prjx" />
990 <include name="**/*.cmbx" />
991 <exclude name="**/obj/" />
992 <exclude name="**/obj/**/*.*" />
993 <exclude name="**/bin*/**/*.*" />
994 <exclude name="**/temp/**/*.*" />
995 <exclude name="**/*.user" />
996 <exclude name="**/_ReSharper.*" />
997 <exclude name="**/_ReSharper.*/**/*.*" />
998 <exclude name="**/*.suo" />
999 <exclude name="SharedLibs/**/*.*" />
1000 <exclude name="Samples/**/*.*" />
1001 <exclude name="Experiments/**/*.*" />
1002 <exclude name="build/**/*.*" />
1003 <exclude name="Rook/**/*.*" />
1004 <exclude name="setup/*.*" />
1005 <exclude name="Tools/VSNetWizards/**/*.*" />
1006 <exclude name="Tools/SubversionHooks/**/*.*" />
1007 <exclude name="Tools/ManagedExtensions/**/*.*" />
1008 <exclude name="Tools/Castle.DynamicProxy2/**/*.*" />
1009 <exclude name="Tools/DynamicProxy2/**/*.*" />
1010 </fileset>
1011 </zip>
1012 </target>
1014 <description>Documentation generation.</description><property name="root.dir" value="." />
1015 <property name="doc.dir" value="${root.dir}/docs" />
1016 <property name="tempBin.dir" value="${doc.dir}/bin"/>
1017 <property name="outputDocs.file" value="Castle"/>
1019 <description>Docs generation properties.</description>
1020 <property name="ShowMissing" value="false"/>
1021 <property name="ShowPrivate" value="false"/>
1022 <property name="OutputTarget" value="HTMLHelp"/>
1024 <description>Generates documentation with default properties.</description>
1025 <target name="releaseDocs" depends="init,cleanup">
1026 <call target="copyFilesToDocument"/>
1027 <call target="generateReleaseDocs"/>
1028 </target>
1030 <description>Generates documentation for developers, with all missing information indicated and private members visible.</description>
1031 <target name="devDocs" depends="cleanup">
1032 <property name="ShowMissing" value="true"/>
1033 <property name="ShowPrivate" value="true"/>
1034 <property name="outputDocs.file" value="CastleDev"/>
1035 <call target="copyFilesToDocument"/>
1036 <call target="generateReleaseDocs"/>
1037 </target>
1039 <description>Generates documentation for release.</description>
1040 <target name="generateReleaseDocs">
1041 <ndoc failonerror="true">
1042 <assemblies basedir="${tempBin.dir}">
1043 <include name="Castle.*.dll"/>
1044 </assemblies>
1045 <referencepaths>
1046 <include name="ActiveRecord/lib"/>
1047 <include name="AspectSharp/bin"/>
1048 <include name="Monorail/lib"/>
1049 <include name="Tools/DynamicProxy/bin"/>
1050 <include name="Tools/NVelocity/bin"/>
1052 <!-- Components -->
1053 <include name="SharedLibs/Prevalence"/>
1054 <include name="SharedLibs/Db4o/net-1.1"/>
1055 <include name="SharedLibs/IBatis"/>
1056 <include name="SharedLibs/NHibernate"/>
1057 <include name="SharedLibs/boo"/>
1058 <include name="SharedLibs/cassini"/>
1059 <include name="SharedLibs/log4net"/>
1060 <include name="SharedLibs/netron"/>
1061 <include name="SharedLibs/Nlog"/>
1062 <include name="SharedLibs/log4net"/>
1063 <include name="SharedLibs/Nvelocity"/>
1064 <include name="SharedLibs/stringtemplate/net-1.1"/>
1065 </referencepaths>
1066 <documenters>
1067 <documenter name="MSDN">
1068 <property name="OutputTarget" value="${OutputTarget}" />
1069 <property name="Preliminary" value="true" />
1070 <property name="BinaryTOC" value="true" />
1071 <property name="CleanIntermediates" value="true" />
1072 <property name="SdkLinksOnWeb" value="true" />
1074 <property name="OutputDirectory" value="${doc.dir}" />
1075 <property name="HtmlHelpName" value="${outputDocs.file}" />
1076 <property name="IncludeFavorites" value="True" />
1077 <property name="SplitTOCs" value="False" />
1079 <property name="Title" value="Castle API documentation" />
1080 <property name="DefaulTOC" value="Castle.MicroKernel" />
1082 <property name="ShowVisualBasic" value="True" />
1083 <property name="ShowMissingSummaries" value="${ShowMissing}" />
1084 <property name="ShowMissingRemarks" value="${ShowMissing}" />
1085 <property name="ShowMissingParams" value="${ShowMissing}" />
1086 <property name="ShowMissingReturns" value="${ShowMissing}" />
1087 <property name="ShowMissingValues" value="${ShowMissing}" />
1088 <property name="DocumentEmptyNamespaces" value="${ShowMissing}" />
1090 <property name="AutoPropertyBackerSummaries" value="true" />
1091 <property name="AutoDocumentConstructors" value="true" />
1092 <property name="DocumentProtected" value="True" />
1093 <property name="DocumentInternals" value="${ShowPrivate}" />
1094 <property name="DocumentPrivates" value="${ShowPrivate}" />
1096 <property name="IncludeAssemblyVersion" value="True" />
1097 <property name="CopyrightText" value="Copyright 2004,2006 - Castle Project (original author or authors)" />
1098 <property name="CopyrightHref" value="http://www.castleproject.org" />
1099 </documenter>
1100 </documenters>
1101 </ndoc>
1102 </target>
1104 <description>Copies all files to be documented to a single location to speed up the documentation process.</description>
1105 <target name="copyFilesToDocument">
1106 <foreach item="Folder" property="foldername">
1107 <in>
1108 <!-- Hardcode projects folders to speed up assemblies search -->
1109 <items>
1110 <include name="${build.dir}"/>
1111 </items>
1112 </in>
1113 <do>
1114 <echo message="${foldername}" />
1116 <foreach item="File" property="file">
1117 <in>
1118 <items>
1119 <include name="${foldername}/Castle.*.dll"/>
1120 <include name="${foldername}/AspectSharp*.dll"/>
1121 <include name="${foldername}/NVelocity.dll"/>
1122 <exclude name="Castle.*.Tests.dll"/>
1123 </items>
1124 </in>
1125 <do>
1126 <property name="xml.file" value="${path::change-extension( file, 'xml' )}"/>
1127 <copy todir="${tempBin.dir}" if="${file::exists( xml.file )}" flatten="true">
1128 <fileset>
1129 <include name="${file}"/>
1130 <include name="${xml.file}"/>
1131 </fileset>
1132 </copy>
1133 </do>
1134 </foreach>
1135 </do>
1136 </foreach>
1137 </target>
1139 <description>Cleans up prior to documentation generation.</description>
1140 <target name="cleanup">
1141 <delete>
1142 <fileset>
1143 <include name="${doc.dir}/**"/>
1144 <exclude name="**/*.chm"/>
1145 </fileset>
1146 </delete>
1147 </target>
1149 </project>