captureBuildMessages

這項作業會擷取 Ant 建置訊息,可讓您搜尋或顯示這些訊息,且視指定的字串是否在擷取的建置訊息中而定,會接受條件式的 Ant 建置失敗。

參數

屬性 說明 必要
action 要執行的擷取動作 是。可以是下列項目之一:
  • start
  • stop
  • getAllMessages
  • findMessage
  • FailOnErrorMessagePresent
  • FailOnErrorMessageMissing
MessageLevel 要擷取的 Ant 建置訊息層次 否,預設值是 Information。可能是 errorwarninginformationdebugverbose
SearchString 要搜尋的字串(只對 findMessageFailOnErrorMessagePresentFailOnErrorMessageMissing 有效) 是(搜尋動作)
PropertyMessagesName 擷取取得/搜尋動作訊息結果的內容 否,預設值是 BuildMessages
ErrorPrefixMessage 在任何 FailOnError 失敗訊息之前輸出的字串字首

範例

相關工作
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet
使用條款 | 讀者意見
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.