Red Hat Bugzilla – Bug 110983
ccm-deve-create.pl should validate presence of Java runtime before trying to create project
Last modified: 2007-04-18 12:59:48 EDT
Description of problem:
The ccm-devel-create.pl script for creating a new project requires
that a java runtime be configured on the system, since it runs the
ccm-configure.sh script. If $JAVA_HOME is not set or $JAVA_HOME/bin is
not in the $PATH, then the running of ccm-configure.sh will fail. This
leaves a partially created project with files in
/var/ccm-devel/dev/[user]/[project] which need to be manually deleted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Don't set JAVA_HOME
2. run ccm-devel-create.pl
[jay@staging01 jay]$ ccm-devel-create.pl aplaws-camden
JAVA_HOME not set
Installation failed: cannot run ccm-configure.sh script: No such file
or directory at /usr/bin/ccm-devel-create.pl
Install logs at /var/tmp/ccm-devel-create-aplaws-camden-jay.log
Error message saying that no JRE has been setup.
No attempt should be made to create the proejct.