A simple example.
[build.xml]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY include SYSTEM "file:include.inc">
]>
<project name="SomeProject" default="main2" basedir=".">
&include;
<target name="main2" depends="main1">
<echo>echo from target main2 in build.xml</echo>
</target>
</project>
[build.xml]
[include.inc]
<target name="main1">
<echo>echo from target main1 in include.inc</echo>
</target>
[include.inc]
[output]
Buildfile: build.xml
main1:
[echo] echo from target main1 in include.inc
main2:
[echo] echo from target main2 in build.xml
BUILD SUCCESSFUL
Total time: 0 seconds
[output]
Leon
--- RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote:
> happy to help.
>
> Might i suggest you post a simple example?
> That way it will become part of our colective memory.
>
> /t
>
> >-----Original Message-----
> >From: Leon Pu [mailto:[EMAIL PROTECTED]
> >Sent: Friday, August 19, 2005 11:24 AM
> >To: Ant Users List
> >Subject: RE: Is it possible to use other build file's classpath?
> >
> >Hi RADEMAKERS,
> >
> >it works, good idea!
> >
> >Thanks a lot!
> >
> >
> >Best regards,
> >Leon
> >
> >--- RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote:
> >
> >> You could define your path in a seperate file (like
> "build_path.inc")
> >> and then use xml-include to include this in BOTH your build files.
> >> This
> >> is an xml-level hack rather than a ant level hack.
> >>
> >> /t
> >>
> >> >-----Original Message-----
> >> >From: Leon Pu [mailto:[EMAIL PROTECTED]
> >> >Sent: Friday, August 19, 2005 10:49 AM
> >> >To: Ant Users List
> >> >Subject: Re: Is it possible to use other build file's classpath?
> >> >
> >> >Hi all,
> >> >
> >> >maybe my question is a little confusing. I mean the class path
> >> setting
> >> >inside the build file, just like following example. I want to use
> it
> >> in
> >> >another build file. Is it possible without import this build
> file?
> >> >
> >> >[build-script]
> >> > <path id="run.class.path">
> >> > <fileset dir="${ext.lib.dir}">
> >> > <include name="**/*.jar"/>
> >> > </fileset>
> >> > </path>
> >> >
> >> > <property name="run.class.path" refid="run.class.path" />
> >> >[build-script]
> >> >
> >> >
> >> >Best regards,
> >> >Leon
> >> >
> >> >--- Leon Pu <[EMAIL PROTECTED]> wrote:
> >> >
> >> >> Hi all,
> >> >>
> >> >> I want to know whether it is possible to use other build file's
> >> >> classpath?
> >> >>
> >> >> For some reasons I don't want to use import task.
> >> >>
> >> >> Thanks!
> >> >>
> >> >>
> >> >> Best regards,
> >> >> Leon
> >> >>
> >> >>
> >> >>
> >> >> ____________________________________________________
> >> >> Start your day with Yahoo! - make it your home page
> >> >> http://www.yahoo.com/r/hs
> >> >>
> >> >>
> >> >>
> >>
> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> >____________________________________________________
> >> >Start your day with Yahoo! - make it your home page
> >> >http://www.yahoo.com/r/hs
> >> >
> >> >
> >>
>
>>---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> >
> >__________________________________
> >Yahoo! Mail
> >Stay connected, organized, and protected. Take the tour:
> >http://tour.mail.yahoo.com/mailtour.html
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]