Commits

Zemian Deng  committed 575a7bf

Cleaned up run-java comments.

  • Participants
  • Parent commits 39b5a9b

Comments (0)

Files changed (1)

File timemachine-scheduler/bin/run-java

 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# A wrapper script that run any Java6 application in unix/cygwin env.
+# A wrapper script that run any Java application in unix/cygwin bash env.
 #
 # This script is assumed to be located in an application's "bin" directory. It will
-# auto resolve any symbolic link and always run in relative to this application 
-# directory (which is one parent up from the script.) Therefore, this script can be
-# run any where in the file system and it will still reference this application 
-# directory.
+# auto resolve its directory location relative to the application path (which is one 
+# parent up from the script.) Therefore, this script can be run any where in the file 
+# system and it will still reference the same application directory.
 #
 # This script will by default auto setup a Java classpath that picks up any "config"
 # and "lib" directories under the application directory. It also will also add a 
 # any typical Maven project output directories such as "target/test-classes", 
 # "target/classes", and "target/dependency" into classpath. This can be disable by 
-# setting RUN_JAVA_NO_PARSE=1.
+# setting RUN_JAVA_NO_AUTOCP=1.
 #
 # If the "Default parameters" section bellow doesn't match to user's env, then user
 # may override these variables in their terminal session or preset them in shell's 
 # Example:
 #   run-java example.Hello
 #   run-java example.Hello -Dname=World
-#   run-java org.junit.runner.JUnitCore example.HelloTest -cp "C:\apps\lib\junit4.8.2\*"
+#   run-java org.junit.runner.JUnitCore example.HelloTest -cp "$HOME/apps/junit/lib/*"
 #
 # Created by: Zemian Deng 03/09/2012
 
 APP_DIR=$(cd $SCRIPT_DIR/.. && pwd)      # Assume the application dir is one level up from script dir.
 
 # Default parameters
-JAVA_HOME=${JAVA_HOME:=/apps/jdk}        # This is the home directory of Java development kit.
+JAVA_HOME=${JAVA_HOME:=$HOME/apps/jdk}     # This is the home directory of Java development kit.
 RUN_JAVA_CP=${RUN_JAVA_CP:=$CLASSPATH}     # A classpath prefix before -classpath option, default to $CLASSPATH
 RUN_JAVA_OPTS=${RUN_JAVA_OPTS:=}           # Java options (-Xmx512m -XX:MaxPermSize=128m etc)
 RUN_JAVA_DEBUG=${RUN_JAVA_DEBUG:=}         # If not empty, print the full java command line before executing it.