From: Adrian B. <ej...@us...> - 2004-04-22 22:57:56
|
User: ejort Date: 04/04/22 15:57:47 Modified: src/resources/jmx/xmbean RemoveUser2Store.bsh RemoveUser3Store.bsh Log: Fix the xmbean persistence scripts I'd forgotten why I like static type checking :-) Revision Changes Path 1.3 +3 -3 jbosstest/src/resources/jmx/xmbean/RemoveUser2Store.bsh Index: RemoveUser2Store.bsh =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/resources/jmx/xmbean/RemoveUser2Store.bsh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RemoveUser2Store.bsh 27 Aug 2003 04:33:52 -0000 1.2 +++ RemoveUser2Store.bsh 22 Apr 2004 22:57:47 -0000 1.3 @@ -2,7 +2,7 @@ */ import java.io.File; import org.jboss.system.ServiceMBeanSupport; -import org.jboss.util.Strings; +import org.jboss.util.StringPropertyReplacer; ServiceMBeanSupport ctx = null; @@ -15,7 +15,7 @@ void create() { String storeFile = "${jboss.server.data.dir}/User2XMBean.ser"; - storeFile = Strings.replaceProperties(storeFile); + storeFile = StringPropertyReplacer.replaceProperties(storeFile); File file = new File(storeFile); boolean removed = file.delete(); ctx.log.info("Removed store file: "+file.getAbsolutePath()+" removed: "+removed); @@ -32,7 +32,7 @@ void destroy() { String storeFile = "${jboss.server.data.dir}/User2XMBean.ser"; - storeFile = Strings.replaceProperties(storeFile); + storeFile = StringPropertyReplacer.replaceProperties(storeFile); File file = new File(storeFile); boolean removed = file.delete(); ctx.log.info("Removed store file: "+file.getAbsolutePath()+" removed: "+removed); 1.3 +4 -4 jbosstest/src/resources/jmx/xmbean/RemoveUser3Store.bsh Index: RemoveUser3Store.bsh =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/resources/jmx/xmbean/RemoveUser3Store.bsh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RemoveUser3Store.bsh 30 Jan 2004 04:57:25 -0000 1.2 +++ RemoveUser3Store.bsh 22 Apr 2004 22:57:47 -0000 1.3 @@ -2,7 +2,7 @@ */ import java.io.File; import org.jboss.system.ServiceMBeanSupport; -import org.jboss.util.Strings; +import org.jboss.util.StringPropertyReplacer; ServiceMBeanSupport ctx = null; @@ -14,8 +14,8 @@ void create() { - String storeFile = "${jboss.server.data.dir}/User2XMBean.ser"; - storeFile = Strings.replaceProperties(storeFile); + String storeFile = "${jboss.server.data.dir}/User3XMBean.xml"; + storeFile = StringPropertyReplacer.replaceProperties(storeFile); File file = new File(storeFile); boolean removed = file.delete(); ctx.log.info("Removed store file: "+file.getAbsolutePath()+" removed: "+removed); @@ -32,7 +32,7 @@ void destroy() { String storeFile = "${jboss.server.data.dir}/User3XMBean.xml"; - storeFile = Strings.replaceProperties(storeFile); + storeFile = StringPropertyReplacer.replaceProperties(storeFile); File file = new File(storeFile); boolean removed = file.delete(); ctx.log.info("Removed store file: "+file.getAbsolutePath()+" removed: "+removed); |