Re: Build properties through <property file>

David Peter Bradly <[email protected]> Wed, 28 May 2014 13:29:30 +0000
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <0F933620C468E644A2E0ED4FCF0926180193A2FC3E@NL0230MBX10N2.DIR.slb.com>
--===============5633755864714605234==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_0F933620C468E644A2E0ED4FCF0926180193A2FC3ENL0230MBX10N2_"

--_000_0F933620C468E644A2E0ED4FCF0926180193A2FC3ENL0230MBX10N2_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I still can't see what I am doing wrong then. I am not using ant or anythin=
g.

My build.properties file contains

#Linux validation build properties
build_version=3D2014.1
build_number=3D507

Which is updated by a separate process or manually when a builds needs vali=
dating

And the CC project starts

  <project name=3D"Linux-Validation" forceOnly=3D"true">

    <!-- Get build properties for validation project from file - used only =
in forced build -->
    <property file=3D"/linuxvalidation/build.properties"/>

    <schedule>
        <exec workingdir=3D"/regression/linux/bin" command=3D"/regression/l=
inux/bin/validation.sh" args=3D"${buildforced} ${build_version} ${build_num=
ber}"/>
    </schedule>

But when I force the project to run it only ever uses the properties that w=
ere in the build.properties file when the init.d/cruisecontrol task is star=
ted or restarted.

I must be missing something obvious!

David Bradly

From: Adam Bruss [mailto:[email protected]]
Sent: 27 May 2014 16:53
To: [email protected]<mailto:cruisecontrol-user@list=
s.sourceforge.net>
Subject: Re: [Cruisecontrol-user] Build properties through <property file>

The propertyfilelabelincrementer tag is local to each cc project. The props=
.file is global. You can put multiple values in it so we use one for all ou=
r builds.

-Adam

Adam Bruss
Senior Development Engineer
AWR Corporation
1017 W. Glen Oaks Lane Suite 106
Mequon, WI 53092
P: 1.262.241.2384
E: [email protected]<http://meqtestprfrm-dt:8080/cruisecontrol/buildresult=
s/[email protected]>
W: http://www.awrcorp.com<http://www.awrcorp.com/>

From: Adam Bruss [mailto:[email protected]]
Sent: Tuesday, May 27, 2014 10:45 AM
To: [email protected]<mailto:cruisecontrol-user@list=
s.sourceforge.net>
Subject: Re: [Cruisecontrol-user] Build properties through <property file>

Hi David,

Yes it reads it on each build.

The files looks like this:

# Cruisecontrol reads this file to set its build label
projectprop=3D

The ant bootstrapper sets the value in here.

Here is how we set the property value, projectprop, in the antbootstrapper:

<propertyfile file=3D"c:\temp\props.file">
  <entry key=3D"projectprop" value=3D"[${my_build_number}]"/>
</propertyfile>

my_build_number comes from an xml file our build system writes to our test =
machine after each full build. Gotta get the current build number from some=
where.

-Adam

Adam Bruss
Senior Development Engineer
AWR Corporation
1017 W. Glen Oaks Lane Suite 106
Mequon, WI 53092
P: 1.262.241.2384
E: [email protected]<http://meqtestprfrm-dt:8080/cruisecontrol/buildresult=
s/[email protected]>
W: http://www.awrcorp.com<http://www.awrcorp.com/>


--_000_0F933620C468E644A2E0ED4FCF0926180193A2FC3ENL0230MBX10N2_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Cambria;
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle24
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle25
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle26
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle27
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle28
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">I still can&#8217;t see w=
hat I am doing wrong then. I am not using ant or anything.<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">My build.properties file =
contains<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">#Linux validation build p=
roperties<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">build_version=3D2014.1<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">build_number=3D507<o:p></=
o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Which is updated by a sep=
arate process or manually when a builds needs validating<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">And the CC project starts=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&lt;</span><span style=
=3D"font-size:10.0pt;font-family:Consolas;color:#A31515">project</span><spa=
n style=3D"font-size:10.0pt;font-family:Consolas;color:blue">&nbsp;</span><=
span style=3D"font-size:10.0pt;font-family:Consolas;color:red">name</span><=
span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">=3D</span><=
span style=3D"font-size:10.0pt;font-family:Consolas;color:black">&quot;</sp=
an><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">Linux-V=
alidation</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:=
black">&quot;</span><span style=3D"font-size:10.0pt;font-family:Consolas;co=
lor:blue">&nbsp;</span><span style=3D"font-size:10.0pt;font-family:Consolas=
;color:red">forceOnly</span><span style=3D"font-size:10.0pt;font-family:Con=
solas;color:blue">=3D</span><span style=3D"font-size:10.0pt;font-family:Con=
solas;color:black">&quot;</span><span style=3D"font-size:10.0pt;font-family=
:Consolas;color:blue">true</span><span style=3D"font-size:10.0pt;font-famil=
y:Consolas;color:black">&quot;</span><span style=3D"font-size:10.0pt;font-f=
amily:Consolas;color:blue">&gt;</span><span style=3D"font-size:10.0pt;font-=
family:Consolas;color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--</sp=
an><span style=3D"font-size:10.0pt;font-family:Consolas;color:green">&nbsp;=
Get&nbsp;build&nbsp;properties&nbsp;for&nbsp;validation&nbsp;project&nbsp;f=
rom&nbsp;file&nbsp;-&nbsp;used&nbsp;only&nbsp;in&nbsp;forced&nbsp;build&nbs=
p;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">-=
-&gt;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blac=
k"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span>=
<span style=3D"font-size:10.0pt;font-family:Consolas;color:#A31515">propert=
y</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">&n=
bsp;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:red">=
file</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue"=
>=3D</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:black=
">&quot;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:b=
lue">/linuxvalidation/build.properties</span><span style=3D"font-size:10.0p=
t;font-family:Consolas;color:black">&quot;</span><span style=3D"font-size:1=
0.0pt;font-family:Consolas;color:blue">/&gt;</span><span style=3D"font-size=
:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;</span><spa=
n style=3D"font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></=
span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span>=
<span style=3D"font-size:10.0pt;font-family:Consolas;color:#A31515">schedul=
e</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">&g=
t;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:black">=
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&lt;</span><span style=3D"font-size:10.0pt;font-family:Consola=
s;color:#A31515">exec</span><span style=3D"font-size:10.0pt;font-family:Con=
solas;color:blue">&nbsp;</span><span style=3D"font-size:10.0pt;font-family:=
Consolas;color:red">workingdir</span><span style=3D"font-size:10.0pt;font-f=
amily:Consolas;color:blue">=3D</span><span style=3D"font-size:10.0pt;font-f=
amily:Consolas;color:black">&quot;</span><span style=3D"font-size:10.0pt;fo=
nt-family:Consolas;color:blue">/regression/linux/bin</span><span style=3D"f=
ont-size:10.0pt;font-family:Consolas;color:black">&quot;</span><span style=
=3D"font-size:10.0pt;font-family:Consolas;color:blue">&nbsp;</span><span st=
yle=3D"font-size:10.0pt;font-family:Consolas;color:red">command</span><span=
 style=3D"font-size:10.0pt;font-family:Consolas;color:blue">=3D</span><span=
 style=3D"font-size:10.0pt;font-family:Consolas;color:black">&quot;</span><=
span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">/regression=
/linux/bin/validation.sh</span><span style=3D"font-size:10.0pt;font-family:=
Consolas;color:black">&quot;</span><span style=3D"font-size:10.0pt;font-fam=
ily:Consolas;color:blue">&nbsp;</span><span style=3D"font-size:10.0pt;font-=
family:Consolas;color:red">args</span><span style=3D"font-size:10.0pt;font-=
family:Consolas;color:blue">=3D</span><span style=3D"font-size:10.0pt;font-=
family:Consolas;color:black">&quot;</span><span style=3D"font-size:10.0pt;f=
ont-family:Consolas;color:blue">${buildforced}&nbsp;${build_version}&nbsp;$=
{build_number}</span><span style=3D"font-size:10.0pt;font-family:Consolas;c=
olor:black">&quot;</span><span style=3D"font-size:10.0pt;font-family:Consol=
as;color:blue">/&gt;</span><span style=3D"font-size:10.0pt;font-family:Cons=
olas;color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white"><span style=3D"font-size:=
10.0pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span=
><span style=3D"font-size:10.0pt;font-family:Consolas;color:#A31515">schedu=
le</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:blue">&=
gt;</span><span style=3D"font-size:10.0pt;font-family:Consolas;color:black"=
><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">But when I force the proj=
ect to run it only ever uses the properties that were in the build.properti=
es file when the init.d/cruisecontrol task is started or
 restarted.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">I must be missing somethi=
ng obvious!<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">David Bradly<o:p></o:p></=
span></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Adam Bru=
ss [<a href=3D"mailto:[email protected]">mailto:[email protected]</a>]
<br>
<b>Sent:</b> 27 May 2014 16:53<br>
<b>To:</b> <a href=3D"mailto:[email protected]">crui=
[email protected]</a><br>
<b>Subject:</b> Re: [Cruisecontrol-user] Build properties through &lt;prope=
rty file&gt;<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">The propertyfilelabelincr=
ementer tag is local to each cc project. The props.file is global. You can =
put multiple values in it so we use one for all our builds.<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">-Adam<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<p class=3D"MsoNormal"><b><i><span style=3D"font-size:11.0pt;font-family:&q=
uot;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Adam Bruss<o:p></o:p></s=
pan></i></b></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Senior Development Engineer=
<o:p></o:p></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">AWR Corporation<o:p></o:p><=
/span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">1017 W. Glen Oaks Lane Suit=
e 106<o:p></o:p></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Mequon, WI 53092<o:p></o:p>=
</span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">P: 1.262.241.2384<o:p></o:p=
></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">E:
<a href=3D"http://meqtestprfrm-dt:8080/cruisecontrol/buildresults/abruss@aw=
rcorp.com">
<span style=3D"color:#1F497D">[email protected]</span></a><o:p></o:p></spa=
n></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">W:
<a href=3D"http://www.awrcorp.com/"><span style=3D"color:#1F497D">http://ww=
w.awrcorp.com</span></a><o:p></o:p></span></i></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Adam Bru=
ss [<a href=3D"mailto:[email protected]">mailto:[email protected]</a>]
<br>
<b>Sent:</b> Tuesday, May 27, 2014 10:45 AM<br>
<b>To:</b> <a href=3D"mailto:[email protected]">crui=
[email protected]</a><br>
<b>Subject:</b> Re: [Cruisecontrol-user] Build properties through &lt;prope=
rty file&gt;<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi David,<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Yes it reads it on each b=
uild.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">The files looks like this=
:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"># Cruisecontrol reads thi=
s file to set its build label<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">projectprop=3D<o:p></o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">The ant bootstrapper sets=
 the value in here.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Here is how we set the pr=
operty value, projectprop, in the antbootstrapper:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">&lt;propertyfile file=3D&=
quot;c:\temp\props.file&quot;&gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp; &lt;entry key=3D&q=
uot;projectprop&quot; value=3D&quot;[${my_build_number}]&quot;/&gt;<o:p></o=
:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">&lt;/propertyfile&gt;<o:p=
></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">my_build_number comes fro=
m an xml file our build system writes to our test machine after each full b=
uild. Gotta get the current build number from somewhere.<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">-Adam<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<div>
<p class=3D"MsoNormal"><b><i><span style=3D"font-size:11.0pt;font-family:&q=
uot;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Adam Bruss<o:p></o:p></s=
pan></i></b></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Senior Development Engineer=
<o:p></o:p></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">AWR Corporation<o:p></o:p><=
/span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">1017 W. Glen Oaks Lane Suit=
e 106<o:p></o:p></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">Mequon, WI 53092<o:p></o:p>=
</span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">P: 1.262.241.2384<o:p></o:p=
></span></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">E:
<a href=3D"http://meqtestprfrm-dt:8080/cruisecontrol/buildresults/abruss@aw=
rcorp.com">
<span style=3D"color:#1F497D">[email protected]</span></a><o:p></o:p></spa=
n></i></p>
<p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:&quot=
;Cambria&quot;,&quot;serif&quot;;color:#1F497D">W:
<a href=3D"http://www.awrcorp.com/"><span style=3D"color:#1F497D">http://ww=
w.awrcorp.com</span></a><o:p></o:p></span></i></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
</div>
</body>
</html>

--_000_0F933620C468E644A2E0ED4FCF0926180193A2FC3ENL0230MBX10N2_--


--===============5633755864714605234==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
--===============5633755864714605234==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

--===============5633755864714605234==--