If you browse to the nant executable on the build server, and right click..
choose "properties".
Does the first property page have an "Unblock" button?  If yes..click it.

Does the ccnet server account have permissions to access all the
folders/files/programs that are used during the build.


-----Original Message-----
From: Marcus Weidner [mailto:mweid...@gmail.com] 
Sent: Tuesday, November 16, 2010 10:11 AM
To: Adam Bruss
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] nant in regular cruisecontrol

Someone else probably has a better example, but this is my <tasks>
section from my config (which is working)

<tasks>
  <msbuild>
 
<executable>D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</execu
table>
 
<workingDirectory>d:\CruiseControlBuilds\Dev\MyProject\WorkingDirectory</wor
kingDirectory>
 
<projectFile>d:\CruiseControlBuilds\Dev\MyProject\WorkingDirectory\CMaxAdmin
.sln</projectFile>
    <buildArgs>/p:Configuration=Debug</buildArgs>
    <targets>Clean;Build</targets>
    <logger>D:\Program
Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logge
r>
    <timeout>900</timeout>
  </msbuild>
  <nant>
    <baseDirectory>D:\CruiseControlBuilds\Dev\MyProject</baseDirectory>
    <executable>d:\progra~1\nant-0.86-beta1\bin\nant.exe</executable>
    <buildFile>MyProject.build</buildFile>
    <targetList>
      <target>archive</target>
      <target>move_to_prestaging</target>
    </targetList>
  </nant>
</tasks>

On Tue, Nov 16, 2010 at 8:26 AM, Adam Bruss <abr...@awrcorp.com> wrote:
> I can’t get nant to work in normal cruisecontrol. It’s supposed to work
> according to the documentation. This is on a Windows 7 machine.
>
>
>
> <project
> name="listener-ccnet">
>
>                                 <modificationset>
>
>                                                 <filesystem
> folder="\\meqtestbuild-dt\C\Program Files
> (x86)\CruiseControl.NET\server\Test-build.state" />
>
>                                 </modificationset>
>
>
>
>                                 <schedule interval="15">
>
>                                                 <!--<exec
command="cmd.exe"
> />-->
>
>                                                 <nant
> targetframework="net-3.5" tempfile="adamnant.xml" uselogger="true"
> usedebug="true" nantWorkingDir="E:\ProjectsSVN\AUTOBUILD\nant"
> buildfile="orion-system.build" />
>
>                                 </schedule>
>
>     </project>
>
>
>
> A forced build goes into waiting mode forever when the nant command is
> encountered. Does anyone have an example of using the nant plugin from
> cruisecontrol?
>
>
>
> Thanks,
>
> Adam
>
>
>
> Adam Bruss
>
> Development Engineer
>
> AWR Corporation/Simulation Technology & Applied Research
>
> 11520 N. Port Washington Rd., Suite 201
>
> Mequon, WI  53092  USA
>
> P: 1.262.240.0291 x104
>
> F: 1.262.240.0294
>
> E: abr...@awrcorp.com
>
> W: http://www.awrcorp.com
>
>
>
>
----------------------------------------------------------------------------
--
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>



-- 
Marcus Weidner
www.KD8ITX.com

----------------------------------------------------------------------------
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to