def runCommand(self, view, command) : gradle = Gradle.getGradlePath(view) buildFilePath = Gradle.getBuildDotGradle(view) # 別スレッドで実行 thread = BuildThread(gradle + " " + command + " " + buildFilePath) thread.start() #監視 + 表示 ThreadProgressObserver(thread, command)
def run (self, edit) : targetAppPath = sublime.load_settings("Gradle.sublime-settings").get("utility").get('webBrowseApp') testFilePathOrEmpty = Gradle.getBuildFolderPath(self.view) print "This util only work on Mac yet." if (testFilePathOrEmpty[0]): #index.html位置を直書きという暴挙 path = testFilePathOrEmpty[1] + """/reports/tests/index.html""" # 別スレッドで実行 thread = BuildThread("open" + " " + "-a" + " " + targetAppPath + " " + path) thread.start() #監視 + 表示 ThreadProgressObserver(thread, path)