User: user57
Date: 01/09/26 19:30:40
Modified: . build.xml
Log:
o replaced custom command line option parsing in Main with gnu.getopt
o added -D to set system properties
o expanded the help text, moved examples to --help-examples
o setting -Djboss.boot.loader.name in run.sh and run.bat, so the cl help
bits know which program name to use (default to "jboss" when unknown)
o run.jar includes gnu.getopt.* (two classes and 6 properties files) this
makes run.jar about 17k.
Revision Changes Path
1.32 +14 -1 jboss/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss/build.xml,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- build.xml 2001/09/26 21:47:03 1.31
+++ build.xml 2001/09/27 02:30:39 1.32
@@ -10,7 +10,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.31 2001/09/26 21:47:03 d_jencks Exp $ -->
+<!-- $Id: build.xml,v 1.32 2001/09/27 02:30:39 user57 Exp $ -->
<project default="main" name="JBoss/Server">
@@ -232,6 +232,15 @@
</fileset>
</path>
+ <!-- GNU Getopt -->
+ <property name="gnu.getopt.root" value="${project.thirdparty}/gnu/getopt"/>
+ <property name="gnu.getopt.lib" value="${gnu.getopt.root}/lib"/>
+ <path id="gnu.getopt.classpath">
+ <fileset dir="${gnu.getopt.lib}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
<!-- JUnit -->
<property name="junit.junit.root" value="${project.thirdparty}/junit/junit"/>
<property name="junit.junit.lib" value="${junit.junit.root}/lib"/>
@@ -264,6 +273,7 @@
<path refid="sun.jts.classpath"/>
<path refid="apache.log4j.classpath"/>
<path refid="gjt.jpl-util.classpath"/>
+ <path refid="gnu.getopt.classpath"/>
<path refid="oswego.concurrent.classpath"/>
<path refid="junit.junit.classpath"/>
<path refid="sun.jsr77.classpath"/>
@@ -587,11 +597,14 @@
</jar>
<!-- Build run.jar -->
+ <!-- should use jlink for this, but jlink sucks -->
+ <unjar src="${gnu.getopt.lib}/getopt.jar" dest="${build.classes}"/>
<jar jarfile="${build.lib}/run.jar"
manifest="${build.etc}/run.mf">
<fileset dir="${build.classes}">
<include name="org/jboss/Main*"/>
<include name="org/jboss/Version*"/>
+ <include name="gnu/getopt/**"/>
</fileset>
<fileset dir="${build.resources}">
<include name="org/jboss/version.properties"/>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development