|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ant.core.AntCorePreferences
Represents the Ant Core plug-in's preferences providing utilities for extracting, changing and updating the underlying preferences.
Field Summary | |
protected URL[] |
antURLs
|
protected Property[] |
customProperties
|
protected String[] |
customPropertyFiles
|
protected Task[] |
customTasks
|
protected Type[] |
customTypes
|
protected URL[] |
customURLs
|
protected URL[] |
defaultAntURLs
|
protected List |
defaultTasks
|
protected List |
defaultTypes
|
protected List |
extraClasspathURLs
|
protected List |
pluginClassLoaders
|
Constructor Summary | |
protected |
AntCorePreferences(List defaultTasks,
List defaultExtraClasspath,
List defaultTypes,
boolean headless)
|
Method Summary | |
protected void |
addLibraries(IPluginDescriptor source,
List destination)
|
protected void |
addPluginClassLoader(ClassLoader loader)
|
protected void |
computeDefaultExtraClasspathEntries(List entries)
Computes the extra classpath entries defined plugins and fragments. |
protected List |
computeDefaultTasks(List tasks)
|
protected List |
computeDefaultTypes(List types)
|
protected Property[] |
extractProperties(Preferences prefs,
String[] properties)
|
protected Task[] |
extractTasks(Preferences prefs,
String[] tasks)
|
protected Type[] |
extractTypes(Preferences prefs,
String[] types)
|
protected URL[] |
extractURLs(String[] urls)
|
String |
getAntHome()
Returns the string that defines the Ant home set by the user. |
URL[] |
getAntURLs()
Returns the array of URLs that is the set of URLs defining the Ant classpath. |
protected String[] |
getArrayFromString(String list)
Convert a list of tokens into an array using "," as the tokenizer. |
Property[] |
getCustomProperties()
Returns the custom user properties specified for Ant builds. |
String[] |
getCustomPropertyFiles()
Returns the custom property files specified for Ant builds. |
Task[] |
getCustomTasks()
Returns the user defined custom tasks |
Type[] |
getCustomTypes()
Returns the user defined custom types |
URL[] |
getCustomURLs()
Returns the custom URLs specified for the Ant classpath |
URL[] |
getDefaultAntURLs()
Returns the array of URLs that is the default set of URLs defining the Ant classpath. |
List |
getDefaultTasks()
Returns the default tasks defined via the task extension point |
List |
getDefaultTypes()
Returns the default types defined via the type extension point |
URL[] |
getExtraClasspathURLs()
Returns the list of urls added to the classpath by the extra classpath entries extension point. |
protected ClassLoader[] |
getPluginClassLoaders()
|
List |
getTasks()
Returns the default and custom tasks. |
URL |
getToolsJarURL()
Returns the URL for the tools.jar associated with the "java.home" location. |
List |
getTypes()
Returns the default and custom types. |
URL[] |
getURLs()
Returns the entire set of URLs that define the Ant runtime classpath. |
void |
propertyChange(Preferences.PropertyChangeEvent event)
When a preference changes, update the in-memory cache of the preference. |
void |
setAntHome(String antHome)
Sets the string that defines the Ant home set by the user. |
void |
setAntURLs(URL[] urls)
Sets the Ant URLs specified for the Ant classpath. |
void |
setCustomProperties(Property[] properties)
Sets the custom user properties specified for Ant builds. |
void |
setCustomPropertyFiles(String[] paths)
Sets the custom property files specified for Ant builds. |
void |
setCustomTasks(Task[] tasks)
Sets the user defined custom tasks |
void |
setCustomTypes(Type[] types)
Sets the user defined custom types |
void |
setCustomURLs(URL[] urls)
Sets the custom URLs specified for the Ant classpath. |
protected void |
updateAntURLs(Preferences prefs)
|
void |
updatePluginPreferences()
Updates the underlying plugin preferences to the current state. |
protected void |
updateProperties(Preferences prefs)
|
protected void |
updatePropertyFiles(Preferences prefs)
|
protected void |
updateTasks(Preferences prefs)
|
protected void |
updateTypes(Preferences prefs)
|
protected void |
updateURLs(Preferences prefs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List defaultTasks
protected List defaultTypes
protected List extraClasspathURLs
protected URL[] defaultAntURLs
protected Task[] customTasks
protected Type[] customTypes
protected URL[] antURLs
protected URL[] customURLs
protected Property[] customProperties
protected String[] customPropertyFiles
protected List pluginClassLoaders
Constructor Detail |
protected AntCorePreferences(List defaultTasks, List defaultExtraClasspath, List defaultTypes, boolean headless)
Method Detail |
public void propertyChange(Preferences.PropertyChangeEvent event)
propertyChange
in interface Preferences.IPropertyChangeListener
Preferences.IPropertyChangeListener.propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent)
protected Task[] extractTasks(Preferences prefs, String[] tasks)
protected Type[] extractTypes(Preferences prefs, String[] types)
protected Property[] extractProperties(Preferences prefs, String[] properties)
protected URL[] extractURLs(String[] urls)
public URL[] getDefaultAntURLs()
public URL[] getAntURLs()
protected List computeDefaultTasks(List tasks)
protected List computeDefaultTypes(List types)
protected void computeDefaultExtraClasspathEntries(List entries)
public URL getToolsJarURL()
null
if no tools.jar is found (e.g. "java.home"
points to a JRE install).null
protected void addLibraries(IPluginDescriptor source, List destination)
protected void addPluginClassLoader(ClassLoader loader)
public URL[] getExtraClasspathURLs()
public URL[] getURLs()
protected ClassLoader[] getPluginClassLoaders()
public List getTasks()
public Task[] getCustomTasks()
public Type[] getCustomTypes()
public Property[] getCustomProperties()
public String[] getCustomPropertyFiles()
public URL[] getCustomURLs()
public void setCustomTasks(Task[] tasks)
tasks
- public void setCustomTypes(Type[] types)
tasks
- public void setCustomURLs(URL[] urls)
the
- urls defining the Ant classpathpublic void setAntURLs(URL[] urls)
the
- urls defining the Ant classpathpublic void setCustomPropertyFiles(String[] paths)
the
- absolute paths defining the property files to use.public void setCustomProperties(Property[] properties)
the
- properties defining the Ant propertiespublic List getTypes()
public List getDefaultTypes()
public List getDefaultTasks()
protected String[] getArrayFromString(String list)
public void updatePluginPreferences()
protected void updateTasks(Preferences prefs)
protected void updateTypes(Preferences prefs)
protected void updateProperties(Preferences prefs)
protected void updateURLs(Preferences prefs)
protected void updateAntURLs(Preferences prefs)
protected void updatePropertyFiles(Preferences prefs)
public void setAntHome(String antHome)
null
.the
- fully qualified path to Ant homepublic String getAntHome()
null
if Ant home has not been set.
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |