Managing NAnt Build Throu CC

[email protected] Thu, 28 Feb 2013 13:28:43 -0500
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <OF2598CE11.719B719C-ON85257B20.0062FEF1-85257B20.006582FC@AcushnetGolf.com>
This is a multipart message in MIME format.
--===============1195971298180343566==
Content-Type: multipart/alternative;
	boundary="=_alternative 006582FC85257B20_="

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

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. 

--=_alternative 006582FC85257B20_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi, All-</font>
<br>
<br><font size=2 face="sans-serif">I was hoping somone might be able to
steer me in the right direction in terms of advice or resources.</font>
<br><font size=2 face="sans-serif">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>
<br><font size=2 face="sans-serif">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>
<br><font size=2 face="sans-serif">My project node for the NAnt build is
very simple:</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;project name=&quot;sample.project&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;listeners&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;currentbuildstatuslistener file=&quot;logs/${project.name}/status.txt&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/listeners&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;schedule
interval=&quot;300&quot;&gt;</font>
<br><font size=2 face="sans-serif">&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>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/schedule&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;log&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;merge dir=&quot;projects/${project.name}/target/test-results&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/log&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;publishers&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;onsuccess&gt;</font>
<br><font size=2 face="sans-serif">&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>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;/onsuccess&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/publishers&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;/project&gt;</font>
<br>
<br><font size=2 face="sans-serif">When I try a build I get a couple of
errors in the stack:</font>
<br>
<br><font size=2 face="sans-serif">[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>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:225)
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:177)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.builders.NantBuilder.build(NantBuilder.java:112)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Project.build(Project.java:227)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.Project.execute(Project.java:148)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:408)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)</font>
<br>
<br><font size=2 face="sans-serif">And</font>
<br>
<br><font size=2 face="sans-serif">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>
<br>
<br><font size=2 face="sans-serif">Any help anyone can offer, or any resources
anyone can direct me to, is much appreciated.</font>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<br><font size=2 face="sans-serif">LK</font><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 006582FC85257B20_=--



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

--===============1195971298180343566==--