From c73730559b975d62a979e34cd2c1f7970154c936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ibhear=20=C3=93=20hAnluain?= Date: Mon, 14 Aug 2017 10:03:19 +0100 Subject: [PATCH] Making it easier to access the commands for the 2nd round --- docs/javaBootcampNoEclipse.org | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/javaBootcampNoEclipse.org b/docs/javaBootcampNoEclipse.org index 06d8d43..66b3f00 100644 --- a/docs/javaBootcampNoEclipse.org +++ b/docs/javaBootcampNoEclipse.org @@ -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.