This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant - directory permission with <mkdir> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant - directory permission with <mkdir>" Watch "ant - directory permission with <mkdir>" New topic

ant - directory permission with <mkdir>

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1404
<mkdir dir="hello"/>
<chmod perm="777" dir="hello" type="dir" includes="**" failonerror="hello"/>

How to set the directory permission for particular directory created using mkdir command ?
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

Read this
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Actually, the page specific to chmod might be better:

But then, the Ant code you posted should work. If it doesn't, try removing the 'includes' and 'failonerror' properties.

What is the problem you are having with your code?

Also, you are running this on Linux, right?

JBoss In Action
I agree. Here's the link:
subject: ant - directory permission with <mkdir>
It's not a secret anymore!