Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant - directory permission with <mkdir>

 
kri shan
Ranch Hand
Posts: 1462
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Bartender
Posts: 1110
Eclipse IDE Oracle VI Editor
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the page specific to chmod might be better: http://ant.apache.org/manual/Tasks/chmod.html

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic