|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Detecting path at runtimeHello *,
still trying to use NAnt for my mono project :) I'd need to detect the PATH of `mono' at build-time: with 0.86-beta1 I'd do: framework::get-tool-path('mono') But I couldn't find any similar function in <= 0.85. Is there any workaround I could adopt? Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: Detecting path at runtimeYou could just take the code from the beta and put it into a script task
in your .85 build script. -----Original Message----- From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of David Paleino Sent: Friday, June 27, 2008 11:14 AM To: nant-users@... Subject: [NAnt-users] Detecting path at runtime Hello *, still trying to use NAnt for my mono project :) I'd need to detect the PATH of `mono' at build-time: with 0.86-beta1 I'd do: framework::get-tool-path('mono') But I couldn't find any similar function in <= 0.85. Is there any workaround I could adopt? Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: Detecting path at runtimeDavid,
Can I ask why you need the path to the mono shellscript? Gert -----Original Message----- From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of David Paleino Sent: vrijdag 27 juni 2008 17:14 To: nant-users@... Subject: [NAnt-users] Detecting path at runtime Hello *, still trying to use NAnt for my mono project :) I'd need to detect the PATH of `mono' at build-time: with 0.86-beta1 I'd do: framework::get-tool-path('mono') But I couldn't find any similar function in <= 0.85. Is there any workaround I could adopt? Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
|
|
|
Re: Detecting path at runtimeBob,
Nope, that's not an option. Tool-path support was introduced in .86. It's possible to get that path using .85, but I actually doubt whether David really needs the path. Perhaps we offer an alternative that works "cross-framework". Gert -----Original Message----- From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of Bob Archer Sent: vrijdag 27 juni 2008 17:29 To: David Paleino; nant-users@... Subject: Re: [NAnt-users] Detecting path at runtime You could just take the code from the beta and put it into a script task in your .85 build script. -----Original Message----- From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of David Paleino Sent: Friday, June 27, 2008 11:14 AM To: nant-users@... Subject: [NAnt-users] Detecting path at runtime Hello *, still trying to use NAnt for my mono project :) I'd need to detect the PATH of `mono' at build-time: with 0.86-beta1 I'd do: framework::get-tool-path('mono') But I couldn't find any similar function in <= 0.85. Is there any workaround I could adopt? Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: Detecting path at runtimeOn Fri, 27 Jun 2008 11:29:23 -0400, Bob Archer wrote:
> You could just take the code from the beta and put it into a script task > in your .85 build script. Sure, thanks, but I'd regard this as a "last resort"... Thanks for the hint, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: Detecting path at runtimeOn Fri, 27 Jun 2008 18:03:24 +0200, David Paleino wrote:
> On Fri, 27 Jun 2008 17:48:24 +0200, Gert Driesen wrote: > > > Can I ask why you need the path to the mono shellscript? > > And, in my buildfile: > > [..] > <token key="MONO" value="/usr/bin/mono" /> Obviously, this is not standard. One might want [1] to use a version in /usr/local/bin/, for example, and that line is failing for this user. [1] e.g. by putting /usr/local/bin before /usr/bin in $PATH. Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: Detecting path at runtimeDavid,
You have three options: * use pkg-config. <token key="MONO" value="${pkg-config::get-variable('mono','prefix')}/bin/mono" /> * use framework::get-runtime-engine. For example: <token key="MONO" value="${framework::get-runtime-engine(framework::get-target-framework())}" /> * modify your shellscript to find the path to mono (using pkg-config). For example: #!/bin/sh exec `pkg-config --variable=prefix mono`/bin/mono @libdir@/gnome-rdp/gnome-rdp.exe $MONO_EXTRA_ARGS "$@" My preference goes to the last option, as your script would continue to work if someone decides to move mono after you app is installed. Hope this helps, Gert -----Original Message----- From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of David Paleino Sent: vrijdag 27 juni 2008 21:57 To: nant-users@... Subject: Re: [NAnt-users] Detecting path at runtime On Fri, 27 Jun 2008 18:03:24 +0200, David Paleino wrote: > On Fri, 27 Jun 2008 17:48:24 +0200, Gert Driesen wrote: > > > Can I ask why you need the path to the mono shellscript? > > And, in my buildfile: > > [..] > <token key="MONO" value="/usr/bin/mono" /> Obviously, this is not standard. One might want [1] to use a version in /usr/local/bin/, for example, and that line is failing for this user. [1] e.g. by putting /usr/local/bin before /usr/bin in $PATH. Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ NAnt-users mailing list NAnt-users@... https://lists.sourceforge.net/lists/listinfo/nant-users |
| Free Forum Powered by Nabble | Forum Help |