@@ -113,13 +113,13 @@ Commandline Examples:
113
113
<property name =" spring.nonredistdir" value =" ${spring.basedir}\..\..\nonredist" />
114
114
<property name =" tool.dir" value =" ${project::get-base-directory()}\build-support\tools" />
115
115
<property name =" nuget.exe" value =" ${tool.dir}\NuGet\NuGet.exe" />
116
-
116
+
117
117
<!-- Support for Windows XP in other languages. In Portuguese, for example, is "c:\Arquivos de Programs"-->
118
118
<property name =" programfiles" value =" C:\Program Files" />
119
119
<property name =" programfilesx86" value =" C:\Program Files (x86)" />
120
120
<property name =" programfiles" value =" ${environment::get-variable('ProgramFiles')}" failonerror =" false" />
121
121
<property name =" programfilesx86" value =" ${environment::get-variable('ProgramFiles(x86)')}" failonerror =" false" />
122
-
122
+
123
123
<!-- build SDK docs with NDoc -->
124
124
<property name =" doc.sdk" value =" false" />
125
125
@@ -139,7 +139,7 @@ Commandline Examples:
139
139
<property name =" project.build.config" value =" debug" />
140
140
<property name =" project.build.package" value =" false" />
141
141
<property name =" project.build.sign" value =" false" overwrite =" false" />
142
-
142
+
143
143
<property name =" test.withcoverage" value =" true" overwrite =" false" />
144
144
<!-- what coverage tool to use: ncover or opencover -->
145
145
<property name =" test.coverage.tool" value =" opencover" overwrite =" false" />
@@ -167,7 +167,7 @@ Commandline Examples:
167
167
168
168
<property name =" package.buildincrement" value =" 000" overwrite =" false" />
169
169
<call target =" check-package.passedbuildincrement" />
170
-
170
+
171
171
<sysinfo failonerror =" false" />
172
172
173
173
<property name =" project.company" value =" SpringSource" />
@@ -195,7 +195,7 @@ Commandline Examples:
195
195
<property name =" package.buildincrement" value =" ${string::substring(package.passedbuildincrement, string::get-length(package.passedbuildincrement) -3, 3)}" overwrite =" true" />
196
196
</if >
197
197
</target >
198
-
198
+
199
199
<!-- call target="set-framework-configuration"/ -->
200
200
<call target =" set-user-overrides" />
201
201
@@ -313,20 +313,20 @@ Commandline Examples:
313
313
<call target="compile-build-3.5"/>
314
314
<call target="compile-build-4.0"/>
315
315
<call target="compile-build-4.5"/>
316
-
316
+
317
317
<call target="compile-build-mono-2.0"/>
318
318
319
319
</target>
320
320
-->
321
321
322
322
<target name =" restore-nuget-packages" description =" Restores NuGet packages that solution(s) reference" >
323
323
324
- <exec
324
+ <exec
325
325
program =" ${nuget.exe}"
326
- commandline =" restore .nuget/packages.config -SolutionDirectory ${spring.basedir}"
326
+ commandline =" restore .nuget/packages.config -SolutionDirectory ${spring.basedir}"
327
327
workingdir =" ${spring.basedir}"
328
328
failonerror =" true" />
329
-
329
+
330
330
<foreach item =" File" property =" filename" >
331
331
<in >
332
332
<items basedir =" ${spring.basedir}" >
@@ -380,17 +380,17 @@ Commandline Examples:
380
380
<if test =" ${directory::exists(test.bin.dir) == false}" >
381
381
<property name =" test.bin.dir" value =" ${path}/net461" />
382
382
</if >
383
-
383
+
384
384
<property name =" test.assemblyname" value =" ${string::substring(path, string::last-index-of(path, '\') + 1, string::get-length(path) - string::last-index-of(path, '\') - 1)}" />
385
385
<property name =" test.assemblyfile" value =" ${test.assemblyname}.dll" />
386
386
<property name =" test.assemblyname.tocover" value =" ${string::substring(test.assemblyname,0,string::last-index-of(test.assemblyname, '.Tests') )}" />
387
387
<call target =" common.run-tests" />
388
388
</do >
389
- </foreach >
390
-
389
+ </foreach >
390
+
391
391
<!-- run .NET Core separately for now -->
392
392
<call target =" compile-test-netcore" />
393
-
393
+
394
394
<!-- build coverage summary -->
395
395
<exec program =" ${tool.dir}/ncoverexplorer/ncoverexplorer.console.exe" workingdir =" ${current.bin.dir}" failonerror =" false" if =" ${test.coverage.tool == 'ncover' and test.withcoverage}" >
396
396
<arg value =" /xml:" ${current.bin.dir}/TestCoverageSummary.xml" " />
@@ -428,18 +428,18 @@ Commandline Examples:
428
428
<arg line =" test" />
429
429
<arg line =" /nodeReuse:false" />
430
430
<arg line =" -c ${current.build.config}" />
431
- <arg line =" -f net5 .0" />
431
+ <arg line =" -f net6 .0" />
432
432
<arg line =" ${file}" />
433
433
</exec >
434
434
</do >
435
- </foreach >
435
+ </foreach >
436
436
</target >
437
-
437
+
438
438
<target name =" compile-net-4.5" description =" Builds .NET Framework 4.5 version"
439
439
depends =" set-net-4.5-runtime-configuration, check-spring-basedir, restore-nuget-packages" >
440
-
440
+
441
441
<property name =" test.withcoverage" value =" false" overwrite =" true" />
442
-
442
+
443
443
<if test =" ${property::exists('mstest.exe')}" >
444
444
<property name =" mstest.exe.current" value =" ${property::get-value('mstest.exe')}" />
445
445
<!-- <property name="mstest.exe.current" value="${string::replace(property::get-value('mstest.exe'), 'Microsoft Visual Studio 10.0', 'Microsoft Visual Studio 9.0')}" /> -->
@@ -448,7 +448,7 @@ Commandline Examples:
448
448
<property name =" vs-net.mstest.bin.dir.current" value =" ${property::get-value('vs-net.mstest.bin.dir')}" />
449
449
<!-- <property name="vs-net.mstest.bin.dir.current" value="${string::replace(property::get-value('vs-net.mstest.bin.dir'), 'Microsoft Visual Studio 10.0', 'Microsoft Visual Studio 9.0')}" /> -->
450
450
</if >
451
-
451
+
452
452
<call target =" copykeys" if =" ${project.build.sign}" />
453
453
<call target =" common.generate-assemblyinfo" />
454
454
@@ -458,7 +458,7 @@ Commandline Examples:
458
458
<property name =" build-msmq" value =" true" overwrite =" true" />
459
459
<property name =" build-msmq-tests" value =" true" overwrite =" true" />
460
460
<property name =" build-velocity" value =" true" overwrite =" true" />
461
-
461
+
462
462
<property name =" lib.dir" value =" ${spring.basedir}/lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}" />
463
463
<if test =" ${nant.settings.currentframework == 'net-4.5'}" >
464
464
<property name =" lib.dir" value =" ${spring.basedir}/lib/net/4.0" />
@@ -474,11 +474,11 @@ Commandline Examples:
474
474
<!-- Specifying mandatory property in SDK 7-->
475
475
<arg line =' /property:Platform="Any CPU"' />
476
476
</exec >
477
-
477
+
478
478
<call target =" copylibs" />
479
479
<call target =" compile-test" />
480
- </target >
481
-
480
+ </target >
481
+
482
482
<target name =" compile-mono-2.0" description =" Builds MONO Framework 2.0 version"
483
483
depends =" set-mono-2.0-runtime-configuration, check-spring-basedir" >
484
484
<call target =" copykeys" if =" ${project.build.sign}" />
@@ -538,7 +538,7 @@ Commandline Examples:
538
538
<echo message =" Current lib20 dir = ${lib20.dir}" />
539
539
<echo message =" Current lib dir = ${lib.dir}" />
540
540
<mkdir dir =" ${lib.dir}" failonerror =" false" />
541
-
541
+
542
542
<copy todir =" ${lib.dir}" verbose =" ${copy-verbose}" >
543
543
<fileset basedir =" ${lib20.dir}" >
544
544
<include name =" *.dll" />
@@ -549,15 +549,15 @@ Commandline Examples:
549
549
</fileset >
550
550
</copy >
551
551
</target >
552
-
552
+
553
553
<!-- Top level targets -->
554
554
<!-- target for developers to do just debug build and test everything in CVS -->
555
555
<target name =" test" description =" build and test" >
556
556
<echo message =" Compiling debug configuration for all runtime configurations." />
557
557
<property name =" nant.target.root.name" value =" build" />
558
558
<call target =" build-all-function" />
559
559
</target >
560
-
560
+
561
561
<target name =" build-4.5" >
562
562
<call target =" set-build-namespaces-release" />
563
563
<echo message =" ------------------------" />
@@ -574,7 +574,7 @@ Commandline Examples:
574
574
<call target =" set-release-build-configuration" />
575
575
<call target =" compile-build-4.5" />
576
576
</if >
577
- </target >
577
+ </target >
578
578
579
579
<target name =" build-mono-2.0" if =" false" >
580
580
@@ -720,9 +720,9 @@ Commandline Examples:
720
720
<!-- build all binaries -->
721
721
<call target =" build-all-function" />
722
722
<call target =" package-cvs" />
723
-
723
+
724
724
<call target =" upload-cvs-release" />
725
-
725
+
726
726
</target >
727
727
728
728
<target name =" build-all-function" description =" Build what is in cvs taking into account approrpiate clr versions and root target name" >
@@ -731,7 +731,7 @@ Commandline Examples:
731
731
<call target =" build-solutions" />
732
732
733
733
</target >
734
-
734
+
735
735
<target name =" daily-build-4.5" >
736
736
<call target =" set-build-namespaces-all" />
737
737
<call target =" set-package-configuration" />
@@ -826,13 +826,13 @@ Commandline Examples:
826
826
<exec workingdir =" ${spring.basedir}" program =" cmd.exe" verbose =" true" >
827
827
<arg value =" /c powershell-invoker .\s3-nightly-upload.ps1 -srcFolderPath ${package.dir} -srcFilename ${filetoupload}" />
828
828
</exec >
829
-
829
+
830
830
<echo message =" Deleting outdated files on AmazonS3..." />
831
831
<exec workingdir =" ${spring.basedir}" program =" cmd.exe" verbose =" true" >
832
832
<arg value =" /c powershell-invoker .\s3-nightly-delete-old-files.ps1 -leaveLatest 10" />
833
833
</exec >
834
834
835
-
835
+
836
836
</target >
837
837
838
838
<target name =" package-release-files" depends =" set-package-configuration" >
@@ -1036,11 +1036,11 @@ Commandline Examples:
1036
1036
<include name =" */*/Spring.Data.NHibernate*.dll" />
1037
1037
<include name =" */*/Spring.Data.NHibernate*.xml" />
1038
1038
<include name =" */*/Spring.Data.NHibernate*.pdb" />
1039
-
1039
+
1040
1040
<include name =" */*/Spring.Web.dll" />
1041
1041
<include name =" */*/Spring.Web.xml" />
1042
1042
<include name =" */*/Spring.Web.pdb" />
1043
-
1043
+
1044
1044
<include name =" */*/Spring.Web.Mvc5.dll" />
1045
1045
<include name =" */*/Spring.Web.Mvc5.xml" />
1046
1046
<include name =" */*/Spring.Web.Mvc5.pdb" />
@@ -1087,7 +1087,7 @@ Commandline Examples:
1087
1087
1088
1088
</fileset >
1089
1089
</copy >
1090
-
1090
+
1091
1091
</if >
1092
1092
1093
1093
<if test =" ${property::exists('build.allnamespaces') and build.allnamespaces}" >
@@ -1285,16 +1285,16 @@ Commandline Examples:
1285
1285
<include name =" src/Spring/Spring.Testing.Microsoft/**" />
1286
1286
<include name =" src/Spring/CommonAssemblyInfo.cs" />
1287
1287
<include name =" src/Spring/Spring.Web.Conversation.NHibernate5/**" />
1288
-
1288
+
1289
1289
<include name =" test/Spring/Spring.Core.Tests/**" />
1290
1290
<include name =" test/Spring/Spring.Aop.Tests/**" />
1291
1291
<include name =" test/Spring/Spring.Web.Tests/**" />
1292
1292
<include name =" test/Spring/Spring.Web.Mvc5.Tests/**" />
1293
1293
<include name =" test/Spring/Spring.Services.Tests/**" />
1294
1294
<include name =" test/Spring/Spring.Data.Tests/**" />
1295
1295
<include name =" test/Spring/Spring.Data.Integration.Tests/**" />
1296
- <include name =" test/Spring/Spring.Data.NHibernate5.Integration.Tests/**" />
1297
- <include name =" test/Spring/Spring.Data.NHibernate5.NestedTxSuspension.Integration.Tests/**" />
1296
+ <include name =" test/Spring/Spring.Data.NHibernate5.Integration.Tests/**" />
1297
+ <include name =" test/Spring/Spring.Data.NHibernate5.NestedTxSuspension.Integration.Tests/**" />
1298
1298
<include name =" test/Spring/Spring.Data.NHibernate5.Tests/**" />
1299
1299
<include name =" test/Spring/Spring.Messaging.Tests/**" />
1300
1300
<include name =" test/Spring/Spring.Messaging.Nms.Tests/**" />
@@ -1306,7 +1306,7 @@ Commandline Examples:
1306
1306
<include name =" test/Spring/Spring.Testing.Microsoft.Tests/**" />
1307
1307
<include name =" test/Spring/CommonAssemblyInfo.cs" />
1308
1308
<include name =" test/Spring/Spring.Web.Conversation.NHibernate5.Tests/**" />
1309
-
1309
+
1310
1310
<include name =" examples/Spring/Spring.Examples.build" />
1311
1311
<include name =" examples/Spring/Spring.AopQuickStart/**" />
1312
1312
<include name =" examples/Spring/Spring.DataQuickStart/**" />
@@ -1371,44 +1371,44 @@ Commandline Examples:
1371
1371
</properties >
1372
1372
</nant >
1373
1373
</target >
1374
-
1375
-
1374
+
1375
+
1376
1376
<target name =" check-nuget-package-dir" >
1377
1377
<fail message =" The NuGet package directory has not been specified."
1378
1378
if =" ${not property::exists('nuget.package.dir')}" />
1379
1379
<!-- <mkdir dir="${nuget.package.dir}"/> -->
1380
1380
</target >
1381
-
1382
-
1381
+
1382
+
1383
1383
<target name =" clean-nuget-package-dir" depends =" check-nuget-package-dir" description =" Cleans the NuGet package directory" >
1384
1384
<echo message =" Cleaning the ${nuget.package.dir} NuGet package directory." />
1385
-
1385
+
1386
1386
<delete failonerror =" false" if =" ${directory::exists(nuget.package.dir)}" >
1387
1387
<fileset basedir =" ${nuget.package.dir}" >
1388
- <include name =" *.nupkg" />
1389
- </fileset >
1390
- </delete >
1391
-
1388
+ <include name =" *.nupkg" />
1389
+ </fileset >
1390
+ </delete >
1391
+
1392
1392
<mkdir dir =" ${nuget.package.dir}" if =" ${directory::exists(nuget.package.dir)}" />
1393
1393
</target >
1394
1394
1395
1395
<target name =" set-nuget-package-version" >
1396
1396
1397
1397
<!-- assume version of nuget package matches version of assemblies contained within it -->
1398
1398
<property name =" nuget.package.version" value =" ${package.version}" />
1399
-
1399
+
1400
1400
<!-- if suffix is passed in, use it -->
1401
1401
<property name =" nuget.package.version" value =" ${package.version + '-' + nuget.version.suffix}" if =" ${property::exists('nuget.version.suffix')}" />
1402
1402
1403
1403
</target >
1404
-
1404
+
1405
1405
<target name =" package-nuget" depends =" set-nuget-package-version,update-nuspec-metadata" >
1406
1406
1407
1407
<property name =" nuget.package.dir" value =" ${spring.basedir}\nuget-packages" />
1408
-
1408
+
1409
1409
<call target =" clean-nuget-package-dir" />
1410
1410
<call target =" check-package-version" />
1411
-
1411
+
1412
1412
<foreach item =" File" property =" filename" >
1413
1413
<in >
1414
1414
<items basedir =" ${spring.basedir}/src/Spring" >
@@ -1417,7 +1417,7 @@ Commandline Examples:
1417
1417
</items >
1418
1418
</in >
1419
1419
<do >
1420
- <echo message =" Generating NuGet Package from nuspec file: ${filename}" />
1420
+ <echo message =" Generating NuGet Package from nuspec file: ${filename}" />
1421
1421
<exec program =" dotnet" verbose =" true" >
1422
1422
<arg value =" pack" />
1423
1423
<arg value =" -c" />
@@ -1432,7 +1432,7 @@ Commandline Examples:
1432
1432
</foreach >
1433
1433
</target >
1434
1434
1435
- <target name =" update-nuspec-metadata" depends =" set-nuget-package-version" >
1435
+ <target name =" update-nuspec-metadata" depends =" set-nuget-package-version" >
1436
1436
</target >
1437
1437
1438
1438
0 commit comments