Skip to content

Commit

Permalink
Document how to deploy the JSPs on your own server.
Browse files Browse the repository at this point in the history
  • Loading branch information
MER-C committed Aug 31, 2018
1 parent 5f8335f commit f37192c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ isolate your development environment.
## Documentation

* [Javadoc](https://wikipediatools.appspot.com/doc/index.html)
* [Deploying these tools on your own server](https://wikipediatools.appspot.com/doc/org/wikipedia/servlets/package-summary.html)
* [Extended documentation](https://github.com/MER-C/wiki-java/wiki/Extended-documentation),
including an example program
* See [the page on Wikipedia](https://en.wikipedia.org/wiki/User:MER-C/Wiki.java)
Expand Down
23 changes: 23 additions & 0 deletions src/org/wikipedia/servlets/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@
* the <a href="https://jcp.org/en/jsr/detail?id=369">Java servlet API.</a>
* There are no other dependencies other than the core JDK.
*
* <h3>Deploying these servlets on your own infrastructure</h3>
*
* <p>
* Assuming that:
*
* <ul>
* <li>classes are compiled to <code>wiki-java/build/classes</code>
* <li>generated JavaDoc is in <code>wiki-java/dist/javadoc</code>
* </ul>
*
* <p>
* then the following shell script enough to produce a WAR that can be deployed
* to any Jakarta EE compatible server. No further intervention is needed.
*
* <pre>
* rm -rf staging/*
* cp -r wiki-java/web/* staging
* cp -r wiki-java/src/org/wikipedia/servlets/*.jsp wiki-java/build/classes/org/wikipedia/servlets
* cp -r wiki-java/build/classes staging/WEB-INF
* cp -r wiki-java/dist/javadoc staging/doc
* jar cvf wikitools.war -C staging .
* </pre>
*
* @see <a href="https://wikipediatools.appspot.com">wikipediatools.appspot.com</a>
* @see org.wikipedia.tools
*/
Expand Down

0 comments on commit f37192c

Please sign in to comment.