Search code examples
androidantwargoogle-cloud-messagingjava-war

Creating war file in Windows 7


I am trying to set up a GCM Demo Application. http://developer.android.com/guide/google/gcm/demo.html

I am stuck trying to create a war file: In a shell window, go to the gcm-demo-server directory.

Generate the server's WAR file by running ant war:

I am using Windows 7 how exactly can I create this war file?


Solution

  • Create a batch program called build.bat, containing the following content:

    call ant war
    pause
    

    This will launch a shell window within which you'll see the ANT output.

    Notes:

    • This assumes that ANT has been installed correctly, with the "ant" executable available on the user's PATH