ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Berg (ALLETE)" <rb...@mnpower.com>
Subject RE: Setting an absolute path to an other PC
Date Tue, 01 Jul 2008 12:24:34 GMT
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:vst@mikrosimage.eu] 
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) <rberg@mnpower.com>:


> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message