ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zak Saurin" <zak.sau...@netsystechnologies.com>
Subject RE: central definition of classpath, please HELP !!!
Date Wed, 14 Nov 2001 15:15:21 GMT
Hello,

I am only a new user to Ant myself, but I notice that the documentation
for the ant task (I presume you are using this to call the other build
files?) says that all of the properties of the current project will be
available in the new project.  I presume that the path elements do as
well? (this may not be true ;-) )

Anyway, they don't if you have the inheritall attribute set to false.
Is this the case?

Alternatively you could look to passing the path variables to the child
build files as child elements of the ant element (if indeed it is the
case that *only* property elements inherited and not path elements).
See the ant built in task for details.

Zak.

> -----Original Message-----
> From: Joel Cordonnier [mailto:joelcordonnier@yahoo.fr]
> Sent: 14 November 2001 14:56
> To: Ant Users List
> Subject: Re: central definition of classpath, please HELP !!!
>
>
> Hi
>
> OK ! BUT BUT suppose that your 'project.class.path' is
> defined in a file A.xml, and that you have the target
> 'compile' defined in a file B.xml
>
> And then, a target in A call the 'compile' target in
> B.xml with the statement
>
> <target name="" depends="">
> 	<ant antfile="./B.xml" dir="." target="compile"/>
> 	</target>
>
> Then ?? how to propagate your classpath's refid `???
>
> /Joel
>
> écrit : > hi!
> >
> > maybe that helps!
> >
> >  <path id="project.class.path">
> >
> >   <!-- for cruisecontrol junit tests -->
> >   <fileset dir="./lib">
> >    <include name="**/*.jar"/>
> >   </fileset>
> > </path>
> >
> >
> > <target name="compile">
> >   <javac srcdir="./src"
> >                destdir="./classes"
> >                debug="on"
> >                verbose="off"
> >                deprecation="yes">
> >    <classpath refid="project.class.path"/>
> >   </javac>
> >  </target>
> >
> > cu
> >
> >   eric
> >
> > ----- Original Message -----
> > From: "Joel Cordonnier" <joelcordonnier@yahoo.fr>
> > To: <ant-dev@jakarta.apache.org>
> > Cc: <ant-user@jakarta.apache.org>
> > Sent: Wednesday, November 14, 2001 3:23 PM
> > Subject: central definition of classpath, please
> > HELP !!!
> >
> >
> > > Hi !
> > >
> > > I really need help.
> > >
> > > I have and Ant script called build.xml (main
> > script),
> > > that call other scripts **.xml.
> > >
> > > In the main script are Ant's PATH defined, and
> > then,
> > > in my compile, javadoc...and other tasks, i refer
> > to
> > > the PATHs with the statement <classpath
> > > refid="......"/>
> > >
> > > I HAVE THE FOLLOWING PROBLEM:
> > >
> > > the 'other' script that build.xml call CAN'T refer
> > to
> > > the PATHs defined in build.xml !! WHY ????
> > >
> > > Thanks for the help.
> > > /Joel
> > >
> > >
> >
> ___________________________________________________________
> > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> > et en français !
> > > Yahoo! Courrier : http://courrier.yahoo.fr
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:ant-user-help@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:ant-user-help@jakarta.apache.org>
> >
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Courrier : http://courrier.yahoo.fr
>
> --
> To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001



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


Mime
View raw message