Lines Matching refs:path

35  * This class is used to represent a class path, which can contain both
47 * The original class path string
52 * List of class path entries
54 private ClassPathEntry[] path;
57 * Build a class path from the specified path string
64 * Build a class path from the specified array of class path
69 * manifest entry will contain a path separator, which would cause
70 * incorrect behavior if the expanded path were passed to the
71 * previous constructor as a single path-separator-delimited
79 * Build a default class path from the path strings specified by
80 * the properties sun.boot.class.path and env.class.path, in that
84 String syscp = System.getProperty("sun.boot.class.path");
85 String envcp = System.getProperty("env.class.path");
93 // Save original class path string
97 this.path = new ClassPathEntry[0];
100 // Count the number of path separators
105 // Build the class path
106 ClassPathEntry[] path = new ClassPathEntry[n+1];
113 path[n] = new ClassPathEntry();
114 path[n++].dir = new File(".");
120 path[n] = new ClassPathEntry();
121 path[n++].zip = zip;
127 path[n] = new ClassPathEntry();
128 path[n++].dir = file;
132 // Trim class path to exact size
133 this.path = new ClassPathEntry[n];
134 System.arraycopy((Object)path, 0, (Object)this.path, 0, n);
138 // Save original class path string
150 // Build the class path
151 ClassPathEntry[] path = new ClassPathEntry[patharray.length];
158 path[n] = new ClassPathEntry();
159 path[n++].zip = zip;
165 path[n] = new ClassPathEntry();
166 path[n++].dir = file;
169 // Trim class path to exact size
170 this.path = new ClassPathEntry[n];
171 System.arraycopy((Object)path, 0, (Object)this.path, 0, n);
175 * Find the specified directory in the class path
182 * Load the specified file from the class path
204 for (int i = 0; i < path.length; i++) {
205 if (path[i].zip != null) {
207 ZipEntry entry = path[i].zip.getEntry(newname);
209 return new ClassFile(path[i].zip, entry);
212 File file = new File(path[i].dir.getPath(), name);
213 String list[] = path[i].getFiles(subdir);
238 for (int i = path.length; --i >= 0; ) {
239 if (path[i].zip != null) {
240 Enumeration e = path[i].zip.entries();
246 files.put(name, new ClassFile(path[i].zip, entry));
250 String[] list = path[i].getFiles(pkg);
255 File file = new File(path[i].dir.getPath(), name);
268 for (int i = path.length; --i >= 0; ) {
269 if (path[i].zip != null) {
270 path[i].zip.close();
276 * Returns original class path string
284 * A class path entry, which can either be a directory or an open zip file.