ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AW: AW: Jar or copy files from multiple unknown directories
Date Fri, 28 Oct 2005 10:37:40 GMT
Hello Cornelius,

for short ResourceCollection is a collection of Resources. A Resource [1] "Describes a "File-like"
resource 
(File, ZipEntry, etc.)." In the earlier past there were some work on that area [2] and we
tend to move
to that. E.g. <copy> [3,4] supports ResourceCollections - in HEAD of course.


Jan

[1] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
[2] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/

[3] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
[4] http://svn.apache.org/repos/asf/ant/core/trunk/docs/manual/CoreTasks/copy.html


>-----Ursprüngliche Nachricht-----
>Von: arcus(x) - Cornelius Buschka [mailto:c.buschka@arcusx.com] 
>Gesendet: Freitag, 28. Oktober 2005 12:29
>An: Ant Users List
>Betreff: Re: AW: AW: Jar or copy files from multiple unknown 
>directories
>
>What do you mean with ResourceCollection exactly? Could you 
>point me to a task that already supports ResourceCollection? 
>Or do you mean support for the mapper? (Sorry, not so deep in 
>ant yet ;)
>
>Cornelius
>
>Jan.Materne@rzf.fin-nrw.de wrote:
>> Would be better to add support of ResourceCollection to 
><zip> (and therefore to <jar>).
>> 
>> Jan
>> 
>> 
>>>-----Ursprüngliche Nachricht-----
>>>Von: arcus(x) - Cornelius Buschka [mailto:c.buschka@arcusx.com]
>>>Gesendet: Freitag, 28. Oktober 2005 12:17
>>>An: Ant Users List
>>>Betreff: Re: AW: Jar or copy files from multiple unknown directories
>>>
>>>Hello Jan,
>>>
>>>thanks for the quick reply. I will try out the mapper.
>>>
>>>I thought about extending the FileSet to use a dirset as base 
>>>directories  instead of a single dir. What do you think about?
>>>Do you think it could work?
>>>
>>>Best Regards
>>>Cornelius
>>>
>>>Jan.Materne@rzf.fin-nrw.de wrote:
>>>
>>>>Hi Cornelius,
>>>>
>>>>use only ${basedir} as dir and includes "**/src/". Maybe you
>>>
>>>have to play with nested mappers ...
>>>
>>>>damn - no mapper support in <jar> ...
>>>>
>>>>Ok, workaround - iterating with ac:foreach .
>>>>
>>>>
>>>>Jan
>>>>
>>>>
>>>>
>>>>
>>>>>-----Ursprüngliche Nachricht-----
>>>>>Von: arcus(x) - Cornelius Buschka [mailto:c.buschka@arcusx.com]
>>>>>Gesendet: Freitag, 28. Oktober 2005 11:45
>>>>>An: user@ant.apache.org
>>>>>Betreff: Jar or copy files from multiple unknown directories
>>>>>
>>>>>Hi,
>>>>>
>>>>>our project contains many source folders that can be found
>>>
>>>via pattern
>>>
>>>>>${basedir}/**/src.
>>>>>
>>>>>I would like to jar up files from these directories into one
>>>
>>>jar. Not
>>>
>>>>>the whole contents but a selection of files from each folder only.
>>>>>
>>>>><jar jarfile="..." ...>
>>>>> <fileset dir="${basedir}/**/src" includes="**" 
>>>>>excludes="**/*.java"/> </jar>
>>>>>
>>>>>did not work, because the fileset could not find the directory 
>>>>>"${basedir}/**/src". Ok, dir-attribute is a directory, no dirset.
>>>>>
>>>>>Any suggestions to solve this problem? Sorry, I dont see it :/
>>>>>
>>>>>Regards
>>>>>Cornelius
>>>>>
>>>>>--
>>>>>______________________________________________________
>>>>>
>>>>>arcus(x) GmbH
>>>>>
>>>>>Am Felde 132             fon: +49 (0)40.333 102 92
>>>>>D-20535 Hamburg          fax: +49 (0)40.333 102 93
>>>>>
>>>>>http://www.arcusx.com    mailto:c.buschka@arcusx.com
>>>>>______________________________________________________
>>>>>
>>>>>
>>>>>-----------------------------------------------------------
>---------
>>>>>- 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
>>>>
>>>>
>>>
>>>--
>>>______________________________________________________
>>>
>>> arcus(x) GmbH
>>>
>>> Am Felde 132             fon: +49 (0)40.333 102 92
>>> D-20535 Hamburg          fax: +49 (0)40.333 102 93
>>>
>>> http://www.arcusx.com    mailto:c.buschka@arcusx.com
>>>______________________________________________________
>>>
>>>---------------------------------------------------------------------
>>>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
>> 
>> 
>
>--
>______________________________________________________
>
>  arcus(x) GmbH
>
>  Am Felde 132             fon: +49 (0)40.333 102 92
>  D-20535 Hamburg          fax: +49 (0)40.333 102 93
>
>  http://www.arcusx.com    mailto:c.buschka@arcusx.com
>______________________________________________________
>
>---------------------------------------------------------------------
>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


Mime
View raw message