Skip to content

Instantly share code, notes, and snippets.

@maeharin
Created March 29, 2015 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maeharin/886a1e825a9a34c9184f to your computer and use it in GitHub Desktop.
Save maeharin/886a1e825a9a34c9184f to your computer and use it in GitHub Desktop.
eclipseの自分用設定

====== eclipse設定 ======

==== ホットデプロイの設定 ====

  • 以下のブログの内容を試してみる
    • http://yamkazu.hatenablog.com/entry/20110327/1301212811
    • viewは自動反映されないかも。。serverビューのdebugボタンを押す必要あり
    • とはいえ、gitでブランチ切り替えても、debugボタン押すだけで正常動作するので、reloadable=trueにしておくよりも圧倒的に安定している感ある

==== logの設定 ====

  • プラグインやVMargumentsの編集など試したが上手くいかなかったので、普通にeclipseの設定でログをファイルに書き出せたので、それをtailすることにした
  • http://stackoverflow.com/questions/2233053/where-can-i-view-tomcat-log-files-in-eclipse
  • servers tab, double-click on the Tomcat Server. => Click on "Open launch configuration". Click on the "Common" tab. Towards the bottom of the screen you can check the "File" checkbox and then specify a file that can be used to log your console (catalina.out) output. Finally, restart the Tomcat server.
  • File:に以下を指定
    • /Users/h-maehara/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/logs/<好きな名前>_catalina.out

==== ソースコードアタッチ ====

  • pom.xmlでtrue指定しているのになぜかソースのアタッチがされない
  • アタッチされないことを示す画面に、アタッチボタンがあるので、ソース落として、そのsrcフォルダを直接アタッチした

==== 検索結果からtargetディレクトリ配下を除外 ====

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment