[Mono-devel-list] Nant / OJB.NET / Maverick.NET / NVelocity

Ben Maurer bmaurer at users.sourceforge.net
Sun Oct 5 11:06:22 EDT 2003


On Sun, 2003-10-05 at 01:31, Ian MacLean wrote:
> Ben Maurer wrote:
> >>I don't think CodeDOM would help - even if you could you would only find 
> >>the runtime that you are running NAnt against which might not be the 
> >>same as the framework you are targetting.
> >>ie NAnt could be running against a 1.0 runtime but compiling an app 
> >>using the 1.1 version of csc. What part of it is a pain in the ass to 
> >>deal with ? You set the defaultframework to the one you're using and 
> >>you're done. If you have any suggestiong for making it simpler we'd like 
> >>to hear them.
> >>    
> >>
> >Ok, so in order to make a script that compiles vs both 1.0 and 1.1 I
> >have it alter the config file... thats just the same as altering the
> >runtime version... Honestly, it will be a bigger problem for people on
> >linux to fool around with their config path than it will be for a
> >windows user who wants to compile with both versions (why would i want
> >that anyways?).
> >
> >  
> >
> No that is not correct. You can use the following inside a build file:
> 
> <property name="nant.settings.currentframework" value="net-1.0" />
> <!-- do some compilation against 1.0 -->
> <csc>
> </csc>
> 
> <property name="nant.settings.currentframework" value="net-1.1" />
> <!-- do some compilation against 1.1 -->
> <csc>
> </csc>
> ...
> 
> you can also use the -k:net-1.0 commandline option to specify a default  
> framework for that build run. You only need to set it in the config file 
> once to somthing reasonable for your installation. This is analagous to 
> Ant using the JAVA_HOME environment variable to find a jdk.
> 
> If you don't ever need to target multiple frameworks then its a 
> non-issue - just make sure the default is correct at install time and 
> you'll never have to worry about it again. However if you do need the 
> ability - its there.

Ok, my bad.

So here is my new suggestion:
By default, we use the CodeDOM, ie, if no settings are configured the
platform/version independant setting is used. User's can choose the
currentframework setting, and if so will use the current infrastructure.
That way, by default, neither windows nor linux users are forced to
config, but the flexability is provided.

> So basically "don't use regex's" right ?
Thats my point ;-).

-- Ben




More information about the Mono-devel-list mailing list