#
FLK-E265214 'wrapper.java.command=' + (os.environ['JAVA_HOME'] + '/bin/java').replace('\\','/'))
215
216 #sonar_properties = os.path.join(sonarhome, 'conf', 'sonar.properties')
217 #replace(218 # sonar_properties,
219 # '#sonar.log.level=INFO',
220 # 'sonar.log.level=DEBUG'
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(
218 # sonar_properties,
219 # '#sonar.log.level=INFO',
198 os.close(file_handle)
199 #Remove original file
200 os.remove(file_path)
201 #Move new file202 move(abs_path, file_path)
203
204
196 for line in old_file:
197 new_file.write(line.replace(pattern, subst))
198 os.close(file_handle)
199 #Remove original file200 os.remove(file_path)
201 #Move new file
202 move(abs_path, file_path)
189
190
191def replace(file_path, pattern, subst):
192 #Create temp file193 file_handle, abs_path = mkstemp()
194 with open(abs_path, 'w', encoding='utf8') as new_file:
195 with open(file_path, encoding='utf8') as old_file:
Block comments should have one space before the pound sign #
and the comment itself.
#Save the data to DB, to ensure redundancy before responding
db.save(req.data)
api.send(req)
# Save the data to DB, to ensure redundancy before responding
db.save(req.data)
api.send(req)