To clarify, by "regular cruisecontrol" do you mean you're not using
CruiseControl.Net?
---
Chris
Continuous improvement is better than delayed perfection. - Mark Twain
On Tue, Nov 16, 2010 at 8:00 AM, Adam Bruss <abr...@awrcorp.com> wrote:
> Thanks but I’m trying to use nant from regular cruisecontrol. There is no
> executable or baseDirectory elements in the cruisecontrol nant plugin
> according to the doc.
>
>
>
> *<nant>***
>
> <cruisecontrol><http://localhost:8080/documentation/main/configxml.html#cruisecontrol>
>
> <project><http://localhost:8080/documentation/main/configxml.html#project>
>
>
> <schedule><http://localhost:8080/documentation/main/configxml.html#schedule>
>
> <nant>
>
> Specifies a NAnt <http://nant.sourceforge.net/> build to be run at a given
> time or build number. For instance, we can run a clean build every 5 builds,
> or run more comprehensive (and time intensive) system tests every 10 builds.
> We can also schedule an official build to run every night at midnight, if we
> so desire.
>
> When a build runs, NAnt is invoked in a separate Java process. NAnt and the
> .NET Framework or Mono need to be installed for this builder to function.
> See NAnt's documentation for details on configuration and compatibility with
> .NET implementations.
>
> The standard CruiseControl properties passed to
> builders<http://localhost:8080/documentation/main/configxml.html#buildproperties>are
> available from within the NAnt build.
>
> See below for
> examples<http://localhost:8080/documentation/main/configxml.html#nant-examples>of
> the
> <nant> element.
>
> *Attributes*
>
> See also the common
> attributes<http://localhost:8080/documentation/main/configxml.html#builderattributes>for
> builders.
>
> *Attribute***
>
> *Required***
>
> *Description***
>
> buildfile
>
> No (defaults to default.build)
>
> Path to NAnt build file.
>
> target
>
> No
>
> NAnt target(s) to run. Default is "", or the default target for the build
> file.
>
> tempfile
>
> No
>
> Name of temp file. Defaults to log.xml
>
> targetFramework
>
> No, but recommended
>
> Specifies the framework to target. Typical values are "net-1.1" and
> "mono-1.0".
>
> nantWorkingDir
>
> No
>
> Will invoke NAnt in the specified directory.
>
> timeout
>
> No
>
> NAnt build will be halted if it continues longer than the specified
> timeout. Value in seconds.
>
> uselogger
>
> No
>
> 'true' if CruiseControl should call NAnt using -logger; 'false' to call
> NAnt without '-logger', thus using the loggerclass as a Listener.
> uselogger="true" will make NAnt log its messages using the class specified
> by loggerclassname as a NAnt Logger, which can make for smaller log files
> since it doesn't log DEBUG messages (see useDebug and useQuiet attributes
> below, and the NAnt
> documentation<http://nant.sourceforge.net/release/0.85-rc1/help/fundamentals/listeners.html>).
> Listener will echo NAnt messages to console which is useful when debugging
> your NAnt build. Defaults to 'false' for historical reasons, but setting it
> to 'true' is recommended for production situations.
>
> loggerclassname
>
> No (defaults to NAnt.Core.XmlLogger)
>
> If you want to use another logger than NAnt's XmlLogger, you can specify
> the classname of the logger here. The logger needs to output compatible XML,
> and the class needs to be available on the classpath at buildtime.
>
> usedebug
>
> No
>
> If true will invoke NAnt with -debug, which can be useful for debugging
> your NAnt build. Defaults to 'false', cannot be set to 'true' if usequiet is
> also set to 'true'. Is only effective when used in combination with
> uselogger="true"!
>
> usequiet
>
> No
>
> If true will invoke NAnt with -quiet, which can be useful for creating
> smaller log files since messages with a priority of INFO will not be logged.
> Defaults to 'false', cannot be set to 'true' if usedebug is also set to
> 'true'. Is only effective when used in combination with uselogger="true"!
>
>
>
>
>
> I’m trying to use nant from the java based cruisecontrol – the original one
>
>
>
> According to the cruisecontrol doc it's possible with something like this
>
>
>
> <schedule>
>
> <nant nantworkingdir="D:\workspace\MyProject"
>
> buildfile="MyProject-nightly.build"
>
> uselogger="true"
>
> usedebug="false"/>
>
> <schedule>
>
>
>
> Anyone have examples of this?
>
>
>
> 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
>
>
>
> -----Original Message-----
>
> From: Marcus Weidner [mailto:mweid...@gmail.com]
> Sent: Tuesday, November 16, 2010 9: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</executable>
>
>
> <workingDirectory>d:\CruiseControlBuilds\Dev\MyProject\WorkingDirectory</workingDirectory>
>
>
> <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</logger>
>
> <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