ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <Barrie.Trel...@camtech.com.au>
Subject Path like structures (and extending their contents)
Date Mon, 21 Aug 2000 08:04:23 GMT
I have two classpaths; one for compiling the classes and another for
compiling the test classes.

If I want to include the first classpath in the test class path I find
that the existing <classpath> tag does not allow this.  This is
because Path is still being worked on.

I've used a <fileset> within the <classpath> and given the fileset an
id.  However the syntax differs substantially:

        <fileset id="classpath" dir="directory.to.jar.file" includes="basename.of.jar.file"
/>
to
        <pathelement location="absolute.path.to.jar.file" />

This works for now, but it means extra work when I transition from
using a common classpath to a classpath that is shared but extended.

In a Path structure should I be allowed to have a <pathref> inside it
to include the referenced contents of the other path?  For example:

        <classpath id="classpath">
                <pathelement location="location.to.jar"/>
        </classpath>

        <classpath>
                <pathref refid="classpath"/>
                <pathelement location="extra.jar"/>
        </classpath>

Thoughts?

Barrie
--
Barrie Treloar
____________________________________________________________________

  Barrie Treloar                      Phone: +61 8 8303 3300
  Senior Analyst/Programmer           Fax:   +61 8 8303 4403 
  Electronic Commerce Division        Email: barrie@camtech.com.au
  Camtech (SA) Pty Ltd                http://www.camtech.com.au
 --- Level 8, 10 Pulteney Street, Adelaide SA 5000, Australia. ---
____________________________________________________________________



Mime
View raw message