ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Pearlman Spencer" <Alan.PearlmanSpen...@Mobileaware.com>
Subject RE: central definition of classpath, please HELP !!!
Date Wed, 14 Nov 2001 15:20:41 GMT
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: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>


--
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