這項作業設定內部 Java™ 編譯除錯層次,並傳回現行設定。
參數
屬性 | 說明 | 必要 |
---|---|---|
DebugInfo | 將 3 個設定全部變更。 | 無(值維持不變)(可為 true 或 false)。 |
LineNumber | 行號除錯資訊 | 無(值維持不變)(可為 true 或 false)。 |
LocalVariable | 區域變數符號表 | 無(值維持不變)(可為 true 或 false)。 |
SourceFile | 程式檔名稱 | 無(值維持不變)(可為 true 或 false)。 |
PropertyName | 要接收現行設定的內容名稱。 | 否,預設值是 DebugInfo。 |
範例
<setDebugInfo /> <echo message="current settings: ${DebugInfo}" />
<setDebugInfo LineNumber="false" LocalVariable="false" sourceFile="false" /> <echo message="current settings: ${DebugInfo}" /> ... do builds here ... <setDebugInfo DebugInfo="true" PropertyName="Settings" /> <echo message="current settings: ${Settings}" />