Skip to content

Instantly share code, notes, and snippets.

@jesperronn
Last active October 13, 2015 16:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jesperronn/4223763 to your computer and use it in GitHub Desktop.
Save jesperronn/4223763 to your computer and use it in GitHub Desktop.
IDEA vmoptions

For Play 1.x projects perform the following steps:

$ cdplay $ play idealize (open the .ipr file with IntelliJ -- remember to explicitly pick up that file).

In Intellijs UI, press "Project Structure" (CTRL+ALT+S)

Set the SDK to the one you want to use. Example /opt/oracle/jrockit1.6.0

Project Settings>Modules, exclude the following folders:

  • nbproject
  • precompiled
  • target
  • test-result
  • tmp
  • war
#Line below added by jesper in idea.sh
IDEA_JDK="/opt/tools/jdk1.7.0_09"
#end line add
-Xms128m
-Xmx800m
-XX:MaxPermSize=350m
#-XX:ReservedCodeCacheSize=64m
#-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
@muscapades
Copy link

Alternatively, to ignore folders in a way that survives running play idealize again, you can ignore the files in Settings (Ctrl-Alt-S) -> IDE Settings -> File Types -> Ignore files and folders
add this: ;tmp;precompiled;target;.settings;nbproject;war;.classpath;.project

(To find it, I normally open settings and search for "ignore", then File Types are easy to spot in the short list.)

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