Permalink
Browse files

get sample app working again.

create build process for packaging
API and reference doc generation
  • Loading branch information...
1 parent 9a81189 commit 2353d3c5dd77f4113aba1c4a145a8d47fc379847 @markpollack markpollack committed Jul 16, 2010
Showing 493 changed files with 179,623 additions and 288 deletions.
View
@@ -6,6 +6,15 @@
<property name="build.dir" value="${root.dir}/build" />
<property name="tool.dir" value="${root.dir}/tools" />
<property name="lib.dir" value="${root.dir}/lib" />
+ <property name="package.dir" value="${root.dir}/package" />
+ <property name="doc.dir" value="${root.dir}/doc" />
+
+ <property name="project.majorversion" value="1.0" />
+ <property name="project.patchversion" value="0" overwrite="false" />
+ <property name="project.buildnumber" value="${math::abs(math::floor(timespan::get-total-days(datetime::now() - datetime::parse('01/01/2000'))))}" />
+ <property name="project.version" value="${project.majorversion}.${project.patchversion}.${project.buildnumber}" overwrite="false" />
+ <!-- dev / alpha / beta# / rc# / release -->
+ <property name="project.releasetype" value="dev" overwrite="false" />
<readregistry property="net35.install.dir" key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\InstallPath" hive="LocalMachine" failonerror="true"/>
<property name="msbuild.exe" value="${net35.install.dir}\msbuild.exe"/>
@@ -30,9 +39,41 @@
</target>
<target name="build" depends="clean">
+ <call target="update-common-assemblyinfo" />
<call target="RebuildAllSolutions" />
</target>
+ <target name="update-common-assemblyinfo">
+
+ <!-- ensure src/CommonAssemblyInfo.cs is writable if it already exists -->
+ <attrib file="${root.dir}/src/CommonAssemblyInfo.cs" readonly="false" if="${file::exists('${root.dir}/src/CommonAssemblyInfo.cs')}" />
+ <!-- generate the source file holding the common assembly-level attributes -->
+ <asminfo output="${root.dir}/src/CommonAssemblyInfo.cs" language="CSharp">
+ <imports>
+ <import namespace="System" />
+ <import namespace="System.Reflection" />
+ <import namespace="System.Runtime.InteropServices" />
+ <import namespace="System.Security" />
+ <import namespace="System.Security.Permissions" />
+ </imports>
+ <attributes>
+ <attribute type="CLSCompliantAttribute" value="true" />
+ <attribute type="ComVisibleAttribute" value="false" />
+ <attribute type="AllowPartiallyTrustedCallersAttribute" asis="true"/>
+ <!-- attribute type="SecurityTransparentAttribute" asis="true"/ -->
+ <attribute type="SecurityPermissionAttribute" value="SecurityAction.RequestMinimum" asis="true"/>
+ <attribute type="AssemblyCompanyAttribute" value="http://springsource.org/spring-amqp/" />
+ <attribute type="AssemblyCopyrightAttribute" value="Copyright 2010 SpringSource." />
+ <attribute type="AssemblyTrademarkAttribute" value="Apache License, Version 2.0" />
+ <attribute type="AssemblyCultureAttribute" value="" />
+ <attribute type="AssemblyVersionAttribute" value="${project.version}" />
+ <attribute type="AssemblyConfigurationAttribute" value="${framework::get-target-framework()}.${platform::get-name()}; ${project.releasetype}" />
+ <attribute type="AssemblyInformationalVersionAttribute" value="${project.version}; ${framework::get-target-framework()}.${platform::get-name()}; ${project.releasetype}" />
+ <attribute type="AssemblyDelaySignAttribute" value="false" />
+ </attributes>
+ </asminfo>
+ </target>
+
<target name="test" depends="build">
<call target="TestAllAssemblies" />
</target>
@@ -67,6 +108,125 @@
</foreach>
</target>
+
+ <target name="package-zip" depends="package" description="Build Package distribution as .zip file">
+ <property name="project.zip-path" value="${package.dir}/Common.Logging-${project.version}.zip"/>
+ <zip zipfile="${project.zip-path}">
+ <fileset basedir="${package.dir}">
+ <include name="**/*"/>
+ <exclude name="*.zip"/>
+ </fileset>
+ </zip>
+ </target>
+
+ <target name="package" description="Builds all modules and documentation">
+
+ <!-- clean package dir -->
+ <delete dir="${package.dir}" failonerror="true" />
+
+ <!-- build and copy binaries -->
+ <call target="package.binaries" cascade="false" />
+
+ <!-- copy sources -->
+ <call target="package.sources" cascade="false" />
+
+ <!-- copy reference docs -->
+ <call target="package.doc" cascade="false"/>
+
+ <!-- build tools -->
+ <copy todir="${package.dir}/tools">
+ <fileset basedir="${root.dir}/tools">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+
+ <!-- copy over readme etc. -->
+ <copy todir="${package.dir}" file="${root.dir}/readme.txt"/>
+ <copy todir="${package.dir}" file="${root.dir}/license.txt"/>
+ <copy todir="${package.dir}" file="${root.dir}/changelog.txt"/>
+
+ <!-- TODO: JUST FOR TESTING! -->
+ <!-- copy todir="${package.dir}\modules" file="${project.basedir}/modules/Common.Net.snk"/ -->
+ <!-- copy todir="${package.dir}\modules">
+ <fileset basedir="${project.basedir}\modules">
+ <include name="**/lib/**/Microsoft.*"/>
+ </fileset>
+ </copy -->
+
+ </target>
+
+ <target name="package.binaries" depends1="build">
+ <echo message="hello ${package.dir}/bin/net/2.0/debug"/>
+ <copy todir="${package.dir}/bin/net/2.0/debug" flatten="true" verbose="true">
+ <fileset>
+ <include name="src/Spring.Messaging.Amqp.*/**/Debug/Spring.Messaging.Amqp*.???"/>
+ <include name="src/Spring.Erlang/bin/Debug/Spring.Erlang.???"/>
+ <exclude name="**/*Test*"/>
+ <exclude name="**/*FileListAbsolute*"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="package.sources">
+ <!-- Copy global solution + build files -->
+ <copy todir="${package.dir}">
+ <fileset basedir="${root.dir}">
+ <include name="Spring.Messaging.Amqp.*"/>
+ <exclude name="*.snk"/>
+ <exclude name="*.suo"/>
+ <exclude name="*.user"/>
+ <exclude name="*.cache"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy shared module files -->
+ <copy tofile="${package.dir}/src/CommonAssemblyInfo.cs"
+ file="${root.dir}/src/CommonAssemblyInfo.cs.template"/>
+
+ <!-- Copy Common.Logging sources -->
+ <copy todir="${package.dir}" failonerror="true" >
+ <fileset basedir="${root.dir}">
+ <include name="src/**/*.*"/>
+ <include name="test/**/*.*"/>
+ <include name="examples/**/*.*"/>
+ <exclude name="**/*.user"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="package.doc">
+ <!-- copy reference docs -->
+ <call target="doc" cascade="false"/>
+ <copy todir="${package.dir}/doc/reference/">
+ <fileset basedir="${doc.dir}/reference/target/">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+
+ <!-- copy sdk docs -->
+ <copy todir="${package.dir}/doc/api/html">
+ <fileset basedir="${root.dir}/bin/DocumentX/">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+ <copy todir="${package.dir}/doc/api/htmlhelp">
+ <fileset basedir="${root.dir}/bin/">
+ <include name="*.chm"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="doc">
+ <call target="doc-reference" cascade="false" />
+ <!--
+ <call target="doc-sdk" cascade="false" />
+ -->
+ </target>
+
+ <target name="doc-reference">
+ <nant buildfile="${doc.dir}/reference/docbook.build" target="all" />
+ </target>
+
<target name="common.run-tests">
<call target="common.run-tests.nunit" />
<!--
View
@@ -0,0 +1,19 @@
+SPRING AMQP .NET CHANGELOG
+==================================
+http://springsource.org/spring-amqp
+
+Release Version 1.0.0 M1 July 15, 2010
+
+Release Notes - Spring AMQP .NET - Version 1.0.0 M1
+
+New Feature
+ AMQP domain abstractions
+ Erlang Helper library
+ Rabbit Connection Factory
+ RabbitTemplate
+ MessageListenerContainer
+ Rabbit Broker Administration
+
+
+
+
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<DocumentXComments Version="5.00" DocType="dx.Net" Moniker="L:\projects\spring-amqp-net\bin\Spring.Erlang.dll" ShowInherited="False" Template="" LoadPrivate="False" LoadOnDemand="True" RelatedProject="Spring.Messaging.Amqp-1.0.dxp"/>
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<DocumentXProject Version="5.0" CompileHelpFile="True" RefreshIfExists="False" DocumentSourceCode="False" AlwaysCopySupportFiles="True" PropertyCommentsFrom="0" RelationshipsFrom="2" DefaultRelsOnlyForCollections="True" ProjectGroupName="" HTMLHelpVersion="1" HHNamespace="Spring.Messaging.Amqp.Rabbit" HHIdentifier="" H2PlugIn="False" H2PlugInNamespace="" LocaleID="0" ExcludeFiltersRegExp="False" OutputFileExtension=".html">
+ <OutputLocation OutputFolder="L:\projects\spring-amqp-net\bin\DocumentX" HelpFileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Rabbit.chm" UseFilenameAliases="False" StripMetadata="False" ClearBeforeBuild="False" RemoveOutputFilesAfterCompile="False"/>
+ <HTMLHelpOptions UseALinkMenus="False"/>
+ <OtherOptions CreateContextLinks="True" WriteHelpDescriptions="True" CopySourceCode="False" CreateWinHelpStub="False" Language="English"/>
+ <IncludeFilters IncludePrivate="False" IncludeFriend="False" IncludeProtected="True" IdentifyVisibility="False">
+ <Namespaces>
+ <Property Name="DX.NET:Method">True</Property>
+ <Property Name="DX.NET:Property">True</Property>
+ <Property Name="DX.NET:Field">True</Property>
+ <Property Name="DX.NET:Event">True</Property>
+ <Property Name="DX.NET:Constructor">True</Property>
+ <Property Name="DX.NET:Operator">True</Property>
+ </Namespaces>
+ </IncludeFilters>
+ <CommentExtraction UnTaggedBlocks="False" UnTaggedEnumerations="False" UnTaggedEvents="False" UnTaggedModules="False" UnTaggedUDTs="False" UnTaggedVariables="False" HelpDescriptionImport="1"/>
+ <Diagrams PageNestingLevels="2" OverviewNestingLevels="3" SupressSingleObjectDiagrams="True" DiagramStyleSource="0" ObjFillColor="0" ObjTextColor="0" ObjBorderColor="0" ColFillColor="0" ColTextColor="0" ColBorderColor="0" UseDropShadow="False" CenterCaptions="False" DiagramBold="False" BorderWidth="0" UseDiagramShapes="False"/>
+ <VariableValues>
+ <VariableValue Name="FeedbackLink" Value="&lt;a href=&quot;mailto:mpollack@vmware.com?subject=Documentation Feedback: %%FileName%%&quot;&gt;Send Feedback&lt;/a&gt;"/>
+ </VariableValues>
+ <AdditionalFiles/>
+ <ModelComments/>
+ <IgnoreRelationships/>
+ <NamespaceExclusions>
+ <e>Spring.Messaging.Amqp~__Delegates</e>
+ <e>Spring.Messaging.Amqp.Rabbit~__Delegates</e>
+ <e>Spring.Messaging.Amqp.Rabbit~Spring.Messaging.Amqp.Rabbit.Core.RabbitTemplate+RabbitTemplateResourceFactory</e>
+ <e>Spring.Messaging.Amqp.Rabbit~Spring.Messaging.Amqp.Rabbit.Listener.MessageRejectedWhileStoppingException</e>
+ <e>Spring.Messaging.Amqp.Rabbit~Spring.Messaging.Amqp.Rabbit.Listener.Adapter.DestinationNameHolder</e>
+ <e>Spring.Erlang~__Delegates</e>
+ <e>Spring.Messaging.Amqp.Qpid-0-10-06~__Delegates</e>
+ <e>Spring.Messaging.Amqp.Qpid-0-10-06~Spring.Messaging.Amqp.Qpid.Core.QpidTemplate+QpidTemplateResourceFactory</e>
+ </NamespaceExclusions>
+ <DotNetProperties IncludeRelationshipDiagrams="True" IncludeInheritanceHierarchies="True" IncludeBaseMembers="False" StandardInterfaces="System.*,Microsoft.*" OnlyLinkInherited="True" ExternalDocs="True" UseCommentFiles="True" DrillCommentFiles="True" GenerateXMLLinks="False" XMLIsland="" NoInheritedTopics="True" NoInheritedInLists="False" CreateXMLCommentFile="False" ExcludedLanguages="VB,VBUsage,Delphi,JScript,CPP,CPP2005" GenerateAttributes="True" AttributeFilter="" AttributeFilterInclude="False" VBNETDefaultConstructor="False" LinkOverridenMembersToBaseImplementation="False" UseOverloadSummaryForMasterSummary="True" ExcludeEditorBrowsable="True" GenerateBreadCrumbs="True" IncludeAssemblyBreadCrumb="False"/>
+ <DatabaseProperties DocumentViewSource="True" DocumentTriggerSource="True" DocumentProcedureSource="True" RetainTaggedComments="False"/>
+ <XSDProperties UseCustomSettings="False" PageNestingLevels="2" SuppressSingleObjectDiagrams="True" ElementFillColor="15780518" ElementTextColor="0" ElementBorderColor="10789024" ElementBorders="True" ElementRefFillColor="12648447" ElementRefTextColor="0" ElementRefBorderColor="10789024" ElementRefBorders="True" ComplexTypeFillColor="15780518" ComplexTypeTextColor="0" ComplexTypeBorderColor="10789024" ComplexTypeBorders="True" AnyFillColor="13421772" AnyTextColor="0" AnyBorderColor="10789024" AnyBorders="True" NotationTextColor="8421504" RootLinesColor="10789024" DropShadows="False" BoldCaptions="True" GroupParticleSequenceImageFilename="K:\Program Files\Innovasys\documentx5\Configuration\Templates\XMLSchema\xDiagramImages\sequence.gif" GroupParticleChoiceImageFilename="K:\Program Files\Innovasys\documentx5\Configuration\Templates\XMLSchema\xDiagramImages\choice.gif" GroupParticleAllImageFilename="K:\Program Files\Innovasys\documentx5\Configuration\Templates\XMLSchema\xDiagramImages\all.gif"/>
+ <CommentFiles>
+ <CommentFile FileName="Spring.Erlang.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Erlang.dll"/>
+ <CommentFile FileName="Spring.Messaging.Amqp.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.dll"/>
+ <CommentFile FileName="Spring.Messaging.Amqp.Qpid-0-8-0.6.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Qpid-0-8-0.6.dll"/>
+ <CommentFile FileName="Spring.Messaging.Amqp.Qpid-0-10-06.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Qpid-0-10-06.dll"/>
+ <CommentFile FileName="Spring.Messaging.Amqp.Rabbit.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Rabbit.dll"/>
+ <CommentFile FileName="Spring.Messaging.Amqp.Rabbit.Admin.dxc" DocType="dx.net" ItemMoniker="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Rabbit.Admin.dll"/>
+ </CommentFiles>
+ <CommunityExtensions CommunityProjectKey="" Enabled="false" ServerType="0" URL="" HostingId="" UseLocalProxyURL="false" LocalProxyURL=""/>
+ <DocType Name="dx.net" Template="Visual Studio 2008 Style" UseHelpTemplates="False">
+ <TOCSource TOCSource="0" SpecificTOCName=""/>
+ <ModelCommentProfile Version="6.0" Namespace="dx.net" Name="" Description=""/>
+ </DocType>
+ <NetAssemblies RootAssemblyName="">
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Erlang.dll" mRootModule="" AssemblyName="Spring.Erlang" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.dll" mRootModule="" AssemblyName="Spring.Messaging.Amqp" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Qpid-0-8-0.6.dll" mRootModule="" AssemblyName="Spring.Messaging.Amqp.Qpid-0-8-0.6" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Qpid-0-10-06.dll" mRootModule="" AssemblyName="Spring.Messaging.Amqp.Qpid-0-10-06" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Rabbit.dll" mRootModule="" AssemblyName="Spring.Messaging.Amqp.Rabbit" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ <Assembly Version="5.0" FileName="L:\projects\spring-amqp-net\bin\Spring.Messaging.Amqp.Rabbit.Admin.dll" mRootModule="" AssemblyName="Spring.Messaging.Amqp.Rabbit.Admin" AssemblyType="1" ExamplesOnly="False" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivateItems="True"/>
+ </NetAssemblies>
+ <PropertyBag/>
+</DocumentXProject>
Oops, something went wrong.

0 comments on commit 2353d3c

Please sign in to comment.