Making it easier to access the commands for the 2nd round

This commit is contained in:
Éibhear Ó hAnluain 2017-08-14 10:03:19 +01:00
parent 80a15330b1
commit c73730559b

View file

@ -217,6 +217,9 @@
1. Compile the java files (including the new java file) as per
/Lesson 1/.
: cd ${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse
: javac *.java
Does it compile? If not, why not? Three hints:
- There was a new sub-package added,
=org.gibiris.javaBootcampNoEclipse.Astro=, which your java
@ -227,9 +230,22 @@
you might even find a fix for it.
2. Build the jar file as per /Lesson 2/ (except, this time, the
=lib= directory exists already).
=lib= directory exists already):
: cd ${DEV_HOME}/source/java
: jar cvf ../lib/javaBootcampNoEclipse.jar org
3. Build the war file as per /Lesson 3/.
: mkdir -vp ${DEV_HOME}/webapp
: mkdir -vp ${DEV_HOME}/webapp/WEB-INF/lib
: cd ${DEV_HOME}/webapp
: cp -rv ${DEV_HOME}/source/jsps/* ${DEV_HOME}/webapp
: cp -rv ${DEV_HOME}/source/lib/javaBootcampNoEclipse.jar \
: ${DEV_HOME}/webapp/WEB-INF/lib
: cp -rv ${DEV_HOME}/source/res/web.xml \
: ${DEV_HOME}/webapp/WEB-INF
: jar cvf ${DEV_HOME}/source/lib/javaBootcampNoEclipse.war *
: cd ${DEV_HOME}; rm -fr ${DEV_HOME}/webapp
4. Deploy the updated application as per /Lesson 4/. You will need
to undeploy the previous version first.