You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2001/12/05 12:06:55 UTC

Re: Doclet ?

On Wed, 05 Dec 2001, Cyriaque Dupoirieux
<cy...@pcotech.fr> wrote:

>     I have made sevral tries but Ant always tell me that
>     there is a bad option -d :

remove the destdir attribute from your javadoc task and Ant will not
try to pass on the -d switch.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: file permission rights under Windows

Posted by Steve Loughran <st...@iseran.com>.
readers might be interested to know that a java api do this sort of thing
was promised, then pulled, from java 1.4:
http://developer.java.sun.com/developer/bugParade/bugs/4313887.html

...you are free to vote on the issue if you feel it is important, though
Sun's development process is most definately not a democracry.

----- Original Message -----
From: "Timothy Spear" <ts...@tangiblesoftware.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Thursday, December 06, 2001 5:40 AM
Subject: RE: file permission rights under Windows


> Use exec to call Attrib. The available attributes are hidden (h), readonly
> (r), system (s), archive (a). Anyway to set the flag state "attrib +r
> filename". to remove "attrib -r filename". to see all current flags
"attrib"
>
> Tim
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: file permission rights under Windows

Posted by Timothy Spear <ts...@tangiblesoftware.com>.
Use exec to call Attrib. The available attributes are hidden (h), readonly
(r), system (s), archive (a). Anyway to set the flag state "attrib +r
filename". to remove "attrib -r filename". to see all current flags "attrib"

Tim

-----Original Message-----
From: detlef.brendle@canoo.com [mailto:detlef.brendle@canoo.com]
Sent: Thursday, December 06, 2001 4:53 AM
To: Ant Users List
Subject: Re: file permission rights under Windows


thanks stefan,
I will have a look in the archives.
and no theres no reason why I cant use exec. but I didnt know that there is
a
chance to do this with exec.

Quoting Stefan Bodewig <bo...@apache.org>:

> On Thu, 06 Dec 2001, detlef brendle <de...@canoo.com> wrote:
>
> > how can I change the permissions of a Windows file ?
>
> There is no built-in task to do that, but people have sent custom
> tasks to ant-dev, you may find one in the archives.
>
> I've been told that there is an executable named attrib that can be
> used to change the read-only flag (I really have no idea, sorry 8-).
> Any reason you cannot use <exec> to invoke this?
>
> Stefan
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: file permission rights under Windows

Posted by de...@canoo.com.
thanks stefan,
I will have a look in the archives.
and no theres no reason why I cant use exec. but I didnt know that there is a
chance to do this with exec.

Quoting Stefan Bodewig <bo...@apache.org>:

> On Thu, 06 Dec 2001, detlef brendle <de...@canoo.com> wrote:
> 
> > how can I change the permissions of a Windows file ?
> 
> There is no built-in task to do that, but people have sent custom
> tasks to ant-dev, you may find one in the archives.
> 
> I've been told that there is an executable named attrib that can be
> used to change the read-only flag (I really have no idea, sorry 8-).
> Any reason you cannot use <exec> to invoke this?
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: file permission rights under Windows

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 06 Dec 2001, detlef brendle <de...@canoo.com> wrote:

> how can I change the permissions of a Windows file ?

There is no built-in task to do that, but people have sent custom
tasks to ant-dev, you may find one in the archives.

I've been told that there is an executable named attrib that can be
used to change the read-only flag (I really have no idea, sorry 8-).
Any reason you cannot use <exec> to invoke this?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


file permission rights under Windows

Posted by de...@canoo.com.
hi ,
how can I change the permissions of a Windows file ?

I need to change a writeable file to read/only.

I can use <chmod> only for UNIX.
Is there an easy way to do this in ANT?

detlef

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Doclet ?

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 05 Dec 2001, Cyriaque Dupoirieux
<cy...@pcotech.fr> wrote:

> And if I remove the destdir, where will Ant generate my
> documentation ???

Whatever you tell your doclet.  If your doclet doesn't support the -d
switch, it must have some other means to specify that, use the
additionalparam attribute for that.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Doclet ?

Posted by Cyriaque Dupoirieux <cy...@pcotech.fr>.

Stefan Bodewig wrote:

>On Wed, 05 Dec 2001, Cyriaque Dupoirieux
><cy...@pcotech.fr> wrote:
>
>>    I have made sevral tries but Ant always tell me that
>>    there is a bad option -d :
>>
>
>remove the destdir attribute from your javadoc task and Ant will not
>try to pass on the -d switch.
>
And if I remove the destdir, where will Ant generate my documentation ???
-

>
>Stefan
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>

-- 
Cyriaque Dupoirieux <ma...@pcotech.fr>
PCO Technologies
Burolines - 2 ter rue Marcel Doret
31700 Blagnac
Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10