NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 439 - Check for JAVA_HOME in build script
Check for JAVA_HOME in build script
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 minor
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-27 15:47 CET by Henri Sivonen
Modified: 2011-05-05 13:04 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-27 15:47:25 CET
< xydyx> hsivonen: checking for "JAVA_HOME" not in os.environ in buildAll 
               or buildJing should work
Comment 1 Hoàng Äức Hiếu 2009-01-27 16:02:59 CET
Index: build.py
===================================================================
--- build.py    (revision 67)
+++ build.py    (working copy)
@@ -550,6 +550,9 @@
     downloadDependency(url, md5sum)

 def buildAll():
+  if 'JAVA_HOME' not in os.environ:
+    print "You must set JAVA_HOME environment variable to point to the directory where your JDK is installed."
+    sys.exit(1)
   buildJing()
   buildDatatypeLibrary()
   buildNonSchema()
Comment 2 Michael[tm] Smith 2009-11-26 09:43:03 CET
build r84
http://whattf.browse.cvsdude.com/build?view=rev&revision=84