Skip to content

Commit

Permalink
SPRNET-1414
Browse files Browse the repository at this point in the history
troubleshooting hung calls to powershell; attempting suggestion in this thread http://forums.atlassian.com/thread.jspa?messageID=257354555&#257354555
  • Loading branch information
sbohlen committed Mar 26, 2011
1 parent 722fff6 commit 2610538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Spring.build
Original file line number Diff line number Diff line change
Expand Up @@ -1194,12 +1194,12 @@ Commandline Examples:

<echo message="uploading ${filetoupload} to AmazonS3..."/>
<exec workingdir="${spring.basedir}" program="cmd.exe" verbose="true">
<arg value="/c powershell.exe .\s3-nightly-upload.ps1 -srcFolderPath ${package.dir} -srcFilename ${filetoupload} >> powershelllog.txt" />
<arg value="/c powershell-invoker .\s3-nightly-upload.ps1 -srcFolderPath ${package.dir} -srcFilename ${filetoupload}" />
</exec>

<echo message="Deleting outdated files on AmazonS3..."/>
<exec workingdir="${spring.basedir}" program="cmd.exe" verbose="true">
<arg value="/c powershell.exe .\s3-nightly-delete-old-files.ps1 -leaveLatest 10 >> powershelllog.txt" />
<arg value="/c powershell-invoker .\s3-nightly-delete-old-files.ps1 -leaveLatest 10" />
</exec>


Expand Down
1 change: 1 addition & 0 deletions powershell-invoker.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmd.exe /c "echo aaa | powershell.exe %*"

0 comments on commit 2610538

Please sign in to comment.