/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/io/ |
H A D | FileLister.java | 73 String[] files = new String[fileList.size()]; 75 if(files.length <= 0) 76 return files; 83 for(int i = 0; i < files.length; i++) 85 files[i] = (fileList.get(i)).getPath().substring(len).replace('\\', '/'); 88 Arrays.sort(files, String.CASE_INSENSITIVE_ORDER); 89 return files; 95 File[] files = root.listFiles(); 97 for(int i = 0; i < files.length; i++) 99 if(files[ [all...] |
H A D | InstanceDirs.java | 133 File[] files = parent.listFiles(new FileFilter() { 141 if (files != null && files.length < 1) { 146 if (files != null && files.length > 1) { 148 Strings.get("InstanceDirs.tooManyNodes", parent, files.length)); 152 return files[0]; 158 File[] files = nodeDir.listFiles(new FileFilter() { 166 if (files != null && files [all...] |
H A D | DomainDirs.java | 166 File[] files = parent.listFiles(new FileFilter() { 175 if (files == null || files.length == 0) 178 if(files.length > 1) { 181 for(int i = 0 ; i < files.length; i++) { 184 names += files[i].getName(); 190 return files[0];
|
H A D | FileUtils.java | 71 * an array with files in it 77 File[] files = f.listFiles(); 79 if(files != null) 80 return files; 91 File[] files = f.listFiles(ff); 93 if(files != null) 94 return files; 105 File[] files = f.listFiles(fnf); 107 if(files != null) 108 return files; 648 formatFileCollection(Collection<File> files) argument [all...] |
/glassfish-3.1.2/admin/backup/src/main/java/com/sun/enterprise/backup/util/ |
H A D | BackupUtils.java | 58 File[] files = null; 63 // and chmod files inside dir to rw------- 68 // domain files. 82 files = f.listFiles(); 84 if(files == null || files.length < 1) 87 files = new File[] { f }; 90 for(File file : files) { 142 private static boolean makeExecutable(File[] files) { argument 166 if(files [all...] |
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ |
H A D | ClassPathBuilder.java | 80 * Adds all the files in the given directory that match the given filter. 83 File[] files = dir.listFiles(filter); 84 if(files!=null) 85 addAll(files); 89 public ClassPathBuilder addAll(File... files) { argument 90 for (File f : files)
|
/glassfish-3.1.2/web/web-glue/src/main/java/org/glassfish/web/upgrade/ |
H A D | WebConfigurationUpgrade.java | 68 File[] files = dir.listFiles(); 69 if (files != null) { 70 for (File f : files) {
|
/glassfish-3.1.2/cluster/common/src/main/java/com/sun/enterprise/util/cluster/ |
H A D | SyncRequest.java | 49 * Request message to synchronize files. 51 @XmlRootElement(name = "synchronize-files") 54 files = new ArrayList<ModTime>(); 70 * The list of files the client has. 73 public List<ModTime> files; field in class:SyncRequest
|
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/startup/ |
H A D | HostConfig.java | 152 * Should we deploy XML Context config files? 158 * Should we unpack WAR files when auto-deploying applications in the 165 * Last modified dates of the web.xml files of the contexts, keyed by 172 * Last modified dates of the Context xml files of the contexts, keyed by 179 * Last modified dates of the source WAR files, keyed by WAR name. 449 * Deploy applications for any directories or WAR files that are found 466 String files[] = appBase.list(); 467 deployWARs(appBase, files); 468 deployDirectories(appBase, files); 476 protected void deployDescriptors(File configBase, String[] files) { argument 535 deployWARs(File appBase, String[] files) argument 698 deployDirectories(File appBase, String[] files) argument [all...] |
H A D | ExpandWar.java | 313 String files[] = null; 315 files = src.list(); 318 files = new String[1]; 319 files[0] = ""; 321 if (files == null) { 322 files = new String[0]; 324 for (int i = 0; (i < files.length) && result; i++) { 325 File fileSrc = new File(src, files[i]); 326 File fileDest = new File(dest, files[i]); 420 String files[] [all...] |
/glassfish-3.1.2/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/ |
H A D | LocalInstanceCommand.java | 365 File[] files = whackee.listFiles(); 367 if (files == null || files.length <= 0) { 369 if (files != null) 392 sb.append(", files in parent:"); 393 files = parent.listFiles(); 394 for (File f : files) 405 files = parent.listFiles(); 407 if (noInstancesRemain(files)) { 419 private boolean noInstancesRemain(File[] files) { argument [all...] |
H A D | ChangeNodeMasterPasswordCommand.java | 212 File[] files = parent.listFiles(new FileFilter() { 218 if (files == null || files.length == 0) { 223 for (File f : files) {
|
H A D | NativeRemoteCommandsBase.java | 211 * Method to delete files and directories on remote host 217 * @param force true means delete all files, false means leave non-GlassFish files 234 //using force deletes all files on remote host 264 * Method to check if specified remote directory contains files 289 File[] files = domainsDirFile.listFiles(new FileFilter() { 296 if (files == null || files.length == 0) 299 for (File file : files) { 371 File[] files [all...] |
H A D | UninstallNodeSshCommand.java | 113 List<String> files = getListOfInstallFiles(getInstallDir()); 135 deleteRemoteFiles(sftpClient, files, getInstallDir(), getForce());
|
/glassfish-3.1.2/common/common-util/src/test/java/com/sun/enterprise/util/ |
H A D | RegexUtilTest.java | 59 String[] files = new String[]{"a.txt", "b.txt", "cc.txt"}; 60 String glob = "*.txt"; //this is how glob pattern matches files in files array 62 Pattern p = Pattern.compile(regex); //this regex should match all the files 63 for (String file : files) { 70 String[] files = new String[]{"a.txt", "b.txt", "cc.txt"}; 71 String glob = "*txt"; //this is how glob pattern matches files in files array 73 Pattern p = Pattern.compile(regex); //this regex should match all the files 74 for (String file : files) { [all...] |
/glassfish-3.1.2/build/maven-glassfishbuild-plugin/src/main/java/com/sun/enterprise/build/ |
H A D | SetPropertiesMojo.java | 63 * The properties files used when reading properties. 66 private File[] files; field in class:SetPropertiesMojo 69 * Optional paths to properties files to be used. 86 for (int i = 0; i < files.length; i++) { 87 File file = files[i];
|
/glassfish-3.1.2/admin/backup/src/main/java/com/sun/enterprise/backup/ |
H A D | ListManager.java | 85 * Find all backup zip files in a domain and return a String 199 * a list of all backup files found. 202 * @throws BackupWarningException if there are no backup zip files 207 File[] files; 211 files = getBackupDirectory(request).listFiles(new ZipFilenameFilter()); 214 for (int i = 0; files != null && i < files.length; i++) { 215 zipList.add(files[i]); 223 files = dirs[i].listFiles(new ZipFilenameFilter()); 224 // Add the files wit [all...] |
H A D | ZipStorage.java | 55 * This class implements storing backups as zip files. 74 * Backups the files to a zip file. 91 String[] files = lister.getFiles(); 97 ZipWriter writer = new ZipWriter(zipName, domainDirName, files);
|
H A D | BackupFilenameManager.java | 104 * Returns backup files to be recycled, which are the oldest backups 105 * over the limit. If the limit is zero (or less), then no files are 108 * @return the oldest backup files over the specific limit. 111 List<File> files = new ArrayList<File>(); 118 files.add(it.next().zip); 122 return files; 128 * a list of all backup files found. 158 throw new BackupException("Latest version >= 100,000. Delete some backup files.");
|
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/session/ |
H A D | FileStore.java | 194 // Acquire the list of files in our storage directory 199 String files[] = file.list(); 201 // Figure out which files are sessions 203 for (int i = 0; i < files.length; i++) { 204 if (files[i].endsWith(FILE_EXT)) { 241 // Acquire the list of files in our storage directory 246 String files[] = file.list(); 251 for (int i = 0; i < files.length; i++) { 252 if (files[i].endsWith(FILE_EXT)) { 253 list.add(files[ [all...] |
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/zip/ |
H A D | ZipWriter.java | 42 * ZipFile -- A utility class for exploding jar files that contain EJB(s). Used *only* in this package by the EJBImporter class 88 * Exclude any files that are under these directories. 273 private void createItemList(String[] files) throws ZipFileException argument 277 if(files == null) 280 files = lister.getFiles(); 283 if(files.length <= 0) 284 throw new ZipFileException("No files to add!"); 286 items = new ZipItem[files.length]; 288 for(int i = 0; i < files.length; i++) 290 File f = new File(dirName + files[ [all...] |
H A D | ZipFile.java | 42 * ZipFile -- A utility class for exploding archive (zip) files. 108 /** Explodes files as usual, and then explodes every jar file found. All 109 * explosions are copied relative the same root directory.<p>It does a case-sensitive check for files that end with ".jar" 121 files = new ArrayList<String>(); 156 if(fullpath.delete()) { // wipe-out pre-existing files 178 files.add(filename); 196 return files; 246 return files; 268 // traverse list of files 451 private ArrayList<String>files field in class:ZipFile [all...] |
/glassfish-3.1.2/deployment/autodeploy/src/main/java/org/glassfish/deployment/autodeploy/ |
H A D | AutoDeployer.java | 438 File [] files= null; 441 files= directoryScanner.getAllDeployableModules(autoDeployDir, includeSubDir); 444 *To support slowly-copied files, the deploy method returns 449 *The marker files should be updated only if the result is success or 453 *so that if an exception is thrown, the file's marker files will be 456 if(files != null && files.length > 0) { 457 sLogger.fine("Deployable files: " + Arrays.toString(files)); 458 for (int i=0; ((i < files [all...] |
/glassfish-3.1.2/deployment/javaee-core/src/main/java/org/glassfish/javaee/core/deployment/ |
H A D | JavaEEDeployer.java | 165 String[] files = libDir.list(); 166 if (files != null) { 167 for (int i=0; i<files.length; i++) { 168 if (files[i].endsWith(".jar") || files[i].endsWith(".zip")) { 169 sb.append(libDirPath + File.separator + files[i]); 250 * Clean any files and artifacts that were created during the execution
|
/glassfish-3.1.2/tests/logmonitor/ |
H A D | Filter.java | 62 Vector<File> files = new Vector<File>(); 64 // Get files / directories in the directory 73 files.add(entry); 79 files.addAll(listFiles(entry, filter, recurse)); 83 // Return collection of files 84 return files;
|