Jonathan Addison wrote:
Andreas Hartmann wrote:
Oliver Schalch wrote:
On Tue, 28 Feb 2006 10:23:12 +0100
Michael Wechner <[EMAIL PROTECTED]> wrote:
Hi
It seems to me there is a bug re specifying single modules within
(local.)build.properties
If one specifies it as follows:
modules.root.dirs=src/modules
then it works, but
modules.root.dirs=src/modules/jcr
won't work at least re copying of Java classes.
Can anyone confirm this?
I can confirm that, but it is because it looks into the given folder if
there are "modules folders", in your case it would go look into
src/modules/jcr and dont find a module folder because it does already
point to it.
I guess that is why its name is "modules.ROOT.dirs"...
No, it should work the same way as it does for publications.
No idea why copying the Java code fails ...
The corresponding line is init-build.xml:115
<copyJavaSources pubsrootdirs="${modules.root.dirs}" javadir="java/src"
builddir="${build.java.src}" />
-- Andreas
I also experienced this issue last week. The copyDir method works if
there is a publication.xml, but for modules it always uses
copyContentOfDir like Oli said.
From CopyTask.java
if (new File(pubsRootDir, "publication.xml").isFile()) {
CopyJavaSourcesTask.copyDir(new File(pubsRootDir), new
File(this.toDir.toString()),
twoTuple, filter, this);
} else {
// FIXME: Look for publications defined by the file
"publication.xml"
CopyJavaSourcesTask.copyContentOfDir(new File(pubsRootDir),
new File(this.toDir.toString()), twoTuple, filter,
this);
}
-- Jon
Thanks for the pointer. I have fixed it and added a README.txt
Please note that in order to work it needs a file "module.xml" (similar
to publication.xml) in order
to recognize that this is a module and not just an arbitrary directory.
If one specifies the parent dir (e.g. modules) then this file is not
needed, but I would suggest that
we make it mandatory.
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]