2012-08-26 81 views
0

我有一段PHP應用程序,我一直在用Capistrano部署一段時間。我想在本地壓縮js和css,並在部署到服務器之前執行其他清理任務。我目前使用build_script,使一個Ant電話:Capistrano使用Ant構建腳本

set :build_script, "ant compress -q" 

我不知道這是否是僅限於Windows,但我的部分輸出的樣子:

executing locally: ant compress -q 

{$HOME}\AppData\Local\Temp\20120826020126>/* 
'/*' is not recognized as an internal or external command, 
operable program or batch file. 

{$HOME}\AppData\Local\Temp\20120826020126>Licensed to the Apache Software Foundation (ASF) under one or more 
'Licensed' is not recognized as an internal or external command, 
operable program or batch file. 

{$HOME}\AppData\Local\Temp\20120826020126>contributor license agreements. See the NOTICE file distributed with 
'contributor' is not recognized as an internal or external command, 
operable program or batch file. 

{$HOME}\AppData\Local\Temp\20120826020126>this work for additional information regarding copyright ownership. 
'this' is not recognized as an internal or external command, 
operable program or batch file. 

{$HOME}\AppData\Local\Temp\20120826020126>The ASF licenses this file to You under the Apache License, Version 2.0 
'The' is not recognized as an internal or external command, 
operable program or batch file. 
you was unexpected at this time. 

有什麼辦法來抑制所有從Ant輸出,或者至少讓Capistrano不把任何輸出從我的構建腳本傳遞到命令行?

回答