這項作業會讀取包含 Eclipse 工作區喜好設定的內容檔,且會設定這些喜好設定。
參數
屬性 | 說明 | 必要 |
---|---|---|
PreferenceFileName | 工作區喜好設定所在之內容檔的名稱 | 是 |
Overwrite | 喜好設定值已經存在時,是否要改寫它 | 否,預設值是 true |
FailOnError | 當發生錯誤時,Ant 建置作業是否應該失敗 | 否,預設值是 true |
範例
<workspacePreferenceFile PreferenceFileName="X:/MyPath/MySettings.preferences" Overwrite="true" failonerror="true" />
# classpathVariable.WAS_51_PLUGINDIR=F:/WAS51/AppServer # compiler.problem.unusedImport=ignore compiler.problem.staticAccessReceiver=ignore compiler.source=1.4 # builder.invalidClasspath=abort classpath.exclusionPatterns=enabled # targetRuntime.runtimeTypeId=com.ibm.etools.websphere.runtime.v51.base targetRuntime.targetLocation=F:/WAS51/AppServer targetRuntime.targetName=buildExampleWAS51