Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

judoole/jackrabbit-webdav-anttasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jackrabbit on Ant

Ant tasks for Jackrabbit against webdav.

Could not find any so I created an ant task lib looking at Sardine and AntDav for copy-paste.

Usage

    <!-- Webdav taskdefinitions -->
    <typedef resource="com/github/judoole/webdav/jackrabbit-webdav-tasks.xml">
        <classpath>
            <pathelement location="${lib.loc}/jackrabbit-webdav-anttasks-0.4.jar"/>
            <pathelement location="${lib.loc}/commons-httpclient-3.1.jar"/>
            <pathelement location="${lib.loc}/commons-codec-1.2.jar"/>
            <pathelement location="${lib.loc}/jackrabbit-webdav-2.5.1.jar"/>
            <pathelement location="${lib.loc}/slf4j-api-1.6.4.jar"/>
            <pathelement location="${lib.loc}/commons-logging-api-1.1.jar"/>
        </classpath>
    </typedef>
    <target name="davthis">
        <jackrabbit username="superuser" password="hiddenPassword">
            <delete url="http://url-to-file-to-delete"/>        
            <get url="http://url-to-file-to-get-without-filename" file="remote-filename" fileOut="local-filename" />        
            <put url="http://url-to-file-to-folder">
                <fileset dir="." includes="**/file-to-transfer-up.txt"/>
            </put>
        </jackrabbit>
        <jackrabbit username="superuser" passwordFile="pathAndNameOfFileWithPassword">
            <delete url="http://url-to-file-to-delete"/>        
            <get url="http://url-to-file-to-get-without-filename" file="remote-filename" fileOut="local-filename" />        
            <put url="http://url-to-file-to-folder">
                <fileset dir="." includes="**/file-to-transfer-up.txt"/>
            </put>
        </jackrabbit>
    </target>

About

Ant tasks for Jackrabbit against webdab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages