Has anyone tested the ant tasks with https? It does not seem to work for me:
org.apache.commons.httpclient.URIException: wrong class use
at org.apache.commons.httpclient.HttpsURL.checkValid(HttpsURL.java:454)
at org.apache.commons.httpclient.HttpsURL.<init>(HttpsURL.java:110)
at org.apache.commons.httpclient.HttpsURL.<init>(HttpsURL.java:364)
at org.apache.webdav.ant.Utils.createHttpURL(Utils.java:459)
at
org.apache.webdav.ant.ResourceProperties.getResourceType(ResourceProperties.java:112)
at
org.apache.webdav.ant.CollectionScanner.readCollection(CollectionScanner.java:128)
at org.apache.webdav.ant.CollectionScanner.scan(CollectionScanner.java:86)
at
org.apache.webdav.ant.WebdavFileSet.getCollectionScanner(WebdavFileSet.java:83)
at org.apache.webdav.ant.taskdefs.Get.downloadFileset(Get.java:117)
with this ant script:
<project name="WebDAV download" default="fetch">
<property name="url" value="https://datamover.bcbs-ar.com/Webify
<https://datamover.bcbs-ar.com/Webify> "/>
<property name="user" value="removed"/>
<property name="password" value="removed"/>
<property name="dir.incoming" value="c:/ftp/incoming"/>
<target name="declare-tasks">
<taskdef resource="org/apache/webdav/ant/taskdefs.properties">
<classpath>
<fileset dir=".">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
</target>
<target name="fetch" depends="declare-tasks, download"/>
<target name="download">
<davget url="${url}" userid="${user}" password="${password}"
todir="${dir.incoming}">
<davfileset dir=".">
<include name="**/ENROLLMENT*.XML"/>
</davfileset>
</davget>
</target>
</project>
I checked the httpclient source code and it only throws that exception if the
URL does not start with "https". If I change the password, I get a 401
Unauthorized so I know it is connecting to the correct https URL.
mike
-----Original Message-----
From: Stefan L�tzkendorf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 9:51 AM
To: Slide Users Mailing List
Subject: Re: command line client scripting and wildcard support
there are some ant tasks which may be usefull in automation if you want to use
ant.
Stefan
Mike Perham wrote:
> I need to automate the download and deletion of files from a remote
> WebDAV site. I'd like to use a command line client with a simple
> script to do this but the 2.0 client does not support wildcards. Does
> anyone have any suggestions about available tools out there to perform
> this task?
>
> mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Stefan L�tzkendorf -- [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]