Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:48:01+00:00 2026-05-26T04:48:01+00:00

I am using Play’s war command to package up my application into a WAR

  • 0

I am using Play’s war command to package up my application into a WAR file for deployment, like so:

play war mydir -o myapp --zip

(Discovering --zip has sure saved me a lot of time!) This command creates a WAR file myapp.war just like it’s supposed to, and also an exploded version of the WAR in a directory myapp/.

I’ve changed the names of my directories to avoid confusion, but often I want the WAR file to have the same name as my app directory (mydir, in this example). play war mydir -o mydir --zip fails, of course, rather than overwrite my app directory, which is good.

In a case like this I’d like Play! to skip the directory bit and just get my app straight into a WAR file. Actually, name conflict or not, I’d like to do that anyway; my server is not the same as my dev box, so I just move the WAR file and don’t do anything with the exploded version.

So, is there some way to get Play to skip making the exploded version? I’ve consulted play help war to no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:48:02+00:00Added an answer on May 26, 2026 at 4:48 am

    OK, I feel kinda lazy for having asked this. Clearly I can just do it myself:

    play war mydir -o myapp --zip
    rm -rf myapp
    mv myapp.war mydir.war
    

    or for Windows

    play war mydir -o myapp --zip
    rmdir /S myapp
    move myapp.war mydir.war
    

    and drop those commands in a .sh/.bat file. Hope that helps someone in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam using AVFoundation Framework to play mp3 file ,everything works great ، i have
I'm using this code from Microsoft to play audio notifications for my application. It's
Using play framework 1.2.4 with scala. I have few play jobs that looks like
I'm using the Play Secure module and I would like to set the flash
I would like to base64 encode a generated SHA-1 hash in Scala using Play
I'm currently creating an application using Play!, and i wanted to update my view
Writing a Java application using the Play framework and need some HTTP-Live streaming. I
Using Play Framework, you can do something like this: public static void mymethod() {
I am using play 1.2.3, in the application.conf, it has the following settings. What
I'm using Play framework. I have a JSONObject which has a structure like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.