ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Problem with classpath
Date Thu, 09 Nov 2000 09:04:30 GMT
Diane Holt <holtdl@yahoo.com> wrote:

> but, doesn't <path> check for the files' existence and only include
> those files that do exist?

Good point, so one would probably need to do something like this

<path id="myclasspath">
       <pathelement path="${Source.libdir}"/>
       <pathelement location="xerces-1.1.3.jar"/>
       <pathelement location="xalan_1_1_D01.jar"/>
       <pathelement location="castor.jar"/>
       <pathelement location="jaxp.jar"/>
</path>

<patternset id="jars">
   <include name="**/*.jar"/> <!-- assuming this is what Stefan intended -->
</patternset>

<target>
  <javac>
    <classpath refid="myclasspath" />
    <classpath>
      <fileset dir="${Source.libdir}">
        <patternset refid="jars" />
      </fileset>
    </classpath>
  </javac>
</target>

I start to see that forcing filesets and paths to be defined outside
of targets might be a problem.

Stefan

Mime
View raw message