Trying to create a grails ant task that has other environments besides prod for the war task.
i've tried
<target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application">
<grails script="War" args="grails.env=${env} ${war.filename}"/>
</target>
and
<target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application">
<grails script="War" args="-Dgrails.env=${env} ${war.filename}"/>
</target>
Neither of these two work and always just run the production env. Note that I've also hard coded ${env} so it's not that it's missing