You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Nelson, Scott (MAN-Corporate)" <Sc...@cox.com> on 2003/11/25 01:31:08 UTC
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
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
Re: specify a different properties file rather than build.properties file
Posted by khote <kh...@mminternet.com>.
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: specify a different properties file rather than
build.properties file
Posted by Jim Crossley <ji...@crossleys.org>.
Jason van Zyl <jv...@maven.org> writes:
> On Mon, 2003-11-24 at 19:31, Nelson, Scott (MAN-Corporate) wrote:
>> 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?
>
> Why would you need to that?
Because the properties for each environment you might build/deploy the
project in are different, e.g. QA's mail host is not the same as
Production's mail host. We keep each environment's properties file
under version control to simplify deployment -- we don't want to
introduce the potential for human error by editing a properties file.
We've used various ways of determining which properties file to use at
build-time -- it would be nice if Maven provided a more standard way
of doing it.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: specify a different properties file rather than
build.properties file
Posted by Jason van Zyl <jv...@maven.org>.
On Mon, 2003-11-24 at 19:31, Nelson, Scott (MAN-Corporate) wrote:
> 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?
Why would you need to that?
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org