English 中文(简体)
Drive YUI Compressor with PowerShell and书撰写Syntax Errors to .txt file as audio, Prebuilding 成文
原标题:Drive YUI Compressor with PowerShell and Write Syntax Errors to .txt file as a Visual Studios Pre Build Script

在一次冲锋枪中,I ve got PowerShell驾驶YUI Compressor做一些联合材料压缩,作为在施工前的视觉演播室的一部分。 虽然yn子的错误很可能是很不经常的,但我很想知道,如果发生这些错误,以及现在使用的手稿,我无法让视力厂展示建筑记录中的错误,也无法让权力书撰写任何错误,以备日后查阅。 (后者是首选)

撰稿人“用美元工作”

页: 1

Get-Child 项目 $ *js -curse -force {java -jar C:Toolsyuicompressor-2.4.6uildyuicompressor-2.4.6.jar (.fullname) -o (fullname) -type js --nomunge}

撰稿人 然后,壳牌照允许我使用视像场下面几厘米的图像,制造一根含有产出的.子:

Powerhell.exe -file "$(ProjectDir).... PowergustsPre_Build_Public.ps1”>> “C:ToolsPre_Build_Report.txt”“$(ProjectDir)gusts”

这种工作是否也存在来自YUI的任何错误?

如果需要进一步澄清,请让我知道。 我希望尽可能容易地做到这一点,因为花了时间来审视这一问题。

问题回答

您可使用<代码>2>&1操作者:

 powershell.exe -file "$(ProjectDir)....PowerScriptsPre_Build_Public.ps1" 2>&1 >> "C:ToolsPre_Build_Report.txt" "$(ProjectDir)Scripts"

然而,我认为,PowerShell的内部错误处理没有写上斜体。 你们需要亲自这样做。 页: 1 Pre_Build_Public.ps1 文字,我这样说:

 foreach( $err in $error )
 {
      Write-Output $err
 }

这将造成每一错误的 st。

它像PowerShell诉3案一样,将支持将动力Shell内部错误流转。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签