Eclipseの実行構成、デバッグ構成の起動プロファイル .launches をワークスペースに保存

プログラミング
スポンサーリンク

Eclipseの実行構成(Run Configuration)、デバッグ構成(Debug Configuration)をワークスペースに保存する方法をまとめてみた。

スポンサーリンク

Eclipseの実行構成、デバッグ構成とは

Eclipseのメニュー「実行(Run)」から起動する

  • 実行構成 (Run Configurations)
  • デバッグ構成 (Debug Configurations)

は、アプリケーションの起動構成を記述したもので、起動プロファイルと呼ばれます。

 

 

実行構成、デバッグ構成で保存した設定をワークスペースに保存したい

この実行構成、デバッグ構成で保存した設定(起動プロファイル)ですが、ワークスペースのプロジェクトの中には含まれていないようです。

ではどこに保存されるのでしょうか?

保存場所はどこでしょうか?

 

調べてみると、この設定は

.launches

というファイルにXML形式で保存され、以下のフォルダに含まれているようです。

[eclipse-workspace]¥.metadata¥.plugins¥org.eclipse.debug.core¥.launches

 

なんと、ワークスペースの外でした。

プロジェクトのリポジトリで管理したいのですが、どうやって、プロジェクトに含むことが出来るのでしょうか?

 

https://stackoverflow.com/questions/952290/how-do-i-save-eclipse-launch-profiles-across-workspaces

The .launch xml files (launcher definition) are found in

[eclipse-workspace]\.metadata\.plugins\org.eclipse.debug.core\.launches

 

Just copy them into your <project>/.settings directory.
Refresh your project, and there you have it: those launcher configuration are available, and you can copy them along the rest of your project files.

 

なんと、プロジェクトの

.settings

フォルダに、.launches をそのまま以下のようにコピーすればよいようです。

[eclipse-workspace]¥(project name)¥.settings¥.launches

 

 

プログラミング
スポンサーリンク
スポンサーリンク
うらしたをフォローする
スポンサーリンク
urashita.com 浦下.com (ウラシタドットコム)

コメント

タイトルとURLをコピーしました