• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Q Changing directories and list of directories in variable

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to replace a develpoment and deployment system using make with ant. I have a hirecrchical package structure of source files which contained a make file at each level and the rules I had defined would recursively traverse each level, use the makefile present there and make the given targets. Now I am trying to replace each makefile at each level with a build.xml file. These files defines some variables like package_dir, subpackages (a list of subdirs), or at inner levels a variable source_files (list of .java files to be compiled). What I want to do here is that When I run any target from top level I would like to get the list of directories in a variable and go into every directory recursively using cd command and execute the ant task using that level build.xml file. There are 2 things which i'm not able to do. 1- Get the list of directories or files exists in a particular directory into a variable. 2- Iterate the directories in the variable and go inside the directory and execte the ant task using that level build.xml file. Has anybody done a similar thing with ant? I will appreciate all feedback.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic