You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jonathan Addison <jo...@wyona.com> on 2006/06/23 01:05:34 UTC
1.4 Build Failed: relative vs absolute Module paths
BUILD FAILED
D:\src\lenya-1.4.x\build\lenya\temp\modules-build.xml:69: Failed to copy
D:\src\lenya-1.4.x\src\modules\svg\sitemap.xmap to
D:\src\lenya-1.4.x\build\lenya\webapp\lenya\modules\/*D:\src\lenya-1.4.x\*/src\modules\svg\sitemap.xmap
This is on Win XP with the latest checkout of trunk. It seems the
relative module paths in local.build.properties are being converted to
absolute paths somewhere during the build.
I had a quick look at GenerateModuleList.java, the first snippet is the
most recent revision. The only thing I see is no longer using
getSourceDir().
File[] modules = (File[]) descriptors.toArray(new File[descriptors.size()]);
for (int i = 0; i < modules.length; i++) {
Element element = doc.createElementNS(NAMESPACE, "module");
element.setAttribute("src", modules[i].getAbsolutePath());
doc.getDocumentElement().appendChild(element);
---------------------------------------------------------------------
ModuleDescriptor[] modules = descriptors.getSortedDescriptors();
for (int i = 0; i < modules.length; i++) {
File path = modules[i].getSourceDir();
Element element = doc.createElementNS(NAMESPACE, "module");
element.setAttribute("src", path.getAbsolutePath());
doc.getDocumentElement().appendChild(element);
Has anyone else had this issue? Thanks for any help.
--
Jonathan Addison jon<at>wyona.com
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: 1.4 Build Failed: relative vs absolute Module paths
Posted by Andreas Hartmann <an...@apache.org>.
Jonathan Addison wrote:
> BUILD FAILED
> D:\src\lenya-1.4.x\build\lenya\temp\modules-build.xml:69: Failed to copy
> D:\src\lenya-1.4.x\src\modules\svg\sitemap.xmap to
> D:\src\lenya-1.4.x\build\lenya\webapp\lenya\modules\/*D:\src\lenya-1.4.x\*/src\modules\svg\sitemap.xmap
Hi Jonathan,
would you mind trying it again (I removed some code yesterday),
and if it still doesn't work, file a bug report?
I guess you are right, it is related to incorrect handling of
path separators. Thanks a lot for examining this!
-- Andreas
>
>
> This is on Win XP with the latest checkout of trunk. It seems the
> relative module paths in local.build.properties are being converted to
> absolute paths somewhere during the build.
>
> I had a quick look at GenerateModuleList.java, the first snippet is the
> most recent revision. The only thing I see is no longer using
> getSourceDir().
> File[] modules = (File[]) descriptors.toArray(new
> File[descriptors.size()]);
> for (int i = 0; i < modules.length; i++) {
> Element element = doc.createElementNS(NAMESPACE, "module");
> element.setAttribute("src", modules[i].getAbsolutePath());
> doc.getDocumentElement().appendChild(element);
>
> ---------------------------------------------------------------------
>
> ModuleDescriptor[] modules = descriptors.getSortedDescriptors();
> for (int i = 0; i < modules.length; i++) {
> File path = modules[i].getSourceDir();
> Element element = doc.createElementNS(NAMESPACE, "module");
> element.setAttribute("src", path.getAbsolutePath());
> doc.getDocumentElement().appendChild(element);
>
> Has anyone else had this issue? Thanks for any help.
>
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org