|
static final String | WD_ROOT = "/BBWorkDir" |
|
◆ WorkingDirectory()
org.turro.wd.files.WorkingDirectory.WorkingDirectory |
( |
String |
bbUser, |
|
|
String |
bbHost, |
|
|
String |
bbPort, |
|
|
String |
bbContext |
|
) |
| |
◆ getBbContext()
String org.turro.wd.files.WorkingDirectory.getBbContext |
( |
| ) |
|
◆ getBbHost()
String org.turro.wd.files.WorkingDirectory.getBbHost |
( |
| ) |
|
◆ getBbPort()
String org.turro.wd.files.WorkingDirectory.getBbPort |
( |
| ) |
|
◆ getBbUser()
String org.turro.wd.files.WorkingDirectory.getBbUser |
( |
| ) |
|
◆ getSystemName()
String org.turro.wd.files.WorkingDirectory.getSystemName |
( |
| ) |
|
◆ initialize()
void org.turro.wd.files.WorkingDirectory.initialize |
( |
String |
bbCreateDir, |
|
|
String |
bbCreatePath |
|
) |
| throws ParseException |
Definition at line 71 of file WorkingDirectory.java.
72 wdHome =
new File(System.getProperty(
"user.home") +
WD_ROOT +
"/" + bbHost);
73 if(!wdHome.exists()) {
76 wdInternal =
new File(wdHome.getAbsolutePath() + WD_CONF_ROOT);
77 if(!wdInternal.exists()) {
80 wdCache =
new File(wdInternal.getAbsolutePath() + WD_CACHE);
84 if(bbCreateDir !=
null) {
88 d.setServerPath(bbCreatePath);
89 d.getSystemFile().mkdirs();
Directory getDir(String dir)
Directory addDirectory(String name)
static final String WD_ROOT
◆ reload()
void org.turro.wd.files.WorkingDirectory.reload |
( |
| ) |
throws ParseException |
◆ saveCache()
void org.turro.wd.files.WorkingDirectory.saveCache |
( |
| ) |
|
Definition at line 128 of file WorkingDirectory.java.
129 Document doc =
new Document(
new Element(
"bb-working-directory"));
132 OutputStreamWriter fw =
new OutputStreamWriter(
new FileOutputStream(wdCache),
"UTF-8");
133 Format fm = Format.getPrettyFormat();
134 fm.setEncoding(
"UTF-8");
135 XMLOutputter xo =
new XMLOutputter(fm);
138 }
catch (IOException ex) {
139 Logger.getLogger(
WorkingDirectory.class.getName()).log(Level.SEVERE,
null, ex);
void writeXML(Element root)
WorkingDirectory(String bbUser, String bbHost, String bbPort, String bbContext)
◆ WD_ROOT
final String org.turro.wd.files.WorkingDirectory.WD_ROOT = "/BBWorkDir" |
|
static |
The documentation for this class was generated from the following file: