ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Todd <jwt...@pacbell.net>
Subject filesets embedded within paths ref via an available conditional
Date Thu, 08 May 2003 08:15:03 GMT

objective:

    conditionally set a prop based on the (un)availability of a named class
    given a classpath ref which, in turn, is comprised of a series of 
fileset
    refs, some of which may be non-existent.

scenario:

    a filelist is defined which may include 0 or more files (ie the 
specified dir
    doesn't exist, etc)

    this filelist is multi-purposed in that it is used for file copies 
in addition to
    referenced from within a (class) path

    said path is tested via an available test for a specified class name

problem:

    using an "available-classname-classpathref" conditional for the
    above scenario causes a failure if the file does not exist

hacks:

    i had duplicate file and path sets to work around this problem but
    now i would very much like to normalize the data sets.

any ideas?

much appreciated,

- james


Mime
View raw message