def runCommand(self, view, command) :
    gradle = Gradle.getGradlePath(view)
    buildFilePath = Gradle.getBuildDotGradle(view)

  	# 別スレッドで実行
    thread = BuildThread(gradle + " " + command + " " + buildFilePath)
    thread.start()

    #監視 + 表示
    ThreadProgressObserver(thread, command)
Beispiel #2
0
  def runCommand(self, view, command) :
    gradle = sublime.load_settings("Gradle.sublime-settings").get("path").get('gradle')
    buildFilePath = GetBuildFilePath.getBuildFilePath(view)

  	# 別スレッドで実行
    thread = BuildThread(gradle + " " + command + " " + buildFilePath)
    thread.start()

    #statusBarに経過表示
    ThreadProgress(thread, 'gradle '+command+" running...", 'gradle '+command+" Done.")
Beispiel #3
0
  def run (self, edit) :
    targetAppPath = sublime.load_settings("Gradle.sublime-settings").get("utility").get('webBrowserApp')
    testFilePathOrEmpty = GetBuildFolderPath.getBuildFolderPath(self.view)
    
    if (testFilePathOrEmpty[0]):
      #index.html位置を直書きという暴挙
      path = testFilePathOrEmpty[1] + """/reports/tests/index.html"""

      # 別スレッドで実行
      thread = BuildThread("open" + " " + "-a" + " " + targetAppPath + " " + path)
      thread.start()

      #statusBarに経過表示
      ThreadProgress(thread, 'gradlePlugin opening '+ path + "...", 'gradlePlugin done.')
  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)