ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <paranoia...@gmail.com>
Subject Re: Is it possible to use other build file's classpath?
Date Fri, 19 Aug 2005 13:10:13 GMT
On 19/08/05, Leon Pu <leon_xf_pu@yahoo.com.cn> wrote:
> 
> 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 <Tanguy.RADEMAKERS@swift.com> 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:leon_xf_pu@yahoo.com.cn]
> > >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 <Tanguy.RADEMAKERS@swift.com> 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:leon_xf_pu@yahoo.com.cn]
> > >> >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 <leon_xf_pu@yahoo.com.cn> 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: user-unsubscribe@ant.apache.org
> > >> >> For additional commands, e-mail: user-help@ant.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >____________________________________________________
> > >> >Start your day with Yahoo! - make it your home page
> > >> >http://www.yahoo.com/r/hs
> > >> >
> > >> >
> > >>
> >
> >>---------------------------------------------------------------------
> > >> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > >> >For additional commands, e-mail: user-help@ant.apache.org
> > >> >
> > >> >
> > >>
> > >>
> > ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > >> For additional commands, e-mail: user-help@ant.apache.org
> > >>
> > >>
> > >
> > >
> > >
> > >
> > >__________________________________
> > >Yahoo! Mail
> > >Stay connected, organized, and protected. Take the tour:
> > >http://tour.mail.yahoo.com/mailtour.html
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > >For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> 
> 
> 
> 
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> Also you may find useful Ant-contrib's AntCallBack


-- 
Regards, Petar!

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