[nant-dev] [ nant-Bugs-1232495 ] FileUtils::CombinePaths mishandles .\..
Bugs item #1232495, was opened at 2005-07-05 04:12 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ted Mielczarek (tam4) Assigned to: Nobody/Anonymous (nobody) Summary: FileUtils::CombinePaths mishandles .\.. Initial Comment: Given a path2 containing ".\..", FileUtils::CombinePaths does not produce the correct path. For example: CombinePaths(@"c:\test\foo", @".\..\bar") ought to produce "c:\test\bar", but instead it produces "c:\test\foo\bar". The problem is that ".." just removes the previous path element, which in this case is the ".". The simple solution is to just ignore "." as a path element. I am attaching a patch that makes this simple change, but I can't test it because my nant builds all throw an exception trying to load the log4net dll for some reason. -- >Comment By: Gert Driesen (drieseng) Date: 2005-07-05 06:36 Message: Logged In: YES user_id=707851 I'll look into it later. About the log4net issue: are you by any chance using Mono ? -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] How to pass dynamic properties from the command line ?
On 7/5/05, SIMONS,John <[EMAIL PROTECTED]> wrote: > [snip] > > Is it possible to do this from the command line ? > > Thanks > John John, Sorry, that's not possible from the command line. If you are using an 0.85 build, you could use functions to evaluate the property whose name is contained in ${test}... Note in the second line that the property 'test' is being evaluated and passed as an argument to the property::get-value function. See http://nant.sourceforge.net/release/latest/help/functions/property.get-value.html and http://nant.sourceforge.net/release/latest/help/fundamentals/expressions.html#expression-syntax for more details. -- Troy --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] How to pass dynamic properties from the command line ?
Title: How to pass dynamic properties from the command line ? I'm not sure if I'm doing something wrong or it's just not possible !!! What I want to do is the following. I have a script that looks like this: http://tempuri.org/nant-vs.xsd"> ${test} ${test3} I'm executing this script by calling nant this way: nant -D:test2=3 -D:test=${test2} What I get as a result is: do-all: [echo] ${test2} [echo] help What I would like to get is: do-all: [echo] 3 [echo] help Is it possible to do this from the command line ? Thanks John
[nant-dev] [ nant-Bugs-1232495 ] FileUtils::CombinePaths mishandles .\..
Bugs item #1232495, was opened at 2005-07-04 22:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ted Mielczarek (tam4) Assigned to: Nobody/Anonymous (nobody) Summary: FileUtils::CombinePaths mishandles .\.. Initial Comment: Given a path2 containing ".\..", FileUtils::CombinePaths does not produce the correct path. For example: CombinePaths(@"c:\test\foo", @".\..\bar") ought to produce "c:\test\bar", but instead it produces "c:\test\foo\bar". The problem is that ".." just removes the previous path element, which in this case is the ".". The simple solution is to just ignore "." as a path element. I am attaching a patch that makes this simple change, but I can't test it because my nant builds all throw an exception trying to load the log4net dll for some reason. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1232495&group_id=31650 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers