On 6/20/06, Holger Hoffstätte <[EMAIL PROTECTED]> wrote:

Paul Brown wrote:
>> Alex Boisvert wrote:
>> > void deploy( String pathToUnpackedResources )
>> > void undeploy( String pathToUnpackedResources )
>> Please use Files as arguments instead of Strings. They exist for a
>> reason. :)
>
> In that vein, URL would probably be preferable to File, as it can
> reach inside of JARs or across the net as well as onto the filesystem.

I read *path* To *UnpackedResources* as local.


+1

And you want to browse that path and get files from it. URLs don't do that
very well unless you decide they are file paths.


That said, it's not always the case that the set of URL protocols in
> one location is the same as within the server, and with that in mind,
> Strings are preferable.

Erm..that is true but how do Strings help then, when the server still has
to interpret them? Is it a path, an URL, a plane? File removes that
ambiguity, and the server has a local temporary work directory anway.


+1

We're writing both sides of the API, so whatever is easier
(*cough*file*cough*) to use.

assaf


cheers
Holger




--
CTO, Intalio
http://www.intalio.com

Reply via email to