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
<workspacePreferenceGet
preferenceType="compiler"
preferencename="problem.unusedImport"
PropertyName="unusedImport" />
<echo message="compiler problem.unusedImport=${unusedImport}" />