Is there a way to call grails war from outside the project directory?
My project path is “d:/deploy/project”.
I want some how pass my project directory to the compiler. Something like this:
grails d:/deploy/project war.
I built ant ant script that is called from a batch file, so the batch starts in d:. So when the ant task is executed
I receive an error. Is there any way to do that?
I had to do a work around. I modified my ant script. The first thing the script should do is create a temporary dir and copy everything that is needed to that folder. Grails project, flex project and the build.xml ant file itself. After this initial process, I call the ant file in the temporary dir. As everything I need is in the same folder (including the ant script), I can call grails war command successfully. I’m not happy or proud working this way, but it seems the only one.