-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Windows, .NET, C#
Hi!
We use ivy (stand-alone) with NAnt to build our solutions.
And now we want to use the benitifts of the Modules part of the Ivy project (which is very neat!).
When looking at the command output. I can see that the Ivy project tries to invoke ant.bat by default.
cmd.exe /C '"ant.bat -file component.build && exit %%ERRORLEVEL%%"'
Therefore i thought that then i might create a ant.bat which contains "nant build", just a passthru / redirect to what we realy want to use.
And that ofcourse works fine.
Thought the issue becomes when we are trying to get the enviroment properties that the freestyle projects sets as invoking time.
The vars that we use is SVN_REVISION AND BUILD_NUMBER.
When using NAnt we can se the following in the console output.
Executing command: hudson.util.ArgumentListBuilder@78dd3dc4
[local] $ cmd.exe /C '"NAnt.exe -buildfile:BuildTool\Component.build milestone release && exit %%ERRORLEVEL%%"'
Either the values are not passed to the ant.bat file or I can't just referrer them as i'v been doing before.
Is there a reason for the values not to follow? How should i solve this instead? Do you have an idea of how this could be solved? I'm open minded!
Thanks alot for the great work!
Looking forward to using the Ivy Project template and just not the plugin.
Tomas
not too much to report at the moment, having to catch up on work a bunch so haven't had much time to put into this.
I'm almost done abstracting the builder logic with an Ant builder proxy (this is the most complicated part), then I need to write a little NAnt builder proxy (that part should be quick), then I'll need to write the upgrade logic so that when people install the new version it will transparently convert their old config into the new Ant builder config (shouldn't be too much work, but will involve a decent amount of testing time).
The reason it needs to be so complicated is that the plugin still needs to work even if the NAnt plugin isn't installed, yet I need to refer to NAant plugin classes. For that reason I'm having to abstract it all out into isolated classes so that I don't get a ClassNotFoundException when running it without the NAnt plugin.
Hope that all makes sense
Once I get it a bit closer I can give you a pre-release version to try out while I finish up my full release testing.