ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledge.com>
Subject Re: extend a project
Date Wed, 13 Feb 2002 16:38:50 GMT
This may well lead onto having private and protected target access-modifiers!

----- Original Message ----- 
From: "Maria Ivanova" <m_ivanova@prosyst.bg>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, February 13, 2002 9:39 AM
Subject: extend a project


> Is it possible one project to extend another, in this way inheriting all
> targets defined in the parent project. If "ant" task is used, e.g.:
> 
>  <target name="ftpconsole">
>   <echo message="test it"/>
>   <ant antfile="build.xml" target="ftpconsole"/>
>  </target>
> 
> all targets from the parent project must be redefined in the child project
> in order to be accessed.
> 
> Is there something like this:
> 
> <project name="childproject" extends="parentproject.xml" ..>
> //all targets from parent project can be accessed here,
> </project>
> 
> Let's have defined target "test" in parentproject.xml, I need to call it
> this way:
> 
> ant -buildfile childproject.xml test
> 
> 
> 
> Best regards,
> Maria Ivanova
> 
> 
> 
> --
> 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