You may want to do some more error handling (if a user types something not expected). For example, I had typed in:
PATH=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;%PATH%
and also tried:
PATH="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE";%PATH%
Both times, the error message I got when I ran the build was:
java.lang.ArrayIndexOutOfBoundsException: 1
at com.atlassian.bamboo.plugin.builder.nant.AbstractDotNetBuilder.getEnvironmentSetting(AbstractDotNetBuilder.java:360)
at com.atlassian.bamboo.command.Command.executeCommand(Command.java:61)
at com.atlassian.bamboo.builder.AbstractBuilder.runBuild(AbstractBuilder.java:267)
at com.atlassian.bamboo.builder.AbstractBuilder.executeBuild(AbstractBuilder.java:232)
at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:67)
........
Added new feature for variable substitution. All variables of type ${system.XYZ} will be substituted using value of system property XYZ or environment variable XYZ.