SPRNET-1414

troubleshooting hung calls to powershell; attempting suggestion in this thread http://forums.atlassian.com/thread.jspa?messageID=257354555&#257354555
This commit is contained in:
sbohlen
2011-03-26 18:32:40 +00:00
parent 722fff6f95
commit 2610538ab3
2 changed files with 3 additions and 2 deletions

View File

@@ -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>

1
powershell-invoker.cmd Normal file
View File

@@ -0,0 +1 @@
cmd.exe /c "echo aaa | powershell.exe %*"