Bug 41413 - woproject woapplication copy to wrong directory
Summary: woproject woapplication copy to wrong directory
Status: ASSIGNED
Alias: None
Product: Ant
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 1.7.0
Hardware: Other Solaris
: P3 regression (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 08:11 UTC by Michael Witzel
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments
build file (9.19 KB, text/plain)
2007-01-19 08:31 UTC, Michael Witzel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Witzel 2007-01-19 08:11:07 UTC
For some directories ant copies files into the wrong directory. The example show
s that Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html is copied into
BankCodeSearch.wo/BankCodeSearch.html and hence overwrites the different files
in BankCodeSearch.wo/BankCodeSearch.html

This happens not in ant version 1.6.1.

example:
wrong in 1.7.0:
[woapplication] Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html added as
Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication] Banking.subproj/BankCodeSearch.wo/BankCodeSearch.html added as
BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication]
Banking.subproj/Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html added as
BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication] Copying
/home/iceadm/src/apps/Viper/Banking.subproj/Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html
to
/home/iceadm/src/apps/Viper/dist/dbpbc.woa/Contents/Resources/BankCodeSearch.wo/BankCodeSearch.html
[woapplication] Copying
/home/iceadm/src/apps/Viper/Banking.subproj/BankCodeSearch.wo/BankCodeSearch.html
to
/home/iceadm/src/apps/Viper/dist/dbpbc.woa/Contents/Resources/BankCodeSearch.wo/BankCodeSearch.html


ok in 1.6.1:
[woapplication] Banking.subproj/BankCodeSearch.wo/BankCodeSearch.html added as
BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication]
Banking.subproj/Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html added as
BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication] Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html added as
Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html doesn't exist.
[woapplication] Copying
/Users/iceadm/work/src/apps/Viper/Banking.subproj/BankCodeSearch.wo/BankCodeSearch.html
to
/Users/iceadm/work/src/apps/Viper/dist/dbpbc.woa/Contents/Resources/BankCodeSearch.wo/BankCodeSearch.html
[woapplication] Copying
/Users/iceadm/work/src/apps/Viper/Banking.subproj/Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html
to
/Users/iceadm/work/src/apps/Viper/dist/dbpbc.woa/Contents/Resources/Mobile.lproj/BankCodeSearch.wo/BankCodeSearch.html
Comment 1 Peter Reilly 2007-01-19 08:25:47 UTC
Can you provide an example build file please?
Comment 2 Michael Witzel 2007-01-19 08:31:10 UTC
Created attachment 19432 [details]
build file

this is the build file we're using
Comment 3 Peter Reilly 2007-01-19 08:59:54 UTC
The task in question is: woapplication
http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Ant

It would seem that there is a regression in ant 1.7.0
for this task.
Comment 4 Matt Benson 2007-01-19 11:06:58 UTC
(In reply to comment #3)
> The task in question is: woapplication
> http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Ant
> 
> It would seem that there is a regression in ant 1.7.0
> for this task.

Perhaps, but it's difficult to tell because there are so many variables.  Even
though we have a sample buildfile, we don't have a sample environment, so we
can't see where the various resource files, which appear to actually belong to
various filesets, actually reside.  This becomes further complicated by the
intricate mapping rules implemented by the WOMapper class.  I'd love to have
someone familiar with the third-party code provide more detail here.
Comment 5 Michael Witzel 2007-01-19 13:11:57 UTC
I'm not sure if I can provide a dummy file set/application in an easy way to
make that reproducible for you. I guess you'll need at least the sources of
woproject.jar and maybe also WebObjects installation?
I'll try to help as much as possible. ;-)