Consistency change to one service scons script
authorMats Wichmann <mats@linux.com>
Sun, 16 Jul 2017 21:24:17 +0000 (15:24 -0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 3 Aug 2017 13:43:14 +0000 (13:43 +0000)
Bug: https://jira.iotivity.org/browse/IOT-1745
Signed-off-by: Mats Wichmann <mats@linux.com>
Change-Id: I63dc5476662aa8795748b0eb0c7abd78fb86ae79
Reviewed-on: https://gerrit.iotivity.org/gerrit/21465
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
service/simulator/SConscript

index d3bc33d..72d71c9 100644 (file)
@@ -61,13 +61,13 @@ simulator_env.AppendUnique(CPPPATH=[
 try:
     os.environ['JAVA_HOME']
 except KeyError:
-    print '''
+    msg = '''
 *************************************** Error *********************************
 * JAVA_HOME environment variable not set                                      
 * Simulator has dependency on java, Please set environment variable JAVA_HOME
 *******************************************************************************
-       '''
-    sys.exit(1)
+'''
+    Exit(msg)
 
 java_headers = [os.path.join(os.environ['JAVA_HOME'], 'include')]
 java_headers.append(os.path.join(java_headers[0], 'win32'))