workspacePreferenceFile
This task reads a property file containing Eclipse workspace preferences and sets those preferences.
Parameters
Attribute Description Required PreferenceFileName The name of the property file containing sorkspace preference Yes Overwrite Whether or not to overwrite the preference value it it already exists No, default is true FailOnError Whether or not the Ant build should fail if there was an error No, default is true Examples
- Read a preference property file and set its contained workspace preferences:
<workspacePreferenceFile PreferenceFileName="X:/MyPath/MySettings.preferences" Overwrite="true" failonerror="true" />- Sample MySettings.preferences file:
# 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
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceGet
workspacePreferenceSet