IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Creating directory structure dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Creating directory structure dynamically" Watch "Creating directory structure dynamically" New topic
Author

Creating directory structure dynamically

Rama Krishna Yalamanchili
Greenhorn

Joined: Feb 11, 2004
Posts: 25
Hi Ranchers,

I have a property with value
<property name=dirs value="a b c d">

I want ant to read this property and create the directorys
/a
/b
/c
/d

Any input will be highly appreciated.

TIA
YRK


You are not fed, if you dont ask. <img src="wink.gif" border="0"> <p>SCJP 1.4, i2CP, IBM s390 CP
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23621

Rama,
I think you would have to use bean shell (or some other scripting language) with Ant to tokenize the string on the spaces. Bean shell is very similar to Java.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
 
 
subject: Creating directory structure dynamically
 
Threads others viewed
Problem with <html:form>
HFS page 832 question 63 doubt
please critique the code
what's wrong with this code?
JSP: GetProperty - Scope
IntelliJ Java IDE