workspacePreferenceSet
This task sets Eclipse workspace preferences.
Parameters
Attribute Description Required PreferenceType The type of preference to be set Yes. May be compiler or classpathVariable or classpath or builder PreferenceName The preference name to be set Yes PreferenceValue The value to be set 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
- Set various workspace preferences:
<workspacePreferenceSet PreferenceType="compiler" Preferencename="problem.unusedImport" PreferenceValue="ignore" /> <workspacePreferenceSet PreferenceType="compiler" Preferencename="problem.staticAccessReceiver" PreferenceValue="ignore" /> <workspacePreferenceSet PreferenceType="classpathVariable" Preferencename="WAS_PLUGINDIR" PreferenceValue="F:/Wte51/AppServer" /> <workspacePreferenceSet PreferenceType="classpath" Preferencename="exclusionPatterns" PreferenceValue="enabled" /> <workspacePreferenceSet PreferenceType="builder" Preferencename="invalidClasspath" PreferenceValue="abort" />
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet