Sure -- And this could entirely be user error ... I really haven't
looked into the flattening code enough to know what it should be.
Here's the scenario I've got:
Folder in project named "WSResources" that contains .jpg and .png's, etc
Folder in project named "CMSResources" that contains other subfolders
wsresources include patterns are "**/*.jpg" and "**/*.png" and "**/
CMSResources"
In eclipse, this flattens as i would expect -- namely all the gifs
and jpegs are copied into the Contents/WebServerResources folder and
the actual CMSResources folder is copied into Contents/
WebServerResources. That is, in eclipse I end up with:
Contents/WebServerResources/CMSResources/everythinginthatfolder
Contents/WebServerResources/imageFromWSResourcesFolder1.gif
Contents/WebServerResources/imageFromWSResourcesFolder2.gif
When I build in ant, it includes the folder name all the time, so I
end up with:
Contents/WebServerResources/CMSResources/everythinginthatfolder
Contents/WebServerResources/WSResources/imageFromWSResourcesFolder1.gif
Contents/WebServerResources/WSResources/imageFromWSResourcesFolder2.gif
I think it should maybe be (this is just a proposal):
1) **/*.gif should flatten
2) **/Folder/**/*.gif should flatten starting at a particular folder
3) **/Folder should include "Folder" and all of its contents
4) **/Folder/* should include all the contents of Folder but not
Folder itself
So "**" should always interpret as flattening anything that matches
the **. I have no idea if this jives with the way ant does things,
though, so this may not be possible without a bunch of work. It may
be that we have to extend the wsresources/resources/etc include/
exclude patterns to support specifying flattening behavior explicitly?
ms
On Dec 8, 2005, at 12:04 PM, Sébastien Sahuc wrote:
> The flattening rules are indeed different between what ant does
> compared to eclipse. As for ant, I had (month or so ago) to provide
> a patch that was committed that solved a flattening issue for file
> already in Resources folder. Before the fix, the resource files
> inside Resources folder would get copied into 'Resources/Resources/
> resource_name' which is obviously wrong. Now I didn't want to
> change too much code so I believe my patch is less than optimal, so
> there might be cases that aren't properly flattened. Could you
> please share your experience ?
>
> Seb
>
> On Dec 2, 2005, at 6:18 AM, Mike Schrag wrote:
>
>> I just noticed this a couple days ago also. I think there just
>> might be a bug at the moment. That and I don't understand the
>> flattening rules other than that I know they're different between
>> ant and eclipse at the moment. Any ideas Ulrich? I'll have some
>> time later this afternoon to take a look ...
>>
>> ms
>>
>> On Dec 2, 2005, at 7:36 AM, Hugi Thordarson wrote:
>>
>>> Hi all!
>>>
>>> I'm having a little problem adding resources to my projects in
>>> WOLips. If I import documents into my project, right click and
>>> select WOLips Tools -> Include as Resource, they don't seem to be
>>> added anyway.
>>> For example, I added a server.wsdd file to my project, select
>>> "Include as Resource" (by extension) and I see that the file
>>> "woproject/resources.include.patternset" now includes the line
>>> "**/*.wsdd". Still the wsdd is not copied :-(.
>>>
>>> Can anyone spot what silly little thing I'm doing wrong here?
>>>
>>> Cheers,
>>> - Hugi
>>
>
This archive was generated by hypermail 2.0.0 : Thu Dec 08 2005 - 12:43:53 EST