Thank you very, very, very much Alex! Your 'get' command is the
perfect solution and operates exactly as expected. It means that I'll
be able to stick to my original design and implement things as
expected.
When you mention giving feedback, is there an official place you would
like me to do it in?
In regards to deployment.properties, I had looked into using that
before, and after comparing it to the output that I've been using I
will most probably use that.
Once again, many thanks and kind regards,
Michael
On Nov 19, 2:13 am, Alex-SF <
aho...@users.sourceforge.net> wrote:
> Hi Michael,
>
> I looked into supporting this feature and found it pretty
> straightforward. I updated the command definition for davutil#copy to
> check if the -src argument ends with a trailing slash and if so treats
> it like a WebDAV collection.
>
> I also added a davutil#get command which contains just the
> implementation for retrieving WebDAV resources and supports includes
> filtering:
https://sourceforge.net/tracker/?func=detail&atid=779850&aid=2900209&...
>
> I encourage you to try these and give feedback. It's easy to build a
> module locally. Check out the davutil module source here:
http://moduleforge.svn.sourceforge.net/svnroot/moduleforge/controltie...
> Then run ProjectBuilder#build-type to build and load it to the server.
>
> Here's the commands
>
> $ cd $CTL_BASE/src
> $ svn cohttp://
moduleforge.svn.sourceforge.net/svnroot/moduleforge/controltie...
> modules/davutil
> $ ctl -p demo -m ProjectBuilder -c build-type -- -type davutil -upload
> -deploy
>
> Once built and deployed, try copying a directory. Here's an example
> that copies all the scripts ending in .sh:
>
> $ ctl -p demo -m davutil -c get -- -url dav://examples/mock-unix-service/scripts/
> -include '*.sh' -dest /tmp/scripts
> $ ls /tmp/scripts/
> isdown.sh
>
> On Nov 18, 11:37 am, proc <
backupisg...@gmail.com> wrote:
>
>
>
> > Hi ControlTier,
>
> > I am trying to use the DAV copy command to copy x number of files
> > (with the same extension, in this case *.aar) within a DAV directory
> > to a local directory.
>
> > I've been playing around for quite a while now, and have come up with:
>
> > ctl -z -p myProject -m davutil -c copy -- -src dav://deployment/aars -
> > dest /tempDir
>
> > The problem with this is that it executes correctly, but creates a
> > local FILE called tempDir, not a local directory. I have looked
> > through the reference guide for DAV copy but can't see an example or
> > reference for what I'm trying to do.
>
> > If this is not possible with DAV copy, is there an alternative way I
> > can do this?
>
> > Kind regards,
>
> > Michael- Hide quoted text -
>
> - Show quoted text -