I am guessing you are using Grails?
Unfortunately, I don't think you can turn that off. It would not be doing this if the server was not running, but I don't think cloudfoundry has an 'off' switch.
I understand this can be annoying if the war build runs to often and there should be some way to turn this off. Probably the war build should not run if publishing is turned off. I should look into how this can be achieved by the grails run on server functionality.
(May be a bit trickier than it seems, since the code that builds the war file is not actually part of the server side code and it is really unaware of what server its being built for, and so it is trciky to know if it is being built for a Server that won't publish the result. If we are building the war... it means the server code was asking us for the module contents...
Anyhow this is something for us to figure out :-)
I'll raise a Jira issue for this improvement and post a link here later.
Kris De Volder -- SpringSource