[jboss-cvs] jboss-seam/mail/buni-meldware ...
Peter Muir
peter at bleepbleep.org.uk
Thu Mar 1 11:31:30 EST 2007
User: pmuir
Date: 07/03/01 11:31:30
Modified: mail/buni-meldware mail.ear runonce.bsh
Log:
auto-create users and mailboxes for meldware
Revision Changes Path
1.2 +49 -52 jboss-seam/mail/buni-meldware/mail.ear
<<Binary file>>
1.2 +8 -5 jboss-seam/mail/buni-meldware/runonce.bsh
(In the diff below, changes in quantity of whitespace are not shown.)
Index: runonce.bsh
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/mail/buni-meldware/runonce.bsh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runonce.bsh 28 Feb 2007 01:18:23 -0000 1.1
+++ runonce.bsh 1 Mar 2007 16:31:30 -0000 1.2
@@ -1,7 +1,7 @@
void start() {
System.err.println("************************* RUN ONCE ******************");
- String runoncebsh = getJBossConfig() + java.io.File.separator + "deploy" + java.io.File.separator + "runonce.bsh";
- String runoncebshto = getJBossConfig() + java.io.File.separator + "conf" + java.io.File.separator + "runonce.bsh";
+ String runoncebsh = "default" + java.io.File.separator + "deploy" + java.io.File.separator + "runonce.bsh";
+ String runoncebshto = "default" + java.io.File.separator + "conf" + java.io.File.separator + "runonce.bsh";
java.io.File file = new java.io.File(runoncebsh);
java.io.File fileto = new java.io.File(runoncebshto);
if (fileto.exists()) {
@@ -62,8 +62,8 @@
java.util.List usersList = new java.util.ArrayList();
usersList.add("administrator");
-
-
+usersList.add("test");
+usersList.add("takeaway");
return (String[])usersList.toArray(new String[]{});
}
@@ -71,7 +71,8 @@
java.util.List passList = new java.util.ArrayList();
passList.add("administrator");
-
+passList.add("test");
+passList.add("takeaway");
return (String[]) passList.toArray(new String[]{});
}
@@ -79,6 +80,8 @@
List roles = new java.util.ArrayList();
roles.add(new String[]{"adminuser"});
+ roles.add(new String[]{"calendaruser", "mailuser"});
+ roles.add(new String[]{"mailuser"});
return (Object[])roles.toArray(new Object[]{});
}
More information about the jboss-cvs-commits
mailing list