REST client API: Exclude REST quickstarts from build to fix it (SPRNET-1345)
This commit is contained in:
@@ -39,24 +39,24 @@ Rebuilding Solutions using Nant and "solutions.build":
|
||||
|
||||
<target name="Clean">
|
||||
<foreach item="Folder" property="dirname">
|
||||
<in>
|
||||
<items basedir="${root.dir}">
|
||||
<include name="examples/**/obj" />
|
||||
<include name="examples/**/PreCompiledWeb" />
|
||||
<include name="build/VS.NET.*" />
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<delete dir="${dirname}" failonerror="false"/>
|
||||
<sleep seconds="1"/>
|
||||
<delete dir="${dirname}" />
|
||||
</do>
|
||||
<in>
|
||||
<items basedir="${root.dir}">
|
||||
<include name="examples/**/obj" />
|
||||
<include name="examples/**/PreCompiledWeb" />
|
||||
<include name="build/VS.NET.*" />
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<delete dir="${dirname}" failonerror="false"/>
|
||||
<sleep seconds="1"/>
|
||||
<delete dir="${dirname}" />
|
||||
</do>
|
||||
</foreach>
|
||||
<delete>
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="examples/**/bin/**/*.*" />
|
||||
<exclude name="examples/**/bin/*.refresh" />
|
||||
</fileset>
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="examples/**/bin/**/*.*" />
|
||||
<exclude name="examples/**/bin/*.refresh" />
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
@@ -64,18 +64,20 @@ Rebuilding Solutions using Nant and "solutions.build":
|
||||
|
||||
<!-- build examples -->
|
||||
<foreach item="File" property="filename">
|
||||
<in>
|
||||
<items basedir="${root.dir}/examples">
|
||||
<include name="**/*.2003.sln" />
|
||||
<exclude name="**/SpringAir.2003.sln" /> <!-- unfort. doesn't work -->
|
||||
<exclude name="**/Spring.Calculator.2003.sln" /> <!-- need virtual directory to be setup in IIS -->
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<property name="solutionfile" value="${filename}" />
|
||||
<property name="solutionconfiguration" value="${buildconfiguration}" />
|
||||
<call target="RebuildSolution-1.1" />
|
||||
</do>
|
||||
<in>
|
||||
<items basedir="${root.dir}/examples">
|
||||
<include name="**/*.2003.sln" />
|
||||
<exclude name="**/SpringAir.2003.sln" />
|
||||
<!-- unfort. doesn't work -->
|
||||
<exclude name="**/Spring.Calculator.2003.sln" />
|
||||
<!-- need virtual directory to be setup in IIS -->
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<property name="solutionfile" value="${filename}" />
|
||||
<property name="solutionconfiguration" value="${buildconfiguration}" />
|
||||
<call target="RebuildSolution-1.1" />
|
||||
</do>
|
||||
</foreach>
|
||||
|
||||
<!-- build "main" solution (extra call because of configuration 'debug-1.1') -->
|
||||
@@ -94,63 +96,65 @@ Rebuilding Solutions using Nant and "solutions.build":
|
||||
|
||||
|
||||
<foreach item="File" property="filename">
|
||||
<in>
|
||||
<items basedir="${root.dir}">
|
||||
<!-- <include name="examples/Spring/**/*.2005.sln" /> -->
|
||||
<include name="examples/Spring/**/*.2008.sln" />
|
||||
<include name="examples/Spring/Spring.Data.NHibernate/Spring.Northwind.sln" />
|
||||
<!-- Does not build on bamboo server SPRNET-1283 -->
|
||||
<exclude name="examples/Spring/Spring.MsmqQuickStart/**/*.2005.sln"/>
|
||||
<!--
|
||||
<include name="*.2005.sln" />
|
||||
|
||||
-->
|
||||
<include name="*.2008.sln" />
|
||||
<exclude name="Spring.NET.2008.sln"/>
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<property name="solutionfile" value="${filename}" />
|
||||
<property name="solutionconfiguration" value="${buildconfiguration}" />
|
||||
<call target="RebuildSolution-2.0" />
|
||||
</do>
|
||||
<in>
|
||||
<items basedir="${root.dir}">
|
||||
<!-- <include name="examples/Spring/**/*.2005.sln" /> -->
|
||||
<include name="examples/Spring/**/*.2008.sln" />
|
||||
<include name="examples/Spring/Spring.Data.NHibernate/Spring.Northwind.sln" />
|
||||
<!-- Does not build on bamboo server SPRNET-1283 -->
|
||||
<exclude name="examples/Spring/Spring.MsmqQuickStart/**/*.2005.sln"/>
|
||||
<!-- <include name="*.2005.sln" /> -->
|
||||
<include name="*.2008.sln" />
|
||||
<exclude name="Spring.NET.2008.sln"/>
|
||||
<!-- Exclude REST quickstart -->
|
||||
<exclude name="examples/Spring/Spring.HttpMessageConverterQuickStart/**/*.sln"/>
|
||||
<exclude name="examples/Spring/Spring.RestQuickStart/**/*.sln"/>
|
||||
<exclude name="examples/Spring/Spring.RestSilverlightQuickStart/**/*.sln"/>
|
||||
<exclude name="examples/Spring/Spring.RestWindowsPhoneQuickStart/**/*.sln"/>
|
||||
</items>
|
||||
</in>
|
||||
<do>
|
||||
<property name="solutionfile" value="${filename}" />
|
||||
<property name="solutionconfiguration" value="${buildconfiguration}" />
|
||||
<call target="RebuildSolution-2.0" />
|
||||
</do>
|
||||
</foreach>
|
||||
|
||||
<!-- build "main" solution -->
|
||||
<!--
|
||||
<!--
|
||||
<property name="solutionfile" value="${root.dir}/Spring.NET.2005.sln" />
|
||||
<property name="solutionconfiguration" value="${buildconfiguration}" />
|
||||
<call target="RebuildSolution-2.0" />
|
||||
-->
|
||||
-->
|
||||
</target>
|
||||
|
||||
<target name="RebuildSolution-1.1" description="rebuilds a given VS2003 solution file">
|
||||
<!-- "c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe" Spring.NET.2003.sln /rebuild Debug-1.1 /out solutions.build-1.1.log -->
|
||||
<!-- "c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe" Spring.NET.2003.sln /rebuild Debug-1.1 /out solutions.build-1.1.log -->
|
||||
<echo message="Rebuilding .NET 1.1 Solution ${solutionfile}" />
|
||||
<exec program="${devenv11.exe}" basedir="${devenv11.exe}" verbose="true">
|
||||
<arg value="${solutionfile}" />
|
||||
<arg line="/rebuild ${solutionconfiguration}" />
|
||||
<arg line="/out solutions.build-1.1.log" />
|
||||
</exec>
|
||||
<!--
|
||||
<!--
|
||||
<solution configuration="${solutionconfiguration}" solutionfile="${solutionfile}">
|
||||
<webmap>
|
||||
<map url="http://localhost/Spring.Calculator.2003" path="examples\Spring\Spring.Calculator\src\Spring.Calculator.Web.2003" />
|
||||
<map url="http://localhost/SpringAir.2003" path="examples\Spring\SpringAir\src\SpringAir.Web.2003" />
|
||||
</webmap>
|
||||
</solution>
|
||||
-->
|
||||
-->
|
||||
</target>
|
||||
|
||||
<target name="RebuildSolution-2.0" description="rebuilds a given VS2005 solution file">
|
||||
<echo message="Rebuilding .NET 2.0 Solution ${solutionfile}" />
|
||||
<exec program="${msbuild.exe}">
|
||||
<!--
|
||||
<!--
|
||||
<arg value="/property:OutDir=${output.dir}/"/>
|
||||
-->
|
||||
-->
|
||||
<arg value="${solutionfile}"/>
|
||||
<arg line="/nologo" />
|
||||
<arg line="/verbosity:minimal" />
|
||||
<arg line="/verbosity:minimal" />
|
||||
<arg line="/property:Configuration=${solutionconfiguration}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
Reference in New Issue
Block a user