You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by James Todd <jw...@pacbell.net> on 2003/05/08 10:15:03 UTC

filesets embedded within paths ref via an available conditional

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