|
From: <mic...@us...> - 2003-12-02 03:20:19
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx
In directory sc8-pr-cvs1:/tmp/cvs-serv23422/modules/scanner/src/com/babeldoc/scanner/jmx
Modified Files:
Tag: TEMP_MIKEA
ScannerServiceMBean.java ScannerService.java
Log Message:
Added the BabeldocUser property to the jmx scanner
Index: ScannerServiceMBean.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx/ScannerServiceMBean.java,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -C2 -d -r1.3.2.2 -r1.3.2.3
*** ScannerServiceMBean.java 18 Nov 2003 01:29:28 -0000 1.3.2.2
--- ScannerServiceMBean.java 1 Dec 2003 20:46:51 -0000 1.3.2.3
***************
*** 96,99 ****
--- 96,103 ----
public String getBabeldocHome() throws Exception;
+ public void setBabeldocUserHome(String home) throws Exception;
+
+ public String getBabeldocUserHome() throws Exception;
+
public String getStateString() throws Exception;
Index: ScannerService.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx/ScannerService.java,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -C2 -d -r1.5.2.2 -r1.5.2.3
*** ScannerService.java 18 Nov 2003 01:29:28 -0000 1.5.2.2
--- ScannerService.java 1 Dec 2003 20:46:51 -0000 1.5.2.3
***************
*** 101,106 ****
*/
public void setConfigUrl(String configUrl) throws Exception {
! this.configUrl = configUrl;
! getLog().logDebug("setConfigUrl: " + configUrl);
}
--- 101,106 ----
*/
public void setConfigUrl(String configUrl) throws Exception {
! this.configUrl = configUrl;
! getLog().logDebug("setConfigUrl: " + configUrl);
}
***************
*** 113,118 ****
*/
public String getConfigUrl() throws Exception {
! getLog().logDebug("getConfigUrl: " + configUrl);
! return this.configUrl;
}
--- 113,118 ----
*/
public String getConfigUrl() throws Exception {
! getLog().logDebug("getConfigUrl: " + configUrl);
! return this.configUrl;
}
***************
*** 141,144 ****
--- 141,157 ----
return (home);
}
+
+
+ public void setBabeldocUserHome(String home) throws Exception {
+ System.setProperty("babeldoc.user", home);
+ getLog().logDebug("setBabeldocUserHome: " + home);
+ }
+
+ public String getBabeldocUserHome() throws Exception {
+ String home = System.getProperty("babeldoc.user");
+ getLog().logDebug("getBabeldocUserHome: " + home);
+ return (home);
+ }
+
/**
***************
*** 171,174 ****
--- 184,188 ----
URL urlHome = new URL(babeldocHome);
setBabeldocHome(urlHome.getFile());
+ setBabeldocUserHome(urlHome.getFile());
}
|