You can't (as far as I know)
Only properties are passed...
What I do is define the properties that are needed to recreate the
classpath,
not ideal, but it works.
like classpath.lib.dir, classpath.classes.dir, classpath.other.jar???
Sorry I can't help more...
Alan.

-----Original Message-----
From: Joel Cordonnier [mailto:[EMAIL PROTECTED]]
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to