Re: Managing NAnt Build Throu CC

[email protected] Fri, 1 Mar 2013 07:38:41 -0500
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <OFB0ABCB99.3501D93A-ON85257B21.00456A32-85257B21.004576D1@AcushnetGolf.com>
This is a multipart message in MIME format.
--===============2333237616197560404==
Content-Type: multipart/alternative;
	boundary="=_alternative 004576D085257B21_="

This is a multipart message in MIME format.
--=_alternative 004576D085257B21_=
Content-Type: text/plain; charset="US-ASCII"

Thanks, Adam.
That was the issue - plus i forgot to restart my console after re-setting 
the PATH var.
All the best,

LK



From:   Adam Bruss <[email protected]>
To:     "[email protected]" 
<[email protected]>
Date:   02/28/2013 04:00 PM
Subject:        Re: [Cruisecontrol-user] Managing NAnt Build Throu CC



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]
W: 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 
terms 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 and CC.Net. 
I have read that CC supports NAnt and have seen the <nant> tag, but I can 
not get a successful NAnt build to run via CC. 
My project node for the NAnt build is very simple: 

    <project name="sample.project"> 
        <listeners> 
            <currentbuildstatuslistener 
file="logs/${project.name}/status.txt"/> 
        </listeners> 
        <schedule interval="300"> 
            <nant buildfile="C:\projects\workspace\sample.project" 
nantworkingdir="C:\nant-0.92\bin" target="build"/> 
        </schedule> 
        <log> 
            <merge dir="projects/${project.name}/target/test-results"/> 
        </log> 
        <publishers> 
            <onsuccess> 
                <artifactspublisher dest="artifacts/${project.name}" 
file="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 
sample.project net.sourceforge.cruisecontrol.CruiseControlException: 
Encountered an IO exception while attempting to execute 
'net.sourceforge.cruisecontrol.builders.NantScript@11fc4b8'. CruiseControl 
cannot continue.         
        at 
net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:225) 
        
        at 
net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:177) 

        at 
net.sourceforge.cruisecontrol.builders.NantBuilder.build(NantBuilder.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(ProjectConfig.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=2, The system cannot 
find the file specified 

Any help anyone can offer, or any resources anyone can direct me to, is 
much 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. 
------------------------------------------------------------------------------
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
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

  
  
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. 

--=_alternative 004576D085257B21_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Thanks, Adam.</font>
<br><font size=2 face="sans-serif">That was the issue - plus i forgot to
restart my console after re-setting the PATH var.</font>
<br><font size=2 face="sans-serif">All the best,</font>
<br>
<br><font size=2 face="sans-serif">LK</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Adam Bruss &lt;[email protected]&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;[email protected]&quot;
&lt;[email protected]&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02/28/2013 04:00 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Cruisecontrol-user]
Managing NAnt Build Throu CC</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 color=#004080 face="Calibri">Try putting Nant.exe in the
system path, restarting CC and trying again.</font>
<br><font size=2 color=#004080 face="Calibri">&nbsp;</font>
<br><font size=2 color=#004080 face="Arial">Adam Bruss</font>
<br><font size=2 color=#004080 face="Arial">Senior Development Engineer</font>
<br><font size=2 color=#004080 face="Arial">AWR Corporation</font>
<br><font size=2 color=#004080 face="Arial">11520 N. Port Washington Rd.,
Suite 201</font>
<br><font size=2 color=#004080 face="Arial">Mequon, WI &nbsp;53092 &nbsp;USA</font>
<br><font size=2 color=#004080 face="Arial">P: 1.262.240.0291 x104</font>
<br><font size=2 color=#004080 face="Arial">F: 1.262.240.0294</font>
<br><font size=2 color=#004080 face="Arial">E: </font><a href="http://meqtestprfrm-dt:8080/cruisecontrol/buildresults/[email protected]"><font size=2 color=blue face="Arial"><u>[email protected]</u></font></a>
<br><font size=2 color=#004080 face="Arial">W: </font><a href=http://www.awrcorp.com/><font size=2 color=blue face="Arial"><u>http://www.awrcorp.com</u></font></a>
<br><font size=2 color=#004080 face="Calibri">&nbsp;</font>
<br><font size=2 face="Tahoma"><b>From:</b> [email protected]
[</font><a href=mailto:[email protected]><font size=2 face="Tahoma">mailto:[email protected]</font></a><font size=2 face="Tahoma">]
<b><br>
Sent:</b> Thursday, February 28, 2013 12:29 PM<b><br>
To:</b> [email protected]<b><br>
Subject:</b> [Cruisecontrol-user] Managing NAnt Build Throu CC</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Hi, All-</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
I was hoping somone might be able to steer me in the right direction in
terms of advice or resources.</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
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 and CC.Net.</font><font size=3 face="Times New Roman"> </font><font size=2 face="Arial"><br>
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.</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
My project node for the NAnt build is very simple:</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp;&lt;project name=&quot;sample.project&quot;&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;listeners&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;currentbuildstatuslistener
file=&quot;logs/${project.name}/status.txt&quot;/&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/listeners&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;schedule interval=&quot;300&quot;&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;nant buildfile=&quot;C:\projects\workspace\sample.project&quot;
&nbsp;nantworkingdir=&quot;C:\nant-0.92\bin&quot; target=&quot;build&quot;/&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/schedule&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;log&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;merge dir=&quot;projects/${project.name}/target/test-results&quot;/&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/log&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;publishers&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;onsuccess&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;artifactspublisher
dest=&quot;artifacts/${project.name}&quot; file=&quot;projects/${project.name}/target/${project.name}.dll&quot;/&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/onsuccess&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/publishers&gt;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp;&lt;/project&gt;</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
When I try a build I get a couple of errors in the stack:</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
[cc]Feb-28 13:25:52 Project &nbsp; &nbsp; &nbsp; - exception attempting
build in project sample.project net.sourceforge.cruisecontrol.CruiseControlException:
Encountered an IO exception while attempting to execute 'net.sourceforge.cruisecontrol.builders.NantScript@11fc4b8'.
CruiseControl cannot continue. &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:225)
&nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:177)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.builders.NantBuilder.build(NantBuilder.java:112)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.Project.build(Project.java:227)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.Project.execute(Project.java:148)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:408)</font><font size=3 face="Times New Roman">
</font><font size=2 face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
And</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="Arial"><br>
Caused by: java.io.IOException: Cannot run program &quot;NAnt.exe&quot;
(in directory &quot;C:\nant-0.92\bin&quot;): CreateProcess error=2, The
system cannot find the file specified</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Arial"><br>
Any help anyone can offer, or any resources anyone can direct me to, is
much appreciated.</font><font size=3 face="Times New Roman"> </font><font size=2 face="Arial"><br>
Thanks,</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="Arial"><br>
LK</font>
<p><font size=3 face="Times New Roman">&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. </font><tt><font size=2>------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
</font></tt><a href=http://p.sf.net/sfu/appdyn_d2d_feb><tt><font size=2>http://p.sf.net/sfu/appdyn_d2d_feb</font></tt></a><tt><font size=2>_______________________________________________<br>
Cruisecontrol-user mailing list<br>
[email protected]<br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user"><tt><font size=2>https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user</font></tt></a><tt><font size=2><br>
</font></tt>
<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. </p>
--=_alternative 004576D085257B21_=--



--===============2333237616197560404==
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
--===============2333237616197560404==
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

--===============2333237616197560404==--