Here it is (attached). Hopefully it won't get stripped.
In summary, I added a property "cmd.javadoc.path" at the top.
Then I added a <javadoc> tag inside the "javadoc-clientlib" target (an
exact cut and paste of the one that's there, just changed the
parameters). I decided to put it in the same target so it will be
javadoc'd by default. I also think the name of the target is still
appropriate because the commandline could be considered part of the
client. It could, of course, easily be split out into it's own target.
Cheers,
Matt
-----Original Message-----
From: James Mason [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:34 PM
To: Slide Users Mailing List
Subject: Re: Can I use Slide to send files to a WebDav server?
Matt Reason wrote:
> Good tip on the command line client.
>
> Am I mistaken or is there no packaged javadoc for the command line
> client? Am I also mistaken that there is not target to create the
> javadoc for the command line client in the packaged build.xml? I must
> be missing something.
You could be right. I'll have to double-check but it wouldn't surprise
me if there was no target.
>
> If I'm not missing something, then maybe I should share the target I
> wrote to javadoc the command line package. IMHO it would make a
helpful
> addition to the build.xml since newbies are going to want to see what
> that thing is doing since it's the place to start.
This would be great!
-James
>
> Matt
>
>
> -----Original Message-----
> From: James Mason [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 17, 2004 1:41 PM
> To: Slide Users Mailing List
> Subject: Re: Can I use Slide to send files to a WebDav server?
>
>
> There are a few examples on the Wiki. Also, the source to the command
> line client is a fairly good reference.
>
> -James
>
> Matt Reason wrote:
>
>>Thanks, Warwick. I missed that.
>>
>>
>>>>From the FAQ, there are no examples. Is that still true? How can
one
>>
>>become familiar with using the client then?
>>
>>
>>
>>-----Original Message-----
>>From: Warwick Burrows [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, August 17, 2004 11:09 AM
>>To: 'Slide Users Mailing List'
>>Subject: RE: Can I use Slide to send files to a WebDav server?
>>
>>
>>
>>You can use the Slide WebDAV client to write to your WebDAV server.
>
> The
>
>>webapp you see is the Slide WebDAV server itself. The client
>>communicates
>>with any DAV server. You can download the client package separately
>
> from
>
>>the
>>Slide server package. The latest version is the 2.1 beta which was
>>released
>>last week.
>>
>>Warwick
>>
>>
>>
>>-----Original Message-----
>>From: Matt Reason [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, August 17, 2004 12:51 PM
>>To: [EMAIL PROTECTED]
>>Subject: Can I use Slide to send files to a WebDav server?
>>
>>
>>
>>Hello,
>>
>>Sorry for being the confused new guy - but I'm a little lost. I have
>
> a
>
>>java
>>process that yanks a large datafile from my company's database and
>
> then
>
>>I
>>need to deposit the file on another company's WebDav server.
>>
>>It looks to me, from the downloads page, that Slide is an entire
>>web-app.
>>
>>All I (think) I need is a couple of jars out of that package so I can
>>call
>>WebDav methods from my application. Is that true? Anybody know what
>>jars I
>>need and if there are any examples lying around. Or am I looking in
>
> the
>
>>wrong spot altogether?
>>
>>Thanks in advance,
>>
>>Matt
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<project name="Slide-WebDAV-Clientlib" default="all" basedir=".">
<!-- =================================================================== -->
<!-- Compiler Options -->
<!-- =================================================================== -->
<!-- Should Java compilations set the 'debug' compiler option? -->
<property name="compile.debug" value="true"/>
<!-- Should Java compilations set the 'deprecation' compiler option? -->
<property name="compile.deprecation" value="true"/>
<!-- Should Java compilations set the 'optimize' compiler option? -->
<property name="compile.optimize" value="true"/>
<property name="build.compiler" value="classic"/>
<!-- =================================================================== -->
<!-- Project Properties -->
<!-- =================================================================== -->
<property name="name" value="Jakarta-Slide"/>
<property name="year" value="2004"/>
<property name="version" value="2.0"/>
<property name="project" value="jakarta-slide"/>
<property name="clientlib.final.name" value="${project}-webdavlib-${version}"/>
<property name="cmd.final.name" value="${project}-commandline-${version}"/>
<property name="archive.src.name" value="${project}-webdavclient-src-${version}"/>
<property name="archive.bin.name" value="${project}-webdavclient-bin-${version}"/>
<!-- =================================================================== -->
<!-- Build Properties -->
<!-- =================================================================== -->
<property name="slide.build" value="./build"/>
<property name="clientlib.build" value="${slide.build}/clientlib"/>
<property name="cmd.build" value="${slide.build}/commandline"/>
<property name="slide.dist" value="./dist"/>
<property name="clientlib.dist" value="${slide.dist}"/>
<property name="cmd.dist" value="${slide.dist}"/>
<property name="clientlib.javadoc.path" value="doc/clientjavadoc"/>
<property name="cmd.javadoc.path" value="doc/commandline"/>
<!-- =================================================================== -->
<!-- Dependencies Properties -->
<!-- =================================================================== -->
<property name="commons-httpclient.jar" value="lib/commons-httpclient.jar"/>
<property name="antlr.jar" value="lib/antlr.jar"/>
<!-- =================================================================== -->
<!-- Classpaths -->
<!-- =================================================================== -->
<path id="clientlib.classpath">
<pathelement location="${commons-httpclient.jar}"/>
</path>
<path id="cmd.classpath">
<pathelement location="${antlr.jar}"/>
<pathelement location="${commons-httpclient.jar}"/>
<pathelement location="${clientlib.build}/classes"/>
</path>
<!-- =================================================================== -->
<!-- Prepare build -->
<!-- =================================================================== -->
<target name="prepare-build" depends="">
<mkdir dir="${slide.build}"/>
<mkdir dir="${clientlib.build}"/>
<mkdir dir="${clientlib.build}/classes"/>
<mkdir dir="${clientlib.build}/${clientlib.javadoc.path}"/>
</target>
<!-- =================================================================== -->
<!-- Prepare commandline build -->
<!-- =================================================================== -->
<target name="prepare-build-cmd" depends="prepare-build">
<mkdir dir="${cmd.build}"/>
<mkdir dir="${cmd.build}/classes"/>
</target>
<!-- =================================================================== -->
<!-- Prepare dist -->
<!-- =================================================================== -->
<target name="prepare-dist" depends="">
<mkdir dir="${slide.dist}"/>
<mkdir dir="${clientlib.dist}"/>
<mkdir dir="${clientlib.dist}/lib"/>
<mkdir dir="${clientlib.dist}/${clientlib.javadoc.path}"/>
<mkdir dir="${slide.dist}/etc"/>
<filter token="VERSION" value="${version}"/>
<copy todir="${slide.dist}/etc" filtering="true">
<fileset dir="./etc" includes="*.MF"/>
</copy>
</target>
<!-- =================================================================== -->
<!-- Prepare commandline dist -->
<!-- =================================================================== -->
<target name="prepare-dist-cmd" depends="prepare-dist">
<mkdir dir="${cmd.dist}"/>
<mkdir dir="${cmd.dist}/lib"/>
<mkdir dir="${cmd.dist}/bin"/>
</target>
<!-- =================================================================== -->
<!-- Build All : Main, Doc and JavaDoc -->
<!-- =================================================================== -->
<target name="all" depends="clean,dist-clientlib,dist-cmd"
description="Delete previous build and make distribution"/>
<!-- =================================================================== -->
<!-- Clean build and distribution directories of the DAV client -->
<!-- =================================================================== -->
<target name="clean">
<delete dir="${slide.build}"/>
<delete dir="${slide.dist}"/>
</target>
<!-- =================================================================== -->
<!-- Build Slide WebDAV client lib -->
<!-- =================================================================== -->
<target name="build-clientlib" depends="prepare-build" description="Build the WebDAV client lib">
<echo message="Building Slide WebDAV client lib"/>
<javac srcdir="clientlib/src/java" destdir="${clientlib.build}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}" excludes="**/CVS/**">
<classpath refid="clientlib.classpath"/>
</javac>
</target>
<!-- =================================================================== -->
<!-- Build Slide commandline client -->
<!-- =================================================================== -->
<target name="build-cmd" depends="prepare-build-cmd,build-clientlib"
description="Build the commandline client">
<echo message="Building Slide commandline client"/>
<mkdir dir="${cmd.build}/src"/>
<filter token="VERSION" value="${version}"/>
<copy todir="${cmd.build}/src" filtering="true">
<fileset dir="commandline/src/java" includes="**/Slide.java"/>
</copy>
<javac srcdir="commandline/src/java" destdir="${cmd.build}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}" excludes="**/Slide.java">
<classpath refid="cmd.classpath"/>
</javac>
<javac srcdir="${cmd.build}/src" destdir="${cmd.build}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}" includes="**/Slide.java">
<classpath refid="cmd.classpath"/>
</javac>
</target>
<!-- =================================================================== -->
<!-- Javadoc of the WebDAV client and the commandline client -->
<!-- =================================================================== -->
<target name="javadoc-clientlib" depends="prepare-build" description="Create WebDAV client javadocs">
<property name="copyright" value=""/>
<javadoc sourcepath="clientlib/src/java" destdir="${clientlib.build}/${clientlib.javadoc.path}"
doctitle="Slide ${version} WebDAV Client JavaDoc" windowtitle="Slide WebDAV Client Javadoc"
package="true" noindex="false" author="true" version="true" packagenames="org.apache.webdav.lib.*">
<classpath refid="clientlib.classpath"/>
<link href="http://jakarta.apache.org/commons/httpclient/apidocs/"/>
</javadoc>
<javadoc sourcepath="commandline/src/java" destdir="${cmd.build}/${cmd.javadoc.path}"
doctitle="Slide ${version} WebDAV Client JavaDoc" windowtitle="Slide WebDAV Client Javadoc"
package="true" noindex="false" author="true" version="true" packagenames="org.apache.webdav.cmd.*">
<classpath refid="cmd.classpath"/>
<link href="http://jakarta.apache.org/commons/httpclient/apidocs/"/>
</javadoc>
</target>
<!-- =================================================================== -->
<!-- Build a WebDAV client distribution -->
<!-- =================================================================== -->
<target name="dist-clientlib" depends="build-clientlib,prepare-dist,javadoc-clientlib"
description="Jar WebDAV client lib and copy required jar libs">
<copy todir="${clientlib.dist}/lib">
<fileset dir="lib">
<include name="commons-*.jar"/>
</fileset>
</copy>
<jar jarfile="${clientlib.dist}/lib/${clientlib.final.name}.jar"
basedir="${clientlib.build}/classes"
manifest="${slide.dist}/etc/MANIFEST.MF">
<metainf file="./LICENSE"/>
</jar>
<copy todir="${cmd.dist}">
<fileset dir=".">
<include name="LICENSE"/>
<include name="README"/>
<include name="NOTICE"/>
</fileset>
</copy>
<copy todir="${clientlib.dist}/${clientlib.javadoc.path}">
<fileset dir="${clientlib.build}/${clientlib.javadoc.path}"/>
</copy>
</target>
<!-- =================================================================== -->
<!-- Build a commandline client distribution -->
<!-- =================================================================== -->
<target name="dist-cmd" depends="build-cmd,dist-clientlib,prepare-dist-cmd"
description="Distribute commandline client">
<jar jarfile="${cmd.dist}/lib/${cmd.final.name}.jar"
basedir="${cmd.build}/classes"
manifest="${slide.dist}/etc/MANIFEST.MF">
<metainf file="./LICENSE"/>
</jar>
<copy todir="${cmd.dist}">
<fileset dir=".">
<include name="LICENSE"/>
<include name="README"/>
<include name="NOTICE"/>
</fileset>
</copy>
<copy todir="${cmd.dist}/lib">
<fileset dir="lib">
<include name="commons-*.jar"/>
<include name="antlr*.*"/>
</fileset>
</copy>
<copy todir="${cmd.dist}/bin">
<fileset dir="commandline/src/bin">
<include name="**/*.bat"/>
<include name="**/*.sh"/>
</fileset>
</copy>
<chmod dir="${cmd.dist}/bin" perm="+x" includes="**/*.sh"/>
</target>
<!-- =================================================================== -->
<!-- Copy all files for the src archive -->
<!-- =================================================================== -->
<target name="package-src-prepare" depends="dist-cmd">
<mkdir dir="${slide.dist}/${archive.src.name}"/>
<copy todir="${slide.dist}/${archive.src.name}">
<fileset dir=".">
<include name="clientlib/**"/>
<include name="commandline/**"/>
<include name="etc/**"/>
<include name="lib/**"/>
<include name="LICENSE"/>
<include name="NOTICE"/>
<include name="README"/>
<include name="build.xml"/>
</fileset>
</copy>
</target>
<!-- =================================================================== -->
<!-- Packages the source code with ZIP -->
<!-- =================================================================== -->
<target name="package-src-zip" depends="package-src-prepare">
<zip zipfile="${slide.dist}/${archive.src.name}.zip">
<zipfileset dir="${slide.dist}/${archive.src.name}"
prefix="${archive.src.name}" includes="**"/>
</zip>
</target>
<!-- =================================================================== -->
<!-- Packages the source code with TAR-GZIP -->
<!-- =================================================================== -->
<target name="package-src-tgz" depends="package-src-prepare">
<tar tarfile="${slide.dist}/${archive.src.name}.tar" longfile="gnu">
<tarfileset dir="${slide.dist}">
<include name="${archive.src.name}/**"/>
</tarfileset>
</tar>
<gzip zipfile="${slide.dist}/${archive.src.name}.tar.gz"
src="${slide.dist}/${archive.src.name}.tar"/>
<delete file="${slide.dist}/${archive.src.name}.tar"/>
</target>
<!-- =================================================================== -->
<!-- Packages the source code with ZIP and TAR-GZIP -->
<!-- =================================================================== -->
<target name="package-src-all" depends="package-src-zip, package-src-tgz"
description="Package src distribution as ZIP and TAR-GZIP">
<delete dir="${slide.dist}/${archive.src.name}"/>
</target>
<!-- =================================================================== -->
<!-- Copy all files for the bin archive -->
<!-- =================================================================== -->
<target name="package-bin-prepare" depends="dist-cmd">
<mkdir dir="${slide.dist}/${archive.bin.name}"/>
<copy todir="${slide.dist}/${archive.bin.name}">
<fileset dir="${slide.dist}">
<include name="bin/**"/>
<include name="doc/**"/>
<include name="etc/**"/>
<include name="lib/**"/>
</fileset>
</copy>
<copy todir="${slide.dist}/${archive.bin.name}">
<fileset dir=".">
<include name="LICENSE"/>
<include name="README"/>
<include name="NOTICE"/>
</fileset>
</copy>
</target>
<!-- =================================================================== -->
<!-- Packages ZIP -->
<!-- =================================================================== -->
<target name="package-bin-zip" depends="package-bin-prepare">
<zip zipfile="${slide.dist}/${archive.bin.name}.zip">
<zipfileset dir="${slide.dist}/${archive.bin.name}"
prefix="${archive.bin.name}" includes="**"/>
</zip>
</target>
<!-- =================================================================== -->
<!-- Packages TAR-GZIP -->
<!-- =================================================================== -->
<target name="package-bin-tgz" depends="package-bin-prepare">
<tar tarfile="${slide.dist}/${archive.bin.name}.tar" longfile="gnu">
<tarfileset dir="${slide.dist}">
<include name="${archive.bin.name}/**"/>
</tarfileset>
</tar>
<gzip zipfile="${slide.dist}/${archive.bin.name}.tar.gz"
src="${slide.dist}/${archive.bin.name}.tar"/>
<delete file="${slide.dist}/${archive.bin.name}.tar"/>
</target>
<!-- =================================================================== -->
<!-- Packages with ZIP and TAR-GZIP -->
<!-- =================================================================== -->
<target name="package-bin-all" depends="package-bin-zip, package-bin-tgz"
description="Package binary distribution as ZIP and TAR-GZIP">
<delete dir="${slide.dist}/${archive.bin.name}"/>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]