Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Is there a name for a Java Webapp's war that includes the source code? We will be using a webserver that accepts Java Web Projects with source code) uploaded into the docroot folder, so docroot/admin.webapp.zip would be the place to upload a webapp that handles http://example.com/admin. This way the compiled binaries and source code are together (and down the road, even the compiled code might not be there at all, but compiled on the first runtime).

What are the most common file types for a webapp with source? If it means lining up with a standard, I would be glad to use a similar extension name and zip directory structure. If not, I will probably use something like .web.zip. I would just use .zip, but then the webserver would not know if it should serve out the zip or only use it as a webapp.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Perhaps the Maven standard can help.

For JAR files containing source the naming convention is example-1.0.0-sources.jar. Equally a WAR file could follow as example-1.0.0-sources.war.

I imagine the source itself would be in WEB-INF/src.

You then deploy as normal since the artifact is already zipped.

share|improve this answer
    
Sounds like a starting place. Thanks. –  George Bailey Apr 16 '11 at 23:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.