Hi,
I am trying to compile, javadoc and clover class files in my project
that are in two different source directories.
The directory structure for the source files is like this.
basedir is d:\builder\<project name>\demo
${basedir}\src
${basedir}\build\gen-src
The project.xml in the basedir has the sourceDirectory set to :
<sourceDirectory>src</sourceDirectory>
This means that the maven.compile.src should already contain
d:\builder\<project name>\demo\src.
What I want to do is add d:\builder\<project name>\demo\build\gen-src to
the maven.compile.src.
I have looked through several archived posts and the FAQ. I found the
following code and added it to maven.xml but it does not appear to work.
This try's to add the ${basedir}\build\gen-src directory to the
mavan.compile.src property.
<preGoal name="java:compile">
<ant:path
id="my.other.src.dir"
location="${basedir}/build/gen-src"/>
<addPath
id="maven.compile.src.set"
refid="my.other.src.dir"/>
<ant:property name="cp" refid="maven.compile.src.set"/>
<ant:echo>maven.compile.src.set=${cp}</ant:echo>
</preGoal>
The echo message prints [echo] maven.compile.src.set=D:\builder\<project
name>\demo\src
This means that the ${basedir}\build\gen-src directory has not been
added to the maven.compile.src property.
Any ideas what might be wrong here. Also, any ideas how I can get
JavaDoc and Clover to be generated against the gen-src directory.
Thanks,
Richie.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]