LoginSignup
12
10

More than 5 years have passed since last update.

Eclipse上からPlay runする

Posted at

EclipseからワンクリックでPlay runする方法のメモ。

Eclipse 上からコマンドプロンプトを開く - Qiitaを参考にさせていただきました。

Eclipseの設定

1.Run->ExternalTools->ExternalTools Configurationsを開きます。

2.左ペインでProgramを選択してNewを選択します。

3.適当に名前を付けます。

4.Locationにコマンドプロンプトのパスを設定します。以下はWin7の場合です。

C:\Windows\System32\cmd.exe

5.Argumentsにフォルダを指定してコマンドプロンプト開き、playを起動するコマンドを設定します。

/c start /d "${project_loc}"
play run

ここまで設定すると以下のようになります。
m01_eclipseからplayrun.JPG

6.保存して実行してみます。コマンドプロンプトが起動後、Playが起動したらOK。

次回からのPlay run実行

メニューアイコンのRun Last Tool(右向き三角にカバンのアイコン)をクリックします。

b3355f00-a3f9-6028-ac94-952cfd0fe3c8.jpeg

他のコマンドが打ちたいときはコマンドプロンプトからPlayを停止してから打てばOK。

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10