Skip to content

Commit

Permalink
fix bug in copyjar that happens in tagged releases due to multiple fi…
Browse files Browse the repository at this point in the history
…les that match pattern (#422)
  • Loading branch information
skaarthik committed Apr 26, 2016
1 parent 7106834 commit 5da322d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions build/copyjar.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ foreach($file in $files)
write-output "Name of the file to copy: $sourceFileName"
}

#uber-jar has the name from pom.xml - this is the name we want to use
$files = get-childitem $configPath -filter "spark*"
#only one file in $files
foreach($file in $files)
{
$destFileName = $file.Name
write-output "Name of the file to use in destination: $destFileName"
}
$pattern = "^original-(.*)"
$destFileName = $sourceFileName -replace $pattern,'$1'
write-output "Name of the file to use in destination: $destFileName"

copy-item $sourceFileName -Destination "$destDir\$destFileName"
popd

0 comments on commit 5da322d

Please sign in to comment.