Build properties through <property file>

David Peter Bradly <[email protected]> Tue, 27 May 2014 11:18:33 +0000
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <0F933620C468E644A2E0ED4FCF0926180193A2F67F@NL0230MBX10N2.DIR.slb.com>
--===============1520687188066122659==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_0F933620C468E644A2E0ED4FCF0926180193A2F67FNL0230MBX10N2_"

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

I am trying to set up 'flexible' build properties for a Linux Cruise Contro=
l Project. The example being the verification or a particular previous buil=
d, where I need to set the build number at run time.

In Cruise Control.NET it is possible to define interactive build properties=
 through <text parameter>.

I am happy for the parameters to be defined in a file and I have investigat=
ed <property file> for this purpose.

  <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"/>

However, it appears that the property file is only read once when the cruis=
e control process is started or restarted, but not when the project is run,=
 either scheduled or forced.

Is this the expected behavior and if so, what other method could I use to s=
et build properties for a particular run?

Thanks,

David Bradly


--_000_0F933620C468E644A2E0ED4FCF0926180193A2F67FNL0230MBX10N2_
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:Calibri;
	panose-1:2 15 5 2 2 2 4 3 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";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
.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 am trying to set up &#8=
216;flexible&#8217; build properties for a Linux Cruise Control Project. Th=
e example being the verification or a particular previous build, where
 I need to set the build number at run time.<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">In Cruise Control.NET it =
is possible to define interactive build properties through &lt;text paramet=
er&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">I am happy for the parame=
ters to be defined in a file and I have investigated &lt;property file&gt; =
for this purpose.<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></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"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">However, it appears that =
the property file is only read once when the cruise control process is star=
ted or restarted, but not when the project is run, either
 scheduled or forced. <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">Is this the expected beha=
vior and if so, what other method could I use to set build properties for a=
 particular run?<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">Thanks,<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>
</body>
</html>

--_000_0F933620C468E644A2E0ED4FCF0926180193A2F67FNL0230MBX10N2_--


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

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
--===============1520687188066122659==
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

--===============1520687188066122659==--