You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastien Arbogast <se...@gmail.com> on 2005/04/15 19:46:30 UTC

Deprecated maven.src.dir and references

Hi,

I'm a maven newbie and I have a little problem with property
definitions. In maven documentation, it's said that the property
maven.src.dir is deprecated and should be replaced by the <sourceDir>
element of the pom.
But I used maven.src.dir in project.properties to define other path
properties that depend on maven.src.dir.
So my question is : if I only use <sourceDir> element in POM to define
my source dir, how can I refer to this definition in
project.properties and other elements of project.xml and maven.xml ?
I guess there is a way to do so with some jelly syntax but I don't
know jelly that much...

Thanks in advance.

-- 
Sebastien ARBOGAST

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Deprecated maven.src.dir and references

Posted by Guillaume Laforge <gl...@gmail.com>.
On 15/04/05, Sebastien Arbogast <se...@gmail.com> wrote:
> I'm a maven newbie and I have a little problem with property
> definitions. In maven documentation, it's said that the property
> maven.src.dir is deprecated and should be replaced by the <sourceDir>
> element of the pom.
> But I used maven.src.dir in project.properties to define other path
> properties that depend on maven.src.dir.
> So my question is : if I only use <sourceDir> element in POM to define
> my source dir, how can I refer to this definition in
> project.properties and other elements of project.xml and maven.xml ?
> I guess there is a way to do so with some jelly syntax but I don't
> know jelly that much...

If I'm not mistaken: ${pom.build.sourceDirectory} should do.

-- 
Guillaume Laforge
http://glaforge.free.fr/weblog/?catid=2

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org