cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Building and Classpath
Date Tue, 18 Dec 2001 07:56:47 GMT

Jeff Turner wrote:
> 
> On Mon, Dec 17, 2001 at 11:28:43AM -0000, Morrison, John wrote:
> > > -----Original Message-----
> > > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > > Sent: Monday, 17 December 2001 11:26 am
> > > To: cocoon-dev@xml.apache.org
> > > Subject: RE: Building and Classpath
> > > 
> > > 
> > > John Morrison wrote
> > > >
> > > > Solution D: fix the ant Available task (which has been 
> > > rejected(?) by the
> > > > 	ant team...
> > > > 
> > > Hmm, yes that would be great! But, the question is, is it a bug?
> > > AFAIK, the Ant Available task is able to search only in a 
> > > given classpath
> > > or to search in a given classpath and respect the user classpath.
> > > The bad thing for us (and this can be seen as a bug) is that
> > > the Available task *always* searches the standard java classes.
> > > 
> > > Carsten
> > > 
> > 
> > Maybe adding a "do-not-search-classpath" option would be something to
> > consider?
> 
> If your build.xml contains:
> 
>  <property name="build.sysclasspath" value="ignore"/>
> 
> Would that help?
> 
No, unfortunately not. When "build.sysclasspath" is set to ignore, the
user classpath is ignored, but not the standard JDK classes.
What I want to have is a possibility to say:
    <available property="working" 
               classname="java.net.URL">
          <classpath refid="classpath"/>
    </available>
which gives me - depending on a property a true or false. But regardless
of the "build.sysclasspath" property, the above always returns true.

Carsten
> 
> (IMHO the whole thing should be done with properties. Relying on
> classpaths is inherently error-prone:)
> 
> --Jeff
> 

> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message