Perfect.  I'm surprised I didn't think of that.. thanks for your reply, Tom. 

Josh


On 8/11/05, Litton, Tom - CEPM <[EMAIL PROTECTED]> wrote:
> maven goals have access to all properties set for that project, plus any that 
> gets passed in on the command line.
> 
> So, for maven 1, you have 2 options.  First, create build.properties file and 
> put the properties you want in that.
> 
> Second, pass the properties from cruisecontrol config.xml file.  for example:
> <maven goal="-DpropName=propValue goalName" ...
> 
> I think the second will also work with maven2, but i'm not sure.
> 
> -----Original Message-----
> From: Josh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 12:17 PM
> To: [email protected]
> Subject: Passing parameters to maven.xml goals
> 
> 
> Is this possible?  As one of my goals in maven.xml I have a script
> which publishes certain generated files to a specified web directory.
> This goal is referenced in the "maven" builder element of a
> CruiseControl config file, and is the last step of a successful build.
>  The problem is that I don't want maven.xml to be tied to a specific
> location for publishing; I want that information to come from various
> CruiseControl config.xml files, each of which publishes to a different
> location.  So I need CruiseControl to communicate the location to the
> Maven build process in some way.  Sorry if this is a trivial question,
> but in all the examples I've found, I haven't seen any additional
> arguments being passed along with the name of the goal.  Thanks,
> 
> Josh
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ----------------------------------------------------------------------
> The information contained in this transmission is intended only for
> the personal and confidential use of the designated recipients named
> herein.  If the reader of this transmission is not the intended
> recipient or an agent responsible for delivering it to the intended
> recipient, you are hereby notified that you have received this
> transmission in error, and that any review, dissemination,
> distribution, or copying of this transmission is strictly prohibited.
> If you have received this communication in error, please notify the
> sender and return and delete the original transmission immediately.
> Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to