On Mon, 30 Jul 2001, Eric Richardson <[EMAIL PROTECTED]>
wrote:
> Hi, I'm using the following to pass to <java> in a
> classpathref. I've included a jar and the directory in the <fileset>
> that has some loose class files.
>
> <path id="my.classpath">
> <fileset dir="${catalog.dir}">
> <include name="catalog.jar"/>
> <include name="${catalog.dir}"/>
> </fileset>
> </path>
The nested <fileset> inside <path> will by design only pick up files,
not directories - make that
<path id="my.classpath">
<pathelement location="${catalog.dir}" />
<pathelement location="${catalog.dir}/catalog.jar" />
</path>
as you don't need the directory scanning/pattern matching
functionality of <fileset> anyway.
> The fileset does not include the directory
Even if it would include the directories matching include patterns,
your above <fileset> probably wouldn't work as the include/exclude
patterns are meant to be paths relative to the fileset's dir attribute
- whatever ${catalaog.dir} resolves to, I doubt it would be a valid
path relative to itself.
Stefan