I added another -B|-bootlib option to prepend jars to the bootclasspath. The
3.2 branch code diff against 3.2.5 is shown below.
| [EMAIL PROTECTED] jboss]$ cvs diff -r JBoss_3_2_5 Main.java
| Index: Main.java
| ===================================================================
| RCS file: /cvsroot/jboss/jboss-system/src/main/org/jboss/Main.java,v
| retrieving revision 1.17.2.13
| retrieving revision 1.17.2.16
| diff -r1.17.2.13 -r1.17.2.16
| 12a13
| > import java.lang.reflect.Method;
| 13a15
| > import java.net.URLDecoder;
| 25d26
| < import org.jboss.system.server.ServerLoader;
| 26a28
| > import org.jboss.system.server.ServerLoader;
| 44c46
| < * @version $Revision: 1.17.2.13 $
| ---
| > * @version $Revision: 1.17.2.16 $
| 52c54
| < private String jmxLibs = "jboss-jmx.jar,dom4j.jar,gnu-regexp.jar";
| ---
| > private String jmxLibs =
"jboss-jmx.jar,dom4j.jar,jaxen.jar,gnu-regexp.jar";
| 55a58,62
| > /** Extra jars added to the start of the boot classpath. This can be
used
| > to override jboss /lib boot classes
| > */
| > private List bootLibraries = new LinkedList();
| >
| 98c105
| < path = java.net.URLDecoder.decode(path);
| ---
| > path = urlDecode(path);
| 116a124,129
| > // Add any extra libraries
| > for (int i = 0; i < bootLibraries.size(); i++)
| > {
| > loader.addLibrary((String)bootLibraries.get(i));
| > }
| >
| 194a208
| > new LongOpt("bootlib", LongOpt.REQUIRED_ARGUMENT, null, 'B'),
| 236a251
| > System.out.println(" -B, --bootlib=<filename> Add
an extra library to the front bootclasspth");
| 340a356,360
| > case 'B':
| > arg = getopt.getOptarg();
| > bootLibraries.add(arg);
| > break;
| >
| 383a404,424
| > * Decode the path depending upon whether we have java1.4 or java1.3
installed
| > *
| > * @param path the path to decode
| > * @return the decoded path
| > * @throws Exception for any error
| > */
| > private String urlDecode(String path) throws Exception
| > {
| > Method decode;
| > try
| > {
| > decode = URLDecoder.class.getMethod("decode", new Class[] {
String.class, String.class });
| > return (String) decode.invoke(null, new Object[] { path, "UTF-8"
});
| > }
| > catch (NoSuchMethodException e)
| > {
| > return URLDecoder.decode(path);
| > }
| > }
| >
| > /**
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859747#3859747
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859747
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user