workspacePreferenceGet
This task gets 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 PropertyName Property to receive the preference value Yes FailOnError Whether or not the Ant build should fail if there was an error No, default is true Examples
- Get and display a workspace preference:
<workspacePreferenceGet preferenceType="compiler" preferencename="problem.unusedImport" PropertyName="unusedImport" /> <echo message="compiler problem.unusedImport=${unusedImport}" />
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceSet