ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Using JBuilder9 settings (e.g. libraries, paths) in Ant
Date Wed, 27 Aug 2003 04:57:09 GMT
> Not sure it's the best solution, but I've posted an 
> <antReturn> task that
> does just that (works with 1.5.{3|4}).
> 
> <import> from Ant CVS probably would be a better solution. --DD
> 
> > Hi,
> > 
> >  I'm trying to create an Ant script for running tests on a webapp in
> > JBuilder9, and I need to use the classpath used by JBuilder when it
compiled
> > the project.
> > 
> > The classpath is stored by JBuilder in project files, and is also
available
> > in an automatically generated build.xml file for the project,
> > in the format
> > <path id="project.class.path">
> >   <pathelement ....
> >   <pathelement ....
> > </path>
> > (this file is generated on each build).
> > 
> > 
> > So far, I've tried the ant script from an earlier discussion, 
> > http://marc.theaimsgroup.com/?l=ant-user&m=105912755106595&w=2
> > but I haven't been able to get it to generate anything. 
> > 
> > Another solution might be to call the Ant buildfile and import a
> > property/path id back to the calling Ant task - is this possible?
> > I also consider building a task that extracts the data I need from the
XML
> > in the autogenerated build.xml file.
> > 
> > Has anyone encountered the same problem and solved it?
> > 
> > /Anders Egneus


That script works on native (xml) jbuilder project files. If you already
have
an ant buildfile, I think - like Dominique - that an <import> would be the
best.
Then you can simply reference the path <path refid="project.class.path"/>


Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message