Hi NAnt fellows!
I try to resolve the problem that I have a NAnt build file, which needs
to specify an external include path for DLL's to be loaded under build.
Those DLL path locations are platform dependent, so I wish not to do the
following:
<target name="test" description="Some build">
<csc target="exe"
output="some.exe">
<sources>
<include name="some.cs"/>
</sources>
<references>
<lib>
<!-- GNU/Debian Linux on various platforms -->
<include name="/usr/lib/NAnt/lib/mono/1.0"/>
<include name="/usr/lib/cli/nunit-2.2.6"/>
<include name="/usr/lib/nunit"/>
-->
<!-- MS Server 2003 -->
<include name="/Program Files/NUnit-Net-2.0 2.2.5/bin"/>
<include name="/Program Files/nant-0.85-rc3/bin/lib/net/2.0"/>
<include name="/Program Files/YAZ/bin"/>
</lib>
<include name="nunit.framework.dll"/>
</references>
</csc>
</target>
Ideally, I wish to set the DLL pathes of the DLL's not found in the GAC
in the environmental variables, something like
export
MONO_PATH=".:`pwd`:/usr/lib/NAnt/lib/mono/1.0:/usr/lib/nunit:/usr/lib/cli/nunit-2.2.6
on Unix systems and
set PATH=%PATH%;C:/Program Files/YAZ/bin
set PATH=%PATH%;C:/Program Files/nant-0.85-rc3/bin
on Windows systems.
While a manual compile and run with for example
mcs -r:nunit.framework.dll some.cs
just works, ans runs without runtime error, the environmental variables
MONO_PATH or PATH seems to be shielded from the compiler if one uses the
above NAnt tasks, so compile fails with unresolves DLL's.
How can I propagate the setiing of these external variables ti the
compiler run inside the NANt framework?
Is there a better way to set platform dependent DLL load pathes in NAnt ??
Thanks for any clue!
Cheers, Marc
--
Marc Cromme, cand. polyt, Ph.D
Senior Developer, Project Manager
Index Data Aps
KĂžbmagergade 43, 2
1150 Copenhagen K.
Denmark
tel: +45 3341 0100
fax: +45 3341 0101
http://www.indexdata.com
INDEX DATA Means Business
for Open Source and Open Standards
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users