KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > servermgmt > pe > PEFileLayout


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.admin.servermgmt.pe;
25
26 import java.util.Vector JavaDoc;
27 import java.util.Iterator JavaDoc;
28 import java.io.File JavaDoc;
29
30 import com.sun.enterprise.util.OS;
31 import com.sun.enterprise.util.io.FileUtils;
32 import com.sun.enterprise.util.i18n.StringManager;
33
34 import com.sun.enterprise.admin.servermgmt.RepositoryException;
35 import com.sun.enterprise.admin.servermgmt.RepositoryConfig;
36 import com.sun.enterprise.util.SystemPropertyConstants;
37
38 import com.sun.enterprise.security.store.PasswordAdapter;
39
40 public class PEFileLayout
41 {
42     private static final StringManager _strMgr =
43         StringManager.getManager(PEFileLayout.class);
44         
45     public static final String JavaDoc DEFAULT_INSTANCE_NAME =
46         SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME;
47    /* above field is taken from a central place */
48     protected final RepositoryConfig _config;
49     
50          
51     public PEFileLayout(RepositoryConfig config) {
52         _config = config;
53     }
54     
55     public void createRepositoryDirectories() throws RepositoryException
56     {
57         createDirectory(getRepositoryRootDir());
58         createDirectory(getRepositoryDir());
59         createDirectory(getConfigRoot());
60         createDirectory(getDocRoot());
61         createDirectory(getJavaWebStartRoot());
62         createDirectory(getLibDir());
63         createDirectory(getBinDir());
64         createDirectory(getClassesDir());
65         createDirectory(getExtLibDir());
66         createDirectory(getAppLibsDir());
67         createDirectory(getLogsDir());
68         createDirectory(getGeneratedDir());
69         createDirectory(getJspRootDir());
70         createDirectory(getEjbRootDir());
71         createDirectory(getXmlRootDir());
72         createDirectory(getApplicationsRootDir());
73         createDirectory(getJ2EEAppsDir());
74         createDirectory(getJ2EEModulesDir());
75         createDirectory(getLifecycleModulesDir());
76         createDirectory(getMbeansDir());
77         createDirectory(getSessionStore());
78         createDirectory(getAutoDeployDir());
79         createDirectory(getAutoDeployStatusDir());
80         createDirectory(getTimerDatabaseDir());
81     }
82        
83     protected RepositoryConfig getConfig() {
84         return _config;
85     }
86     
87     public void createRepositoryRoot() throws RepositoryException
88     {
89         createDirectory(getRepositoryRootDir());
90     }
91     
92     protected void createDirectory(File JavaDoc dir) throws RepositoryException
93     {
94         if (!dir.exists()) {
95             try {
96                 if (!dir.mkdirs()) {
97                     throw new RepositoryException(_strMgr.getString("directoryCreationError",
98                         dir));
99                 }
100         } catch (Exception JavaDoc e) {
101                 throw new RepositoryException(_strMgr.getString("directoryCreationError",
102                         dir), e);
103             }
104         }
105     }
106     
107     public static final String JavaDoc CONFIG_DIR = "config";
108     public File JavaDoc getConfigRoot()
109     {
110         return new File JavaDoc(getRepositoryDir(), CONFIG_DIR);
111     }
112     
113     public static final String JavaDoc CONFIG_BACKUP_DIR = "backup";
114     public File JavaDoc getRepositoryBackupRoot()
115     {
116         return new File JavaDoc(getConfigRoot(), CONFIG_BACKUP_DIR);
117     }
118
119     public static final String JavaDoc DOC_ROOT_DIR = "docroot";
120         public File JavaDoc getDocRoot()
121     {
122
123         return new File JavaDoc(getRepositoryDir(), DOC_ROOT_DIR);
124     }
125
126     public static final String JavaDoc JAVA_WEB_START_DIR = "java-web-start";
127         public File JavaDoc getJavaWebStartRoot()
128     {
129
130         return new File JavaDoc(getRepositoryDir(), JAVA_WEB_START_DIR);
131     }
132     
133     public static final String JavaDoc LIB_DIR = "lib";
134     public File JavaDoc getLibDir()
135     {
136         return new File JavaDoc(getRepositoryDir(), LIB_DIR);
137     }
138
139     public File JavaDoc getBinDir()
140     {
141         return new File JavaDoc(getRepositoryDir(), BIN_DIR);
142     }
143
144     public static final String JavaDoc CLASSES_DIR = "classes";
145     public File JavaDoc getClassesDir()
146     {
147         return new File JavaDoc(getLibDir(), CLASSES_DIR);
148     }
149
150     public static final String JavaDoc APPLIBS_DIR = "applibs";
151     public File JavaDoc getAppLibsDir()
152     {
153         return new File JavaDoc(getLibDir(), APPLIBS_DIR);
154     }
155
156     public static final String JavaDoc EXTLIB_DIR = "ext";
157     public File JavaDoc getExtLibDir()
158     {
159         return new File JavaDoc(getLibDir(), EXTLIB_DIR);
160     }
161     
162     public static final String JavaDoc TIMERDB_DIR = "databases";
163     public File JavaDoc getTimerDatabaseDir()
164     {
165         return new File JavaDoc(getLibDir(), TIMERDB_DIR);
166     }
167     
168     public static final String JavaDoc LOGS_DIR = "logs";
169     public File JavaDoc getLogsDir()
170     {
171         return new File JavaDoc(getRepositoryDir(), LOGS_DIR);
172     }
173     
174     public static final String JavaDoc APPS_ROOT_DIR = "applications";
175     public File JavaDoc getApplicationsRootDir()
176     {
177         return new File JavaDoc(getRepositoryDir(), APPS_ROOT_DIR);
178     }
179     
180     public static final String JavaDoc J2EE_APPS_DIR = "j2ee-apps";
181     public File JavaDoc getJ2EEAppsDir()
182     {
183         return new File JavaDoc(getApplicationsRootDir(), J2EE_APPS_DIR);
184     }
185
186     public static final String JavaDoc J2EE_MODULES_DIR = "j2ee-modules";
187     public File JavaDoc getJ2EEModulesDir()
188     {
189         return new File JavaDoc(getApplicationsRootDir(), J2EE_MODULES_DIR);
190     }
191
192     public static final String JavaDoc LIFECYCLE_MODULES_DIR = "lifecycle-modules";
193     public File JavaDoc getLifecycleModulesDir()
194     {
195         return new File JavaDoc(getApplicationsRootDir(), LIFECYCLE_MODULES_DIR);
196     }
197
198     public static final String JavaDoc MBEAN_FOLDER_NAME = "mbeans";
199     public File JavaDoc getMbeansDir()
200     {
201         return new File JavaDoc(getApplicationsRootDir(), MBEAN_FOLDER_NAME);
202     }
203     
204     public static final String JavaDoc GENERATED_DIR = "generated";
205     public File JavaDoc getGeneratedDir()
206     {
207         return new File JavaDoc(getRepositoryDir(), GENERATED_DIR);
208     }
209
210     // Begin EE: 4946914 - cluster deployment support
211

212     public static final String JavaDoc POLICY_DIR = "policy";
213     public static final String JavaDoc POLICY_FILE_EXT = "granted.policy";
214     public File JavaDoc getPolicyDir()
215     {
216         return new File JavaDoc(getGeneratedDir(), POLICY_DIR);
217     }
218
219     // End EE: 4946914 - cluster deployment support
220

221     public static final String JavaDoc JSP_DIR = "jsp";
222     public File JavaDoc getJspRootDir()
223     {
224         return new File JavaDoc(getGeneratedDir(), JSP_DIR);
225     }
226
227     public static final String JavaDoc EJB_DIR = "ejb";
228     public File JavaDoc getEjbRootDir()
229     {
230         return new File JavaDoc(getGeneratedDir(), EJB_DIR);
231     }
232
233     public static final String JavaDoc XML_DIR = "xml";
234     public File JavaDoc getXmlRootDir()
235     {
236         return new File JavaDoc(getGeneratedDir(), XML_DIR);
237     }
238
239     public File JavaDoc getRepositoryDir()
240     {
241         return new File JavaDoc(getRepositoryRootDir(), getConfig().getRepositoryName());
242     }
243
244     public static final String JavaDoc DOMAIN_XML_FILE = "domain.xml";
245     public File JavaDoc getDomainConfigFile()
246     {
247         return new File JavaDoc(getConfigRoot(), DOMAIN_XML_FILE);
248     }
249     
250     public File JavaDoc getDomainConfigBackupFile()
251     {
252         return new File JavaDoc(getRepositoryBackupRoot(), DOMAIN_XML_FILE);
253     }
254
255     public static final String JavaDoc IMQ = "imq";
256     public File JavaDoc getImqDir()
257     {
258         return new File JavaDoc(getInstallRootDir(), IMQ);
259     }
260
261     public static final String JavaDoc IMQ_VAR_DIR = "imq";
262     public File JavaDoc getImqVarHome()
263     {
264         return new File JavaDoc(getRepositoryDir(), IMQ_VAR_DIR);
265     }
266
267     public static final String JavaDoc BIN_DIR = "bin";
268     public File JavaDoc getImqBinDir()
269     {
270         return new File JavaDoc(getImqDir(), BIN_DIR);
271     }
272
273     public File JavaDoc getImqLibDir()
274     {
275         return new File JavaDoc(getImqDir(), LIB_DIR);
276     }
277
278     public File JavaDoc getInstallRootDir()
279     {
280         return getCanonicalFile(new File JavaDoc(getConfig().getInstallRoot()));
281     }
282
283     public File JavaDoc getRepositoryRootDir()
284     {
285         return getCanonicalFile(new File JavaDoc(getConfig().getRepositoryRoot()));
286     }
287
288     public static final String JavaDoc SHARE = "share";
289     public File JavaDoc getShareDir()
290     {
291         return new File JavaDoc(getInstallRootDir(), SHARE);
292     }
293
294     public File JavaDoc getWebServicesLibDir()
295     {
296         return new File JavaDoc(getShareDir(), LIB_DIR);
297     }
298
299 //$INSTALL_ROOT/lib/install/templates
300
public static final String JavaDoc INSTALL_DIR = "install";
301     public static final String JavaDoc TEMPLATES_DIR = "templates";
302
303     protected String JavaDoc _templatesSubdir = null;
304
305     protected String JavaDoc getTemplatesSubDir() {
306         return _templatesSubdir;
307     }
308     
309     public File JavaDoc getTemplatesDir()
310     {
311         final File JavaDoc lib = new File JavaDoc(getInstallRootDir(), LIB_DIR);
312         final File JavaDoc install = new File JavaDoc(lib, INSTALL_DIR);
313         File JavaDoc templates = new File JavaDoc(install, TEMPLATES_DIR);
314         if (getTemplatesSubDir() != null) {
315             return new File JavaDoc(templates, getTemplatesSubDir());
316         } else {
317             return templates;
318         }
319     }
320
321 //$INSTALL_ROOT/lib/install/applications
322

323     public static final String JavaDoc APPLICATIONS_DIR = "applications";
324     public File JavaDoc getInstallApplicationsDir()
325     {
326         final File JavaDoc lib = new File JavaDoc(getInstallRootDir(), LIB_DIR);
327         final File JavaDoc install = new File JavaDoc(lib, INSTALL_DIR);
328         return new File JavaDoc(install, APPLICATIONS_DIR);
329     }
330
331 //$INSTALL_ROOT/lib/install/databases
332

333     public static final String JavaDoc DATABASES_DIR = "databases";
334     public File JavaDoc getInstallDatabasesDir()
335     {
336         final File JavaDoc lib = new File JavaDoc(getInstallRootDir(), LIB_DIR);
337         final File JavaDoc install = new File JavaDoc(lib, INSTALL_DIR);
338         return new File JavaDoc(install, DATABASES_DIR);
339     }
340
341 //$INSTALL_ROOT/lib/dtds
342

343     public static final String JavaDoc DTDS_DIR = "dtds";
344     public File JavaDoc getDtdsDir()
345     {
346         final File JavaDoc lib = new File JavaDoc(getInstallRootDir(), LIB_DIR);
347         return new File JavaDoc(lib, DTDS_DIR);
348     }
349
350 //$INSTALL_ROOT/lib/dtds
351

352     public static final String JavaDoc DOMAIN_DTD = "sun-domain_1_2.dtd";
353     public File JavaDoc getDtdFile()
354     {
355         return new File JavaDoc(getDtdsDir(), DOMAIN_DTD);
356     }
357
358     public static final String JavaDoc DOMAIN_XML_TEMPLATE = "default-domain.xml.template";
359     public File JavaDoc getDomainXmlTemplate()
360     {
361         return new File JavaDoc(getTemplatesDir(), DOMAIN_XML_TEMPLATE);
362     }
363
364     public File JavaDoc getDomainXmlTemplate(String JavaDoc templateName)
365     {
366         // check to see if the user has specified a template file to be used for
367
// domain creation. Assumed that the user specified template file
368
// exists in the INSTALL_ROOT/lib/install/templates if path is not absolute.
369
if(new File JavaDoc(templateName).isAbsolute())
370             return new File JavaDoc(templateName);
371         else
372             return new File JavaDoc(getTemplatesDir(), templateName);
373     }
374
375     public static final String JavaDoc IMQBROKERD_UNIX = "imqbrokerd";
376     public static final String JavaDoc IMQBROKERD_WIN = "imqbrokerd.exe";
377     public static final String JavaDoc IMQBROKERD = isWindows() ? IMQBROKERD_WIN : IMQBROKERD_UNIX;
378     public File JavaDoc getImqBrokerExecutable()
379     {
380         return new File JavaDoc(getImqBinDir(), IMQBROKERD);
381     }
382
383     public static final String JavaDoc START_SERV_UNIX = "startserv";
384     public static final String JavaDoc START_SERV_WIN = "startserv.bat";
385     public static final String JavaDoc START_SERV_OS = isWindows() ? START_SERV_WIN : START_SERV_UNIX;
386     public File JavaDoc getStartServ()
387     {
388         return new File JavaDoc(getBinDir(), START_SERV_OS);
389     }
390
391     public static final String JavaDoc START_SERV_TEMPLATE_UNIX = "startserv.tomcat.template";
392     public static final String JavaDoc START_SERV_TEMPLATE_WIN = "startserv.tomcat.bat.template";
393     public static final String JavaDoc START_SERV_TEMPLATE_OS = isWindows() ? START_SERV_TEMPLATE_WIN :
394         START_SERV_TEMPLATE_UNIX;
395
396     public File JavaDoc getStartServTemplate()
397     {
398         return new File JavaDoc(getTemplatesDir(), START_SERV_TEMPLATE_OS);
399     }
400
401     public static final String JavaDoc STOP_SERV_UNIX = "stopserv";
402     public static final String JavaDoc STOP_SERV_WIN = "stopserv.bat";
403     public static final String JavaDoc STOP_SERV_OS = isWindows() ? STOP_SERV_WIN : STOP_SERV_UNIX;
404     
405     public File JavaDoc getStopServ()
406     {
407         return new File JavaDoc(getBinDir(), STOP_SERV_OS);
408     }
409
410     public static final String JavaDoc STOP_SERV_TEMPLATE_UNIX = "stopserv.tomcat.template";
411     public static final String JavaDoc STOP_SERV_TEMPLATE_WIN = "stopserv.tomcat.bat.template";
412     public static final String JavaDoc STOP_SERV_TEMPLATE_OS = isWindows() ? STOP_SERV_TEMPLATE_WIN :
413         STOP_SERV_TEMPLATE_UNIX;
414     public File JavaDoc getStopServTemplate()
415     {
416         return new File JavaDoc(getTemplatesDir(), STOP_SERV_TEMPLATE_OS);
417     }
418
419     public static final String JavaDoc POLICY_FILE = "server.policy";
420     public File JavaDoc getPolicyFileTemplate()
421     {
422         return new File JavaDoc(getTemplatesDir(), POLICY_FILE);
423     }
424
425     public File JavaDoc getPolicyFile()
426     {
427         return new File JavaDoc(getConfigRoot(), POLICY_FILE);
428     }
429
430
431     public static final String JavaDoc STUB_FILE = "admch";
432     public File JavaDoc getStubFile()
433     {
434         return new File JavaDoc(getConfigRoot(), STUB_FILE);
435     }
436
437     public static final String JavaDoc SEED_FILE = "admsn";
438     public File JavaDoc getSeedFile()
439     {
440         return new File JavaDoc(getConfigRoot(), SEED_FILE);
441     }
442
443     public File JavaDoc getInstallConfigRoot()
444     {
445         return new File JavaDoc(getInstallRootDir(), CONFIG_DIR);
446     }
447
448     public static final String JavaDoc ACC_XML_TEMPLATE = "sun-acc.xml.template";
449     public File JavaDoc getAppClientContainerXmlTemplate()
450     {
451         return new File JavaDoc(getTemplatesDir(), ACC_XML_TEMPLATE);
452     }
453
454     public static final String JavaDoc ACC_XML = "sun-acc.xml";
455     public File JavaDoc getAppClientContainerXml()
456     {
457         return new File JavaDoc(getConfigRoot(), ACC_XML);
458     }
459
460     public static final String JavaDoc SESSION_STORE = "session-store";
461     public File JavaDoc getSessionStore()
462     {
463         return new File JavaDoc(getRepositoryDir(), SESSION_STORE);
464     }
465
466     public static final String JavaDoc AUTO_DEPLOY = "autodeploy";
467     public File JavaDoc getAutoDeployDir()
468     {
469         return new File JavaDoc(getRepositoryDir(), AUTO_DEPLOY);
470     }
471
472     public static final String JavaDoc AUTO_DEPLOY_STATUS = ".autodeploystatus";
473     public File JavaDoc getAutoDeployStatusDir()
474     {
475         return new File JavaDoc(getAutoDeployDir(), AUTO_DEPLOY_STATUS);
476     }
477
478     public static final String JavaDoc KEY_FILE_TEMPLATE = "keyfile";
479     public File JavaDoc getKeyFileTemplate()
480     {
481         return new File JavaDoc(getTemplatesDir(), KEY_FILE_TEMPLATE);
482     }
483
484     public static final String JavaDoc KEY_FILE = "keyfile";
485     public File JavaDoc getKeyFile()
486     {
487         return new File JavaDoc(getConfigRoot(), KEY_FILE);
488     }
489
490     public static final String JavaDoc ADMIN_KEY_FILE = "admin-keyfile";
491     public File JavaDoc getAdminKeyFile()
492     {
493         return new File JavaDoc(getConfigRoot(), ADMIN_KEY_FILE);
494     }
495
496     public File JavaDoc getBackupKeyFile()
497     {
498         return new File JavaDoc(getRepositoryBackupRoot(), KEY_FILE);
499     }
500
501     public static final String JavaDoc INDEX_FILE = "index.html";
502     public File JavaDoc getIndexFileTemplate()
503     {
504         return new File JavaDoc(getTemplatesDir(), INDEX_FILE);
505     }
506
507     public File JavaDoc getIndexFile()
508     {
509         return new File JavaDoc(getDocRoot(), INDEX_FILE);
510     }
511
512     public static final String JavaDoc DEFAULT_WEB_XML = "default-web.xml";
513     public File JavaDoc getDefaultWebXmlTemplate()
514     {
515         return new File JavaDoc(getTemplatesDir(), DEFAULT_WEB_XML);
516     }
517
518     public File JavaDoc getDefaultWebXml()
519     {
520         return new File JavaDoc(getConfigRoot(), DEFAULT_WEB_XML);
521     }
522
523     public static final String JavaDoc LOGIN_CONF = "login.conf";
524     public File JavaDoc getLoginConfTemplate()
525     {
526         return new File JavaDoc(getTemplatesDir(), LOGIN_CONF);
527     }
528
529     public File JavaDoc getLoginConf()
530     {
531         return new File JavaDoc(getConfigRoot(), LOGIN_CONF);
532     }
533     
534     public static final String JavaDoc WSSSERVERCONFIGOLD = "wss-server-config-1.0.xml";
535     public File JavaDoc getWssServerConfigOldTemplate()
536     {
537         return new File JavaDoc(getTemplatesDir(), WSSSERVERCONFIGOLD);
538     }
539
540     public File JavaDoc getWssServerConfigOld()
541     {
542         return new File JavaDoc(getConfigRoot(), WSSSERVERCONFIGOLD);
543     }
544     
545     public static final String JavaDoc WSSSERVERCONFIG = "wss-server-config-2.0.xml";
546     public File JavaDoc getWssServerConfigTemplate()
547     {
548         return new File JavaDoc(getTemplatesDir(), WSSSERVERCONFIG);
549     }
550
551     public File JavaDoc getWssServerConfig()
552     {
553         return new File JavaDoc(getConfigRoot(), WSSSERVERCONFIG);
554     }
555     
556     public static final String JavaDoc KEYSTORE = "keystore.jks";
557     public File JavaDoc getKeyStore()
558     {
559         return new File JavaDoc(getConfigRoot(), KEYSTORE);
560     }
561       
562     public static final String JavaDoc TRUSTSTORE_TEMPLATE = "cacerts.jks";
563     public File JavaDoc getTrustStoreTemplate()
564     {
565         return new File JavaDoc(getTemplatesDir(), TRUSTSTORE_TEMPLATE);
566     }
567
568     public static final String JavaDoc TRUSTSTORE = "cacerts.jks";
569     public File JavaDoc getTrustStore()
570     {
571         return new File JavaDoc(getConfigRoot(), TRUSTSTORE);
572     }
573
574     public static final String JavaDoc MASTERPASSWORD_FILE = "master-password";
575     public File JavaDoc getMasterPasswordFile()
576     {
577         return new File JavaDoc(getRepositoryDir(), MASTERPASSWORD_FILE);
578     }
579         
580     public static final String JavaDoc PASSWORD_ALIAS_KEYSTORE = PasswordAdapter.PASSWORD_ALIAS_KEYSTORE;
581     public File JavaDoc getPasswordAliasKeystore()
582     {
583         return new File JavaDoc(getConfigRoot(), PASSWORD_ALIAS_KEYSTORE);
584     }
585     
586     public static final String JavaDoc TIMERDB_WAL_TEMPLATE = "ejbtimer$1.wal";
587     public File JavaDoc getTimerWalTemplate() {
588     return new File JavaDoc(getInstallDatabasesDir(), TIMERDB_WAL_TEMPLATE);
589     }
590
591     public static final String JavaDoc TIMERDB_WAL = "ejbtimer$1.wal";
592     public File JavaDoc getTimerWal() {
593     return new File JavaDoc(getTimerDatabaseDir(), TIMERDB_WAL);
594     }
595
596     public static final String JavaDoc TIMERDB_DBN_TEMPLATE = "ejbtimer.dbn";
597     public File JavaDoc getTimerDbnTemplate() {
598     return new File JavaDoc(getInstallDatabasesDir(), TIMERDB_DBN_TEMPLATE);
599     }
600
601     public static final String JavaDoc TIMERDB_DBN = "ejbtimer.dbn";
602     public File JavaDoc getTimerDbn() {
603     return new File JavaDoc(getTimerDatabaseDir(), TIMERDB_DBN);
604     }
605     public static final String JavaDoc DERBY_SQL_FILE = "ejbtimer_derby.sql";
606     public static final String JavaDoc EJB_TIMER_TABLE_NAME = "EJB__TIMER__TBL"; //comes from sql file
607
public File JavaDoc getDerbyEjbTimerSqlFile() {
608     return new File JavaDoc(getInstallDatabasesDir(), DERBY_SQL_FILE);
609     }
610     public static final String JavaDoc DERBY_DATABASE_DIRECTORY = "ejbtimer";
611     public File JavaDoc getDerbyEjbTimerDatabaseDirectory() {
612         return new File JavaDoc(getTimerDatabaseDir(), DERBY_DATABASE_DIRECTORY);
613         //this directory must not exist before creating the derby database
614
}
615
616     protected static boolean isWindows()
617     {
618     return OS.isWindows();
619     }
620
621     File JavaDoc getCanonicalFile(File JavaDoc f)
622     {
623         return FileUtils.safeGetCanonicalFile(f);
624     }
625 }
626
Popular Tags