ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "St├ęphane Vandenbogaerde" <...@mikrosimage.eu>
Subject Re: Setting an absolute path to an other PC
Date Tue, 01 Jul 2008 12:30:09 GMT
Actually, I don't code in Java.
I use Ant with Eclipse only for Buckminster (used for C++ projects).

I am delighted to see that I can use the Windows syntax.

Thanks !

2008/7/1 Raymond Berg (ALLETE) <rberg@mnpower.com>:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message