You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/10/10 04:39:56 UTC

cvs commit: maven/src/installer/nsis maven_setup.nsi

dion        2003/10/09 19:39:56

  Modified:    src/installer/nsis maven_setup.nsi
  Log:
  Add JAVA_HOME check
  
  Revision  Changes    Path
  1.2       +8 -0      maven/src/installer/nsis/maven_setup.nsi
  
  Index: maven_setup.nsi
  ===================================================================
  RCS file: /home/cvs/maven/src/installer/nsis/maven_setup.nsi,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven_setup.nsi	10 Oct 2003 01:24:39 -0000	1.1
  +++ maven_setup.nsi	10 Oct 2003 02:39:56 -0000	1.2
  @@ -128,12 +128,20 @@
   Function .onGUIInit
      !insertmacro BIMAGE "maven.bmp" ""
      ; TODO Check for a JAVA_HOME environment variable
  +   ClearErrors
  +   ReadEnvStr $0 "JAVA_HOME"
  +   
  +   IfErrors 0 Found
  +      ClearErrors
  +      MessageBox MB_OK|MB_ICONSTOP "Maven Requires a JAVA_HOME environment variable set. Please set JAVA_HOME and try installing again"
  +      Abort
      ; If it doesn't exist
      ;   check the registry for one
      ;   if that exists
      ;     set that as JAVA_HOME
      ;   else
      ;     MessageBox about maven needing java home set to run?
  +   Found:
   
   FunctionEnd
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org