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

Field Summary
static String TAG_BOOTCLASSPATH
          Tag replaced with ProcessExecutors.getBootClassPath ()
static String TAG_CLASSPATH
          Tag replaced with ProcessExecutors.getClassPath ()
static String TAG_FILES
          Tag replaced with arguments of the program
static String TAG_JAVAHOME
          Tag replaced with home directory of JDK
static String TAG_JDKHOME
          Tag replaced with root directory of JDK
static String TAG_LIBRARY
          Tag replaced with ProcessExecutors.getLibraryPath ()
static String TAG_PATHSEPARATOR
          Tag replaced with separator between path components
static String TAG_REPOSITORY
          Tag replaced with ProcessExecutors.getRepositoryPath ()
static String TAG_SEPARATOR
          Tag replaced with separator between filename components
 
Constructor Summary
ExternalCompilerGroup.Format(String[] files)
          All values for the paths takes from NbClassPath.createXXX methods.
ExternalCompilerGroup.Format(String[] files, NbClassPath classPath, NbClassPath bootClassPath, NbClassPath repository, NbClassPath library)
           
 
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
 
Methods inherited from class java.text.Format
clone, format, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 home directory of JDK

TAG_JDKHOME

public static final String TAG_JDKHOME
Tag replaced with root 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
Constructor Detail

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 compile
classPath - to substitute instead of CLASSPATH
bootClassPath - boot class path
repository - repository path
library - library path
Method Detail

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. Necessarily platform-specific.
Parameters:
files - array of files to compile
Returns:
the string representing the files to compile, or null if it cannot be created (for example, the temporary file cannot be created)


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.