You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by en...@sgx.com on 2004/02/26 10:30:22 UTC

Passing system property to subprojects with Jelly

How do I set a system property from Jelly script so that it can be passed
down to the subprojects?

For example, I can execute the following command: 'maven
-DmyProperty=myValue -Dgoal=myGoal multiproject:goal'.  Then all the
subprojects will get ${myProperty} = myValue.

However, I do not get the same result as above if I do this in the parent
project:
<preGoal name="multiproject:goal">
     <j:set var="myProperty" value="myValue"/>
</preGoal>

Regards,
Eng Hoe
Application Development
Technology Group
SGX Ltd

DID: (65) 62368963
FAX: (65) 64388840
email: enghoe@sgx.com

Confidentiality Caution
=======================
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Opinions, conclusions and other
information in this message that is not of an official nature shall be
deemed as neither given nor endorsed by SGX unless indicated by an
authorised representative independent of this message.


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