Hey Guys,

I am befuttled as to exactly how to do this...

I have releases going to a directory tree

...Release2.0
     |
     ---Release2.0Build400
       |
       ---- lib
     |
     ---Release2.0Build401
       |
       ---- lib
     |
     ---Release2.0Build402
       |
       ---- lib
     |
     ---Release2.0Build403
       |
       ---- lib

(each build is in a seperate directory under a root
release directory, note there are a number
sub-directories under each build directory)

Now, I need to the get the latest build directory
(i.e. Release2.0Build403 in case above) into a
property

Here is what I have already...
       <path id="builds">
          <dirset
dir="${deployed.base.dir}\Build_v${current.version.number}\">
          </dirset>
       </path>
       <property name="builds.property"
refid="builds"/>
       <sortlist property="sorted.builds"
refid="builds"/>
       
       <echo message="builds.property =
${builds.property}"/>
       <echo message="sorted.builds =
${sorted.builds}"/>

Two Questions:

1) How do I limit the number of directories that are
returned in the <dirset> to just the first level
sub-directories
2) Is it necessary to do the <sortlist> or does the
<dirset> return them in sorted order>
3) Any ideas on the best way to extract the largest
build number values from either the builds.property or
sorted.builds property, I thought of using the
<propertyRegExp> but could not come up with the
appropriate expression?


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to