org.openide.compiler
Class ExternalCompilerGroup.Format
java.lang.Object
|
+--java.text.Format
|
+--org.openide.util.MapFormat
|
+--org.openide.compiler.ExternalCompilerGroup.Format
- All Implemented Interfaces:
- Cloneable, Serializable
- Enclosing class:
- ExternalCompilerGroup
- public static class ExternalCompilerGroup.Format
- extends MapFormat
Default format that can format tags related to compilation. These include settings of classpath
(can be composed from repository, class path, boot class path and libraries) and
putting somewhere list of files to compile.
- See Also:
- Serialized Form
Method Summary |
static String |
asParameterString(String[] files)
Helper method to allows conversion of list of files to compile to
one string that can be passed as parameter to external process. |
Methods inherited from class org.openide.util.MapFormat |
format, format, getLeftBrace, getMap, getRightBrace, isExactMatch, parse, parseObject, processKey, processPattern, setExactMatch, setLeftBrace, setMap, setRightBrace, setThrowExceptionIfKeyWasNotFound, willThrowExceptionIfKeyWasNotFound |
TAG_CLASSPATH
public static final String TAG_CLASSPATH
- Tag replaced with ProcessExecutors.getClassPath ()
TAG_BOOTCLASSPATH
public static final String TAG_BOOTCLASSPATH
- Tag replaced with ProcessExecutors.getBootClassPath ()
TAG_REPOSITORY
public static final String TAG_REPOSITORY
- Tag replaced with ProcessExecutors.getRepositoryPath ()
TAG_LIBRARY
public static final String TAG_LIBRARY
- Tag replaced with ProcessExecutors.getLibraryPath ()
TAG_FILES
public static final String TAG_FILES
- Tag replaced with arguments of the program
TAG_JAVAHOME
public static final String TAG_JAVAHOME
- Tag replaced with install directory of JDK
TAG_SEPARATOR
public static final String TAG_SEPARATOR
- Tag replaced with separator between filename components
TAG_PATHSEPARATOR
public static final String TAG_PATHSEPARATOR
- Tag replaced with separator between path components
ExternalCompilerGroup.Format
public ExternalCompilerGroup.Format(String[] files)
- All values for the paths takes from NbClassPath.createXXX methods.
- Parameters:
files
- files to compile
ExternalCompilerGroup.Format
public ExternalCompilerGroup.Format(String[] files,
NbClassPath classPath,
NbClassPath bootClassPath,
NbClassPath repository,
NbClassPath library)
- Parameters:
files
- files to compileclassPath
- to substitute instead of CLASSPATHbootClassPath
- boot class pathrepository
- repository pathlibrary
- library path
asParameterString
public static String asParameterString(String[] files)
- Helper method to allows conversion of list of files to compile to
one string that can be passed as parameter to external process.
On non Windows machines the method simply concatenates the strings
into one. On Windows, if the file count it greater then ten, it
creates temporary file, writes the strings into it and returns
"@filename" witch is accepted by common programmers instead of the
list of files.
- Parameters:
files
- array of files to compile- Returns:
- the string representing the files to compile or null if it
cannot be created (like the temporary file cannot be created)
Built on February 22 2001. | Portions Copyright 1997-2000 Sun Microsystems, Inc. All rights reserved.