Class NbClassPath
java.lang.Object
org.openide.execution.NbClassPath
- All Implemented Interfaces:
Serializable
Property that can hold informations about class path and
that can be used to create string representation of the
class path.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNbClassPath
(File[] classpathItems) Create a new descriptor for the specified process, classpath switch, and classpath.NbClassPath
(String path) Create a class path from the usual string representation.NbClassPath
(String[] classpathItems) Create a new descriptor for the specified process, classpath switch, and classpath. -
Method Summary
Modifier and TypeMethodDescriptionstatic NbClassPath
Deprecated.Use the Java Platform API instead.static NbClassPath
Deprecated.There are generally no excuses to be using this method as part of a normal module; its exact meaning is vague, and probably not what you want.static NbClassPath
Deprecated.There are generally no excuses to be using this method as part of a normal module; its exact meaning is vague, and probably not what you want.boolean
Create class path representation.If there were some problems during creation of the class path, they can be identified by asking the method.static File
toFile
(org.openide.filesystems.FileObject fo) Deprecated.You should useFileUtil.toFile(org.openide.filesystems.FileObject)
instead.
-
Constructor Details
-
NbClassPath
Create a new descriptor for the specified process, classpath switch, and classpath.- Parameters:
classpathItems
- the classpath to be passed to the process
-
NbClassPath
Create a new descriptor for the specified process, classpath switch, and classpath.- Parameters:
classpathItems
- the classpath to be passed to the process
-
NbClassPath
Create a class path from the usual string representation.- Parameters:
path
- a class path separated byFile.pathSeparatorChar
s
-
-
Method Details
-
createLibraryPath
Deprecated.There are generally no excuses to be using this method as part of a normal module; its exact meaning is vague, and probably not what you want.Creates class path describing additional libraries needed by the system. Never use this class path as part of a user project! For more information consult the Module Class Path document. -
createClassPath
Deprecated.There are generally no excuses to be using this method as part of a normal module; its exact meaning is vague, and probably not what you want.Creates class path of the system. Never use this class path as part of a user project! For more information consult the Module Class Path document. -
createBootClassPath
Deprecated.Use the Java Platform API instead.Creates path describing boot class path of the system. Never use this class path as part of a user project! There are generally no excuses to be using this method as part of a normal module. For more information consult the Module Class Path document.- Returns:
- class path of system class including extensions
-
toFile
Deprecated.You should useFileUtil.toFile(org.openide.filesystems.FileObject)
instead.Take one file object and try to convert it into a local file.- Parameters:
fo
- file object to convert- Returns:
- disk file for that file object, or
null
if there is no corresponding disk file
-
getExceptions
If there were some problems during creation of the class path, they can be identified by asking the method. So this method can be called to test whether it is correct to use the path or there can be some errors.This can happen especially when creating NbClassPath for filesystems in repository and they are not stored on locally accessible disks.
- Returns:
- array of exceptions thrown during creation of the path
-
getClassPath
Create class path representation. The implementation will return the string quoted (using doublequotes), if it contains a space character.- Returns:
- string representing the classpath items separated by File.separatorChar, possibly quoted.
-
equals
-