Actually, unlike straight java you can just use backslashes as you would in 
windows. While I would probably agree with you and say "ignore the fact that 
Windows embraces this poor practice" and just use traditional forward-slash. 
Either works, but here's one example showing how to extract a sample archive 
'sample.tar.gz' from UNC:

<target name="null">
<gunzip src="\\myserver1\myshare\sample.tar.gz'" dest="sample"/>
<untar src="sample" dest="." />
</target>


Hope this helps,

Raymond


-----Original Message-----
From: Stéphane Vandenbogaerde [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2008 6:48 AM
To: Ant Users List
Subject: Re: Setting an absolute path to an other PC

2008/7/1 Raymond Berg (ALLETE) <[EMAIL PROTECTED]>:


> This question is a little unclear. Do you wish to untar this to a remote
> machine with a UNC network share (\\server\share) ?


I want to untar from a remote machine with a UNC network share.


> As of Ant 1.7.0, UNC names are allowable absolute addresses and can be
> resolved in java. Simply specifying the network share path should allow for
> this.


So it should be OK if I put

<untar src="//server/share/foo.tar" dest=".">

?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to