211 if os.path.exists(wrapper_config):
212 replace(wrapper_config,
213 'wrapper.java.command=java',
214 'wrapper.java.command=' + (os.environ['JAVA_HOME'] + '/bin/java').replace('\\','/'))215
216 #sonar_properties = os.path.join(sonarhome, 'conf', 'sonar.properties')
217 #replace(
210 wrapper_config = os.path.join(sonarhome, 'conf', 'wrapper.conf')
211 if os.path.exists(wrapper_config):
212 replace(wrapper_config,
213 'wrapper.java.command=java',214 'wrapper.java.command=' + (os.environ['JAVA_HOME'] + '/bin/java').replace('\\','/'))
215
216 #sonar_properties = os.path.join(sonarhome, 'conf', 'sonar.properties')
64 if sonarhome is None:
65 msg = (f"\tCannot find a SonarQube instance to integrate against.\n"
66 f"\tMake sure there is a SonarQube running or pass a path to\n"
67 f"\tSonarQube using environment variable 'SONARHOME'\n") 68 print(msg, flush=True)
69 sys.exit(1)
70
63 sonarhome = os.environ.get('SONARHOME', None)
64 if sonarhome is None:
65 msg = (f"\tCannot find a SonarQube instance to integrate against.\n"
66 f"\tMake sure there is a SonarQube running or pass a path to\n" 67 f"\tSonarQube using environment variable 'SONARHOME'\n")
68 print(msg, flush=True)
69 sys.exit(1)
A continuation line is under-indented for a visual indentation.