You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by khote <kh...@mminternet.com> on 2003/11/25 04:04:36 UTC
Re: specify a different properties file rather than build.properties file
http://jakarta.apache.org/commons/jelly/libs/util/tags.html
Be sure you have
xmlns:util="jelly:util"
in your <project> tag, then
<util:properties file="build-qa.properties" trim="true" />
You can do this right after the <project> tag, or in some kind of <goal
name="init"> type of thing that everybody prereqs.
----- Original Message -----
From: "Nelson, Scott (MAN-Corporate)" <Sc...@cox.com>
To: "'Maven Users List'" <us...@maven.apache.org>
Sent: Monday, November 24, 2003 4:31 PM
Subject: specify a different properties file rather than build.properties
file
> Hey guys,
>
> After reading the documentation I know that the order of properties file
> processing is project.properties, build.properties,
> build.properties(user.home). I also read that the -Dname=value properties
> set at the CLI take precedence over all of these but...
>
> Say I wanted maven to use a file called build-qa.properties instead of
> build.properties, is there a way to do this in maven?
>
> I noticed that you can specify your project.xml file at the command line
> with the -p option but I didn't see anything related to the properties
file
> so I am assuming that what I want to do can't be done. Anybody know for
> sure?
>
> Thanks in advance,
>
> -Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: pom.id question
Posted by Ben Walding <be...@walding.com>.
You'd be wanting pom.groupId and pom.artifactId
Aaron Anodide wrote:
> I am using genapp to create my initial directory structure.
>
> I want to reference my application id in maven.xml.
>
> However ${pom.id} is yielding "id:id".
>
> Is there an easy way to get "id" from this? Like a jelly command to split
> "id:id" into a list and take the first element?
>
> Or, is there an easier way to access this value?
>
> Maybe the genapp plugin should put this value into project.properties by
> default?
>
> BTW, I realize this is an open source project, and I don't want to leech -
> should I be actually doing these little changes and offering them? I'm new
> to open source.
>
> Thanks,
> Aaron
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
pom.id question
Posted by Aaron Anodide <aa...@unipress.com>.
I am using genapp to create my initial directory structure.
I want to reference my application id in maven.xml.
However ${pom.id} is yielding "id:id".
Is there an easy way to get "id" from this? Like a jelly command to split
"id:id" into a list and take the first element?
Or, is there an easier way to access this value?
Maybe the genapp plugin should put this value into project.properties by
default?
BTW, I realize this is an open source project, and I don't want to leech -
should I be actually doing these little changes and offering them? I'm new
to open source.
Thanks,
Aaron
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org