Skip to content
Permalink
Browse files
Add progress bars and packaging of source files.
  • Loading branch information
Jim Gomes committed Mar 4, 2009
1 parent 3e69334 commit 1c6c99986a93f0ec067fbff87a01a8b8bc631a71
Showing 1 changed file with 18 additions and 6 deletions.
@@ -23,28 +23,31 @@ function package-legalfiles($zipfile)
zip -9 -u -j "$zipfile" ..\NOTICE.txt
}

write-progress "Creating package directory." "Initializing..."
if(!(test-path package))
{
md package
}

pushd build

# Application files
$pkgdir = "..\package"

write-progress "Packaging Application files." "Scanning..."
foreach($configuration in $configurations)
{
$zipfile = "..\package\Apache.NMS-$pkgver-$configuration.zip"
$zipfile = "$pkgdir\Apache.NMS-$pkgver-bin-$configuration.zip"
package-legalfiles $zipfile
foreach($framework in $frameworks)
{
zip -9 -u "$zipfile" "$framework\$configuration\Apache.NMS.dll"
}
}

# PDB Files
write-progress "Packaging PDB files." "Scanning..."
foreach($configuration in $configurations)
{
$zipfile = "..\package\Apache.NMS-$pkgver-$configuration-PDBs.zip"
$zipfile = "$pkgdir\Apache.NMS-$pkgver-PDBs-$configuration.zip"
package-legalfiles $zipfile
foreach($framework in $frameworks)
{
@@ -59,10 +62,10 @@ foreach($configuration in $configurations)
}
}

# Unit test files
write-progress "Packaging Unit test files." "Scanning..."
foreach($configuration in $configurations)
{
$zipfile = "..\package\Apache.NMS-$pkgver-$configuration-UnitTests.zip"
$zipfile = "$pkgdir\Apache.NMS-$pkgver-UnitTests-$configuration.zip"
package-legalfiles $zipfile
foreach($framework in $frameworks)
{
@@ -79,3 +82,12 @@ foreach($configuration in $configurations)
}

popd

write-progress "Packaging Source code files." "Scanning..."
$pkgdir = "package"
$zipfile = "$pkgdir\Apache.NMS-$pkgver-src.zip"

zip -9 -u "$zipfile" LICENSE.txt NOTICE.txt nant-common.xml nant.build package.ps1 vs2008-nms-test.csproj vs2008-nms.csproj vs2008-nms.sln
zip -9 -u -r "$zipfile" keyfile lib src

write-progress "Packaging" "Complete."

0 comments on commit 1c6c999

Please sign in to comment.