Re: How to set "property" within p4 modificationset???

Jeff Chen <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hey Jeffy,  thanks a lot for your help.  I think I got it.

After I remove the following 2 lines from my code, the correct "updated" value is passed to the ant build:

 

<property name="updated" value="0">

and

<property name="flag" value="$updated">

 

again, thanks a lot for your help.  Have a wonderful weekend!
 


Date: Fri, 3 Apr 2009 18:47:39 -0700
From: [email protected]
To: [email protected]
Subject: Re: [Cruisecontrol-user] How to set "property" within p4 modificationset???




Is this a correct usage of "property" attribute in p4 modificationset?



You're very close but not quite.


They key concept you're missing is the distinction between configuration time properties and runtime properties: configuration time properties get substituted into the config.xml while runtime properties are passed into the builders.


The p4 modification set will define the property updated and that will be passed to Ant (-Dupdated=true or something like that) but it isn't available to substitute in the config.xml.


That make sense?


Jtf
-- 
Build engineering training: http://ci-guys.com/training.php



On Fri, Apr 3, 2009 at 6:03 PM, jeffchen2008 <[email protected]> wrote:


Does anyone know there is way to set "property" within p4 modificationset?  I
have the following in my cruisecontrol config.xml:

<cruisecontrol>
...
...
<project name= ...>
               <property name="updated" value="0" />
...
...
               <modificationset>
                       <p4
view="//depot/asic/msmshared/core_platform/plfs/p4testfile.txt"
port="${P4PORT}" user="${P4USER}"
                           passwd="${P4PASSWD}" client="${P4CLIENT}"
property="updated" />
                       ...
               </modificationset>

               <schedule interval="300">
                           <ant target="build" anthome="apache-ant-1.6.5"
buildfile="projects/${project.name}/${project.name}.xml">
                       <property name="flag" value="${updated}" />
                       </ant>
               </schedule>

...
...
</project>
...
...
</cruisecontrol>

Is this a correct usage of "property" attribute in p4 modificationset?  It
seems to me that "updated" is never set/touched even if a ant build is
triggerred by an update to
"//depot/asic/msmshared/core_platform/plfs/p4testfile.txt" in perforce
repository.  Can anyone give me a hint on this?  Your help would be greatly
appreciated.

Frank
--
View this message in context: http://www.nabble.com/How-to-set-%22property%22-within-p4-modificationset----tp22878884p22878884.html
Sent from the CruiseControl - User mailing list archive at Nabble.com.




_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009

------------------------------------------------------------------------------

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.