BOb,
This is example is from a CI Factory script.  I don't believe that NAnt
proper has these functions...

<fileset id="PacakgeFinder" />
<ifnot test="${property::exists('SourceControl.PackageName')}">
  <property name="PackagePathPattern"
value="${PackagesDirectory}\**\SourceControl.Target.xml"/>
  <function execute="${fileset::include-add('PacakgeFinder',
PackagePathPattern)}"/>
  <property name="PackagePath"
value="${fileset::get-name-at-index('PacakgeFinder', 0)}"/>
  <property name="SourceControl.PackageName"
value="${directory::name(path::get-directory-name(PackagePath))}"/>
</ifnot>


Smiles,
Jay

On 1/8/08, Bob Archer <[EMAIL PROTECTED]> wrote:
>
>  What would be the easiest way to get the file name of a file given a
> pattern?
>
>
>
> I know there is a single zip file in a given path… I just need the name of
> the file so I can unzip it.
>
>
>
> Is a foreach file really the only way to do this?
>
>
>
> BOb
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>


-- 
Jay Flowers
----------------------------------------------------------------------
http://jayflowers.com
---------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to