Tim,
You may want to look at the <nant> task. :-) If
appropriate, it may make your script a bit shorter
Those messages are because the new instance of NAnt is
scanning for the various frameworks. I suspect that if
you edit the nant.exe.config file and change the default framework for your
build environment from "auto" to a specific framework version then you may not
see those messages.
Regards,
Richard
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Mayert
Sent: Friday, September 29, 2006 10:58
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Calling other Nant build projects from within acurrently running Nant build question?
I would like to be
able to launch another Nant build from another currently running Nant build and
would like to know the best way to do this.
At the moment I just
use the following command line to launch the other Nant
builds:
<exec program="${nant.home.dir}\bin\Nant.exe"
basedir="${sharedbld.dir}" workingdir="${sharedbld.dir}"
output="${output.file.name}" failonerror="false" verbose="true"
>
<arg value="full.build" />
<arg value="-D:buildnumupdated=false"
/>
<arg
value="-D:version.file="${g_build.config}_Version.xml""/>
<arg
value="-D:g_properties.file="${g_build.config}_ProjectProperties.xml""
/>
<arg value="-l:${g_build.config}.txt"
/>
<arg value="-verbose+" />
</exec>
Now
they do get triggered and seem to run
okay, at least for the testing I am doing, but in doing this I notice the
log file gets the following
messages:
[exec] Framework 'net-1.0' is invalid and has not
been loaded : The 'System.dll' assembly does not exist in framework assembly
directory 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705'..
[exec]
[exec] Framework 'net-2.0' is invalid and has not
been loaded : Framework directory
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607' does not exist..
[exec]
[exec] Framework 'net-2.0' is invalid and has not
been loaded : Framework directory
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215' does not exist..
[exec]
[exec] Framework 'net-2.0' is invalid and has not
been loaded : Framework directory
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' does not exist..
[exec]
[exec] Framework 'mono-1.0' is invalid and has not
been loaded : Registry Path Not Found! -
key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.
[exec]
[exec] Framework 'mono-2.0' is invalid and has not
been loaded : Registry Path Not Found! -
key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.
[exec]
[exec] Framework 'mono-2.0' is invalid and has not
been loaded : Registry Path Not Found! -
key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.
[exec]
[exec] Framework 'mono-2.0' is invalid and has not
been loaded : Registry Path Not Found! -
key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.
[exec]
[exec] Framework 'mono-2.0' is invalid and has not
been loaded : Registry Path Not Found! -
key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.
[exec]
[exec] Framework 'sscli-1.0' is invalid and has not
been loaded : Framework directory 'C:\sscli\build\v1.x86fstchk.rotor' does not
exist..
[exec]
Can I
simply ignore these or is there actually an issue calling Nant from within Nant
and that I have to call it a different way? Is there a way to not have
these show up in the build log?
Thanks,
SMART Technologies Inc.
Software Developer
Tel. 403.228.8552 Fax
403.229.2531
[EMAIL PROTECTED]
http://www.smarttech.com
Bringing people and
ideas together. ™
* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Peek Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users