• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

FileSets, any way to order them?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using any along with xdoclet to generate an XML file I need from my classes. I would like the fileset to iterated over the files in the same hierarchy as they are on the disk for example:
com
-package1
*file1
*file2
-package2
*file1
*file2
So for this I would like them to be iterated over like:
com/package1/file1
com/package1/file2
com/package2/file1
com/package2/file1
The fileset is currently iterating in what looks like a Random way, I don't see any order about it at all. Is there anyway to have a file set order based on the directory/filename?
thanks!
lance
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You can write ant script to package all files according the way you want.
Take a look at
http://ant.apache.org/manual/index.html
Good Luck.
Tom.
 
Lance Titchkosky
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tom,
I'm not creating a package here, I'm using a FileSet as input to an xdoclet template. The ordering of the FileSet seems random and nothing in the docs (I have rtfm already ) seems to talk about ordering of FileSets.
Any other ideas?
lance
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic