Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant - directory permission with <mkdir>

 
kri shan
Ranch Hand
Posts: 1453
  • 0
  • 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: 1107
Eclipse IDE Oracle VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this http://ant.apache.org/manual/tasksoverview.html
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic