msmith 02/02/03 22:40:17
Modified: src/contrib/webdavgui build.xml
src/contrib/webdavgui/src/bin runui.bat runui.sh
Log:
Updates to webdavgui build file to build a jar file, and updates to the
run scripts so they actually work.
The test client for the webdavgui code now runs successfully from
${slide.dist}/bin/runui.{bat,sh} after building it from here.
Revision Changes Path
1.4 +24 -1 jakarta-slide/src/contrib/webdavgui/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/contrib/webdavgui/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 25 Jul 2001 06:12:37 -0000 1.3
+++ build.xml 4 Feb 2002 06:40:17 -0000 1.4
@@ -1,4 +1,4 @@
-<project name="Slide" default="main" basedir=".">
+<project name="Slide" default="dist" basedir=".">
<!-- =================================================================== -->
@@ -96,6 +96,7 @@
<pathelement location="${xmlapi.jar}"/>
<pathelement location="${httpclient.jar}"/>
<pathelement location="${slide.build}/classes"/>
+ <pathelement location="${slide.build}/client/classes"/>
</path>
@@ -235,6 +236,27 @@
</target>
+ <target name="dist-prepare">
+ <mkdir dir="${webdavclient.dist}" />
+ <mkdir dir="${webdavclient.dist}/bin" />
+ <mkdir dir="${webdavclient.dist}/lib" />
+ </target>
+
+ <target name="dist" depends="prepare, main, dist-prepare">
+ <copy todir="${webdavclient.dist}/bin">
+ <fileset dir="src/bin">
+ <include name="**/*.bat" />
+ <include name="**/*.sh" />
+ </fileset>
+ </copy>
+ <jar jarfile="${webdavclient.dist}/lib/webdavgui.jar"
+ basedir="${webdavclient.build}/classes"
+ includes="org/apache/webdav/ui/**,images/**">
+ </jar>
+ </target>
+
+
+
<!-- =================================================================== -->
<!-- Clean build and distribution directories of the DAV client -->
@@ -242,6 +264,7 @@
<target name="clean">
<delete dir="${webdavclient.build}/classes/images"/>
<delete dir="${webdavclient.build}/classes/org/apache/webdav/ui"/>
+ <delete file="${webdavclient.dist}/lib/webdavgui.jar"/>
</target>
1.4 +2 -2 jakarta-slide/src/contrib/webdavgui/src/bin/runui.bat
Index: runui.bat
===================================================================
RCS file: /home/cvs/jakarta-slide/src/contrib/webdavgui/src/bin/runui.bat,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- runui.bat 1 Sep 2001 17:36:12 -0000 1.3
+++ runui.bat 4 Feb 2002 06:40:17 -0000 1.4
@@ -1,3 +1,3 @@
@echo off
-set
CP2=%CLASSPATH%;./classes/;./lib/webdav.jar;./lib/jaxp.jar;./lib/crimson.jar;./lib/commons-httpclient.jar
-java -classpath %CP2% org.apache.webdav.ui.lab.Launcher %1 %2 %3 %4 %5 %6 %7 %8 %9
\ No newline at end of file
+set
CP2=%CLASSPATH%;./lib/webdavgui.jar;./classes/;./lib/slide-webdavlib.jar;./lib/jaxp.jar;./lib/crimson.jar;./lib/commons-httpclient.jar
+java -classpath %CP2% org.apache.webdav.ui.lab.Launcher %1 %2 %3 %4 %5 %6 %7 %8 %9
1.4 +2 -2 jakarta-slide/src/contrib/webdavgui/src/bin/runui.sh
Index: runui.sh
===================================================================
RCS file: /home/cvs/jakarta-slide/src/contrib/webdavgui/src/bin/runui.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- runui.sh 1 Sep 2001 17:36:12 -0000 1.3
+++ runui.sh 4 Feb 2002 06:40:17 -0000 1.4
@@ -3,8 +3,8 @@
# Helper to run the command line client
#
-CLASSPATH=${CLASSPATH}:../classes:../lib/webdav.jar:../lib/jaxp.jar:../lib/crimson.jar:../lib/commons-httpclient.jar
+CLASSPATH=${CLASSPATH}:../classes:../lib/webdavgui.jar:../lib/slide-webdavlib.jar:../lib/jaxp.jar:../lib/crimson.jar:../lib/commons-httpclient.jar
export CLASSPATH
-java org.apache.webdav.ui.lab.Launcher $*
\ No newline at end of file
+java org.apache.webdav.ui.lab.Launcher $*
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>