ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <zod...@holoweb.net>
Subject Re: Wildcard in Target
Date Sat, 14 Sep 2002 22:26:06 GMT
Another possibility may be to use a <script> to find and execute the targets
you want. 

L.

On 9/13/02 11:06 AM, "Matt Benson" <gudnabrsam@yahoo.com> wrote:

> Even if the beans are not built generically, it may be
> possible to use a cleverly designed structure of
> separate build files (one per bean, perhaps in some
> organized directory structure) with a parent build
> file using <foreach> to call a target that invokes
> <ant> on these separate build files, which of course,
> can inherit from a common parent using entity
> includes, or you can get inheritance for properties
> and/or references from the parent build file using the
> inheritall and inheritrefs attributes of <foreach> and
> <ant>.
> 
> -Matt
> 
> --- Karen Schaper <karen.schaper@danzas.com> wrote:
>> It doesn't look like the foreach will work since
>> each bean is not built
>> generically.
>> 
>> Is this really the only solution?
>> 
>> **************************************
>> Karen Schaper
>> Marketlink Java Developer
>> Danzas AEI
>> (845) 268-6300
>> **************************************
>> 
>> -----Original Message-----
>> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
>> Sent: Friday, September 13, 2002 10:51 AM
>> To: Ant Users List; karen.schaper@danzas.com
>> Subject: RE: Wildcard in Target
>> 
>> <foreach> is part of the ant-contrib project at
>> http://ant-contrib.sourceforge.net .
>> 
>> -Matt
>> 
>> --- Karen Schaper <karen.schaper@danzas.com> wrote:
>>> I don't see the task <foreach> in the ant1.4.1
>>> manual?  Is this some
>>> sort of extension or special task that someone has
>>> created?  If so how
>>> do I get it?
>>> 
>>> Thanks
>>> 
>>> **************************************
>>> Karen Schaper
>>> Marketlink Java Developer
>>> Danzas AEI
>>> (845) 268-6300
>>> **************************************
>>> 
>>> -----Original Message-----
>>> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
>>> Sent: Friday, September 13, 2002 10:42 AM
>>> To: Ant Users List; karen.schaper@danzas.com
>>> Subject: Re: Wildcard in Target
>>> 
>>> Dare I say it?  If the build process of each bean
>> is
>>> fairly generic I would think you could use good
>> old
>>> <foreach> in some way.  Not being familiar with
>>> beans
>>> I can't say much more than that but it has served
>> me
>>> well for dynamic stuff.
>>> 
>>> -Matt
>>> 
>>> 
>>> --- Karen Schaper <karen.schaper@danzas.com>
>> wrote:
>>>> Hi All,
>>>> 
>>>>  
>>>> 
>>>> Our build script is getting quite large to
>>> maintain.
>>>>  Is there a way to
>>>> simplify the following portion of a build script
>>> so
>>>> that each new
>>>> 
>>>> "build.beanD, build.beanE.etc" does not have to
>> be
>>>> added to the depends
>>>> of build.all.beans?
>>>> 
>>>>  
>>>> 
>>>> I tried using a wild card in the depends such as
>>>> "build.bean*" but this
>>>> does not work.
>>>> 
>>>>  
>>>> 
>>>> Any suggestions?
>>>> 
>>>>  
>>>> 
>>>>  
>>>> 
>>>> Sample Code:
>>>> 
>>>>  
>>>> 
>>>> <target name="build.beanA"/>
>>>> 
>>>> <target name="build.beanB"/>
>>>> 
>>>> <target name="build.beanC"/>
>>>> 
>>>> <target
>>>> depends="build.beanA,build.beanB,build.beanC"
>>>> name="build.all.beans"/>
>>>> 
>>>>  
>>>> 
>>>>  
>>>> 
>>>>  
>>>> 
>>>> **************************************
>>>> 
>>>> Karen Schaper
>>>> 
>>>> Marketlink Java Developer
>>>> 
>>>> Danzas AEI
>>>> 
>>>> (845) 268-6300
>>>> 
>>>> **************************************
>>>> 
>>>>  
>>>> 
>>>>> --
>>>> 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!?
>>> Yahoo! News - Today's headlines
>>> http://news.yahoo.com
>>> 
>>> --
>>> 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!?
>> Yahoo! News - Today's headlines
>> http://news.yahoo.com
>> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
> 
> --
> 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