I'm looking for a way to run play dist
through an Ant build script. I've looked into using the exec
task but it is not working for me. Here is what I tried:
<target name="deploy">
<exec executable="play">
<arg value="dist" />
</exec>
</target>
I'm getting this error:
C:\Users\path\to\build.xml:39: Execute failed: java.io.IOException: Cannot run program "play": CreateProcess error=2, The system cannot find the file specified
Play is already in my Path environment variable and I can execute it from the command line by typing play
so that isn't the problem. I'm not allowed to use absolute paths due to sysadmin constraints.
Any ideas?