Re: Managing NAnt Build Throu CC

Adam Bruss <[email protected]> Thu, 28 Feb 2013 19:56:14 +0000
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
--===============6213198459076187330==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_D81DB5ADDC5C3B4484C581AF3D8EFF9D21DF63D0ex2aawrlocal_"

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

Try putting Nant.exe in the system path, restarting CC and trying again.

Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI  53092  USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: [email protected]<http://meqtestprfrm-dt:8080/cruisecontrol/buildresult=
s/[email protected]>
W: http://www.awrcorp.com<http://www.awrcorp.com/>

From: [email protected] [mailto:[email protected]]
Sent: Thursday, February 28, 2013 12:29 PM
To: [email protected]
Subject: [Cruisecontrol-user] Managing NAnt Build Throu CC

Hi, All-

I was hoping somone might be able to steer me in the right direction in ter=
ms of advice or resources.
We currently are setting up CC to manage our builds. However, since we work=
 out of two stacks, we use two different builds - Ant and NAnt. If possible=
 we would like to mange everything vi CC instead of implementing both CC an=
d CC.Net.
I have read that CC supports NAnt and have seen the <nant> tag, but I can n=
ot get a successful NAnt build to run via CC.
My project node for the NAnt build is very simple:

    <project name=3D"sample.project">
        <listeners>
            <currentbuildstatuslistener file=3D"logs/${project.name}/status=
.txt"/>
        </listeners>
        <schedule interval=3D"300">
            <nant buildfile=3D"C:\projects\workspace\sample.project"  nantw=
orkingdir=3D"C:\nant-0.92\bin" target=3D"build"/>
        </schedule>
        <log>
            <merge dir=3D"projects/${project.name}/target/test-results"/>
        </log>
        <publishers>
            <onsuccess>
                <artifactspublisher dest=3D"artifacts/${project.name}" file=
=3D"projects/${project.name}/target/${project.name}.dll"/>
            </onsuccess>
        </publishers>
    </project>

When I try a build I get a couple of errors in the stack:

[cc]Feb-28 13:25:52 Project       - exception attempting build in project s=
ample.project net.sourceforge.cruisecontrol.CruiseControlException: Encount=
ered an IO exception while attempting to execute 'net.sourceforge.cruisecon=
trol.builders.NantScript@11fc4b8'. CruiseControl cannot continue.
        at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(Sc=
riptRunner.java:225)
        at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(Sc=
riptRunner.java:177)
        at net.sourceforge.cruisecontrol.builders.NantBuilder.build(NantBui=
lder.java:112)
        at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)
        at net.sourceforge.cruisecontrol.Project.build(Project.java:227)
        at net.sourceforge.cruisecontrol.Project.execute(Project.java:148)
        at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfi=
g.java:408)
        at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.=
java:69)

And

Caused by: java.io.IOException: Cannot run program "NAnt.exe" (in directory=
 "C:\nant-0.92\bin"): CreateProcess error=3D2, The system cannot find the f=
ile specified

Any help anyone can offer, or any resources anyone can direct me to, is muc=
h appreciated.
Thanks,

LK



The information transmitted is intended only for the
person or entity to which it is addressed and may
contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this
information by persons or entities other than the
intended recipient is prohibited. If you received this
in error, please delete the material from any
computer.

--_000_D81DB5ADDC5C3B4484C581AF3D8EFF9D21DF63D0ex2aawrlocal_
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:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	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:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
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">Try putting Nant.exe in t=
he system path, restarting CC and trying again.<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:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">Adam Bruss<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">Senior Development Engineer=
</span><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quo=
t;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">AWR Corporation<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">11520 N. Port Washington Rd=
., Suite 201</span><span style=3D"font-size:11.0pt;font-family:&quot;Calibr=
i&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">Mequon, WI&nbsp; 53092&nbsp=
; USA</span><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;=
,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">P: 1.262.240.0291 x104<o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">F: 1.262.240.0294<o:p></o:p=
></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">E:
<a href=3D"http://meqtestprfrm-dt:8080/cruisecontrol/buildresults/abruss@aw=
rcorp.com">
<span style=3D"color:blue">[email protected]</span></a></span><span style=
=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;=
;color:#1F497D"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;;color:#1F497D">W:
</span><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quo=
t;sans-serif&quot;;color:#1F497D"><a href=3D"http://www.awrcorp.com/"><span=
 style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&q=
uot;;color:blue">http://www.awrcorp.com</span></a><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"><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;"> Liam_Ken=
[email protected] [mailto:[email protected]]
<br>
<b>Sent:</b> Thursday, February 28, 2013 12:29 PM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> [Cruisecontrol-user] Managing NAnt Build Throu CC<o:p></o:p=
></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">Hi, All-</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">I was hoping somone might be able to steer me in the right direc=
tion in terms of advice or resources.</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">We currently are setting up CC to manage our builds. However, si=
nce we work out of two stacks, we use two different builds - Ant and NAnt. =
If possible we would like to mange everything vi CC instead
 of implementing both CC and CC.Net.</span> <br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">I have read that CC supports NAnt and have seen the &lt;nant&gt;=
 tag, but I can not get a successful NAnt build to run via CC.</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">My project node for the NAnt build is very simple:</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &lt;project name=3D&quot;sample.project&quot;&gt;<=
/span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;listeners&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;currentbuildstatus=
listener file=3D&quot;logs/${project.name}/status.txt&quot;/&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/listeners&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;schedule interval=3D&quot;300&qu=
ot;&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;nant buildfile=3D&=
quot;C:\projects\workspace\sample.project&quot; &nbsp;nantworkingdir=3D&quo=
t;C:\nant-0.92\bin&quot; target=3D&quot;build&quot;/&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/schedule&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;log&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;merge dir=3D&quot;=
projects/${project.name}/target/test-results&quot;/&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/log&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;publishers&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;onsuccess&gt;</spa=
n>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;arti=
factspublisher dest=3D&quot;artifacts/${project.name}&quot; file=3D&quot;pr=
ojects/${project.name}/target/${project.name}.dll&quot;/&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/onsuccess&gt;</sp=
an>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/publishers&gt;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &lt;/project&gt;</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">When I try a build I get a couple of errors in the stack:</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">[cc]Feb-28 13:25:52 Project &nbsp; &nbsp; &nbsp; - exception att=
empting build in project sample.project net.sourceforge.cruisecontrol.Cruis=
eControlException: Encountered an IO exception while attempting to execute
 'net.sourceforge.cruisecontrol.builders.NantScript@11fc4b8'. CruiseControl=
 cannot continue. &nbsp; &nbsp; &nbsp; &nbsp;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.bui=
lders.ScriptRunner.runScript(ScriptRunner.java:225) &nbsp; &nbsp; &nbsp; &n=
bsp;</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.bui=
lders.ScriptRunner.runScript(ScriptRunner.java:177)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.bui=
lders.NantBuilder.build(NantBuilder.java:112)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Sch=
edule.build(Schedule.java:169)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Pro=
ject.build(Project.java:227)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Pro=
ject.execute(Project.java:148)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Pro=
jectConfig.execute(ProjectConfig.java:408)</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Pro=
jectWrapper.run(ProjectWrapper.java:69)</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">And</span> <br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">Caused by: java.io.IOException: Cannot run program &quot;NAnt.ex=
e&quot; (in directory &quot;C:\nant-0.92\bin&quot;): CreateProcess error=3D=
2, The system cannot find the file specified</span>
<br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">Any help anyone can offer, or any resources anyone can direct me=
 to, is much appreciated.</span>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">Thanks,</span> <br>
<br>
<span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-se=
rif&quot;">LK</span><o:p></o:p></p>
<p>&nbsp; <br>
&nbsp; <br>
The information transmitted is intended only for the <br>
person or entity to which it is addressed and may <br>
contain confidential and/or privileged material. Any <br>
review, retransmission, dissemination or other use <br>
of, or taking of any action in reliance upon, this <br>
information by persons or entities other than the <br>
intended recipient is prohibited. If you received this <br>
in error, please delete the material from any <br>
computer. <o:p></o:p></p>
</div>
</body>
</html>

--_000_D81DB5ADDC5C3B4484C581AF3D8EFF9D21DF63D0ex2aawrlocal_--


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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
--===============6213198459076187330==
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

--===============6213198459076187330==--