Re: Adding exactly one directory to the classpath



pintman wrote:

I have some problem adding exactly one directory to the java classpath
using ant. I tried the following lines but got no only the directory
specified but all subdirectories as well.

<path id="project.class.path">
<fileset dir="${lib.src}" includes="**/*.jar"/>
<dirset dir="${main.dst}" />
<dirset dir="${tests.dst}" />
</path>

How is it possible to add exactly one directory to the classpath?

I tried the following exclusion pattern and it did the job. :)

<dirset dir="${main.dst}" excludes="*" />
<dirset dir="${tests.dst}" excludes="*" />


Greetings,
Marco.

.



Relevant Pages