Lines 41-51
Link Here
|
41 |
|
41 |
|
42 |
/** |
42 |
/** |
43 |
* Java related classpath constants. |
43 |
* Java related classpath constants. |
44 |
* |
44 |
* |
45 |
* @author Jan Lahoda |
45 |
* @author Jan Lahoda |
|
|
46 |
* @author Tomas Zezula |
46 |
* @since 1.22 |
47 |
* @since 1.22 |
47 |
*/ |
48 |
*/ |
48 |
public class JavaClassPathConstants { |
49 |
public class JavaClassPathConstants { |
|
|
50 |
|
51 |
/** |
52 |
* Classpath setting for executing things. This type can be used to learn |
53 |
* runtime time classpath for execution of the file in question. |
54 |
* <p class="nonnormative"> |
55 |
* It corresponds to the <code>-classpath</code> option to <code>java</code> |
56 |
* (the Java launcher): i.e. all compiled classes outside the JRE that |
57 |
* will be needed to run the program, or at least to load a certain class. |
58 |
* It may also be thought of as corresponding to the list of URLs in a |
59 |
* <code>URLClassLoader</code> (plus URLs present in parent class loaders |
60 |
* but excluding the bootstrap and extension class loaders). |
61 |
* </p> |
62 |
* @since 1.26 |
63 |
*/ |
64 |
@SuppressWarnings("deprecation") //NOI18N |
65 |
public static final String EXECUTE = ClassPath.EXECUTE; |
66 |
|
67 |
/** |
68 |
* ClassPath for compiling things. This type can be used to learn |
69 |
* compilation time classpath for the file in question. |
70 |
* <p class="nonnormative"> |
71 |
* It corresponds to the <code>-classpath</code> option to <code>javac</code>: |
72 |
* i.e. already-compiled classes which some new sources need to compile against, |
73 |
* besides what is already in the JRE. |
74 |
* </p> |
75 |
* @since 1.26 |
76 |
*/ |
77 |
@SuppressWarnings("deprecation") //NOI18N |
78 |
public static final String COMPILE = ClassPath.COMPILE; |
79 |
|
80 |
/** |
81 |
* ClassPath for project sources. This type can be used to learn |
82 |
* package root of the file in question. |
83 |
* <div class="nonnormative"> |
84 |
* <p> |
85 |
* It is similar to the <code>-sourcepath</code> option of <code>javac</code>. |
86 |
* </p> |
87 |
* <p> |
88 |
* For typical source files, the sourcepath will consist of one element: |
89 |
* the package root of the source file. If more than one package root is |
90 |
* to be compiled together, all the sources should share a sourcepath |
91 |
* with multiple roots. |
92 |
* </p> |
93 |
* <p> |
94 |
* Note that each source file for which editor code completion (and similar |
95 |
* actions) should work should have a classpath of this type. |
96 |
* </p> |
97 |
* </div> |
98 |
* @since 1.26 |
99 |
*/ |
100 |
@SuppressWarnings("deprecation") //NOI18N |
101 |
public static final String SOURCE = ClassPath.SOURCE; |
102 |
|
103 |
/** |
104 |
* Boot ClassPath of the JDK. This type can be used to learn boot classpath |
105 |
* which should be used for the file in question. |
106 |
* <p class="nonnormative"> |
107 |
* It corresponds to the <code>-Xbootclasspath</code> and <code>-Xext</code> |
108 |
* options to <code>java</code> (the Java launcher): i.e. all compiled |
109 |
* classes in the JRE that will be needed to run the program. |
110 |
* It may also be thought of as corresponding to the classes loadable |
111 |
* by the primordial bootstrap class loader <em>plus</em> the standard |
112 |
* extension and endorsed-library class loaders; i.e. class loaders lying |
113 |
* below the regular application startup loader and any custom loaders. |
114 |
* Generally there ought to be a single boot classpath for the entire |
115 |
* application. |
116 |
* </p> |
117 |
* @since 1.26 |
118 |
*/ |
119 |
@SuppressWarnings("deprecation") //NOI18N |
120 |
public static final String BOOT = ClassPath.BOOT; |
49 |
|
121 |
|
50 |
/** |
122 |
/** |
51 |
* ClassPath for annotation processors. If undefined, {@link ClassPath#COMPILE} |
123 |
* ClassPath for annotation processors. If undefined, {@link ClassPath#COMPILE} |
Lines 56-61
Link Here
|
56 |
* |
128 |
* |
57 |
* @since 1.22 |
129 |
* @since 1.22 |
58 |
*/ |
130 |
*/ |
59 |
public static final String PROCESSOR_PATH = "classpath/processor"; |
131 |
public static final String PROCESSOR_PATH = "classpath/processor"; //NOI18N |
60 |
|
132 |
|
|
|
133 |
/** |
134 |
* Classpath for endorsed libraries. See {@link ClassPath} for other classpath |
135 |
* types. |
136 |
* @since 1.26 |
137 |
*/ |
138 |
public static final String ENDORSED = "classpath/endorsed"; //NOI18N |
61 |
} |
139 |
} |