ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Kramer <Douglas.Kra...@Sun.COM>
Subject Ant: pathelement relative?
Date Wed, 02 Feb 2005 20:45:15 GMT
Does pathelement take only a relative path?

This page: http://ant.apache.org/manual/using.html#projects
says:

     <classpath>
        <pathelement path="${classpath}"/>
        <pathelement location="lib/helper.jar"/>
     </classpath>

   The location attribute specifies a single file or directory relative
   to the project's base directory (or an absolute filename),

I assume "absolute filename" means "abolute path".  (What else could
it mean?)

But when I try an abolute path, it fails:

     <classpath>
        <pathelement path="/Users/programs/jdk1.5.0/lib/tools.jar" />
     </classpath>

With this error:

    dropping /Users/dkramer/javadoc/mifdoclet/ws/dkramer-1.4b1-1.5b1/make/"/Users/programs/jdk1.5.0/lib/tools.jar"
from 
path as it doesn't exist

where basedir is

    /Users/dkramer/javadoc/mifdoclet/ws/dkramer-1.4b1-1.5b1/make/

Must pathelement be relative?  What does "or absolute filename" mean?

-Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message