ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Re: cp or <copy> in windows?
Date Wed, 17 Mar 2004 07:48:10 GMT
Just another observation. When I am using my laptop with cygwin. Run <copy>
in a simple ant file...

<target name="a">
<copy tofile="tmp/b.sh" file="a.sh"/>
</target>

Set the permission of the file a.sh to the following:
-rwxr-xr-x    1 barry    None            0 Mar 16 23:40 a.sh

After copy,
-rwxr-xr-x    1 barry    None            0 Mar 16 23:41 tmp/b.sh

Same?! So is that mean that there are things that control the permission
during copy in ant? Cygwin in different machines. How can i ensure the
results if choosing to use <copy>?

Thanks.

Barry


----- Original Message ----- 
From: "Baz" <barry@goodconsultants.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, March 16, 2004 8:34 PM
Subject: Re: cp or <copy> in windows?


> Matt,
>
> Thanks but detecting OS is not enough since I do have developers running
> cygwin in windows as well. What is the best way to detect and "unix" style
> environment?
>
> Thanks
>
> B.
> ----- Original Message ----- 
> From: "Matt Benson" <gudnabrsam@yahoo.com>
> To: "Ant Users List" <user@ant.apache.org>
> Sent: Tuesday, March 16, 2004 4:02 PM
> Subject: Re: cp or <copy> in windows?
>
>
> > You use the OS to decide which to do, <copy> or
> > <exec|apply executable="cp">.
> >
> > -Matt
> >
> > --- barry@goodconsultants.com wrote:
> > > Jan and all,
> > >
> > > But "cp" does not work on dos right? What should i
> > > do in that case? I need ant
> > > to work on pure dos windows, cygwin windows and
> > > unix...
> > >
> > > Thanks
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - More reliable, more storage, less spam
> > http://mail.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message