Method Summary |
|
public static PropertyProvider | fixedPropertyProvider(Map<String, String> defs) Create a trivial property producer using only a fixed list of property definitions. |
public static EditableProperties | getGlobalProperties() Load global properties defined by the IDE in the user directory. |
public static String | getUsablePropertyName(String name) Returns name usable as Ant property which is based on the given
name. |
public static synchronized PropertyProvider | globalPropertyProvider() Create a property evaluator based on
PropertyUtils.getGlobalProperties and
PropertyUtils.putGlobalProperties . |
public static boolean | isUsablePropertyName(String name) Checks whether the name is usable as Ant property name. |
public static PropertyProvider | propertiesFilePropertyProvider(File propertiesFile) Create a property provider based on a properties file.
The file need not exist at the moment; if it is created or deleted an appropriate
change will be fired. |
public static void | putGlobalProperties(EditableProperties properties) Edit global properties defined by the IDE in the user directory. |
public static String | relativizeFile(File basedir, File file) Produce a machine-independent relativized version of a filename from a basedir.
Unlike
URI.relativize this will produce "../" sequences as needed.
Parameters: basedir - a directory to resolve relative to (need not exist on disk) Parameters: file - a file or directory to find a relative path for a relativized path (slash-separated), or null if it is not possible (e.g. |
public static File | resolveFile(File basedir, String filename) Find an absolute file path from a possibly relative path. |
static FileObject | resolveFileObject(FileObject basedir, String filename) |
static String | resolvePath(File basedir, String path) |
public static PropertyEvaluator | sequentialPropertyEvaluator(PropertyProvider preprovider, PropertyProvider... providers) Create a property evaluator based on a series of definitions.
Each batch of definitions can refer to properties within itself
(so long as there is no cycle) or any previous batch.
However the special first provider cannot refer to properties within itself.
This implementation acquires
ProjectManager.mutex for all operations, in read mode,
and fires changes synchronously. |
public static String[] | tokenizePath(String path) Split an Ant-style path specification into components. |
static File | userBuildProperties() Location in user directory of per-user global properties. |
public static PropertyProvider | userPropertiesProvider(PropertyEvaluator findUserPropertiesFile, String propertyName, File basedir) Creates a property provider similar to
PropertyUtils.globalPropertyProvider but which can use a different global properties file. |