Portable IDEA workspace for Grails
Hi, I'm very new with IDEA,
I'm evaluating it with a purpose to use it for both work and personal project.
Hence, I really want to make it portable... I'm trying to put the IDE, the java sdk, grails, groovy all in my portable harddisk, and trying to work on my project from it.
As I'm currently working with Grails (using Netbeans), I'm trying to make the Grails project portable using IDEA.
I have 2 questions:
1) Has anyone tried with this idea of portable IDEA workspace? As I'm just starting, do you think it's feasible? Any foreseeable issue/problem?
2) This is the last one I'm stuck with.My portable project can't resolve my additional grails plugin. In Tools -> Grails Plugin, i can see both of my plugins i used (hibernate and image-tools), but my application cannot resolve the ImageTool class.
The Grails additional plugins was previously installed under my user directory (.robert). How can I add the plugin to the project? As I want it to be portable, i don't want it to refer to my .robert directory.
Thank you so much,
Appreciate any help.
Robert
请先登录再写评论。
The only solution now for portable workspace is to setup a path variable
(Settings|Path Variables) pointing to your home directory. Then all your
IDEA module files will contain this path variable instead of absolute path.
If your module doesn't contain image-tools plugin sources, please invoke
'Run Grails Target' with any target you like, this should help.
Under IntelliJ8/bin there is the file 'idea.properties'
Some of the entries are:
# path to IDEA config folder. Make sure you're using forward slashes
idea.config.path=${user.home}/.IntelliJIdea80/config
# path to IDEA system folder. Make sure you're using forward slashes
idea.system.path=${user.home}/.IntelliJIdea8x/system
# path to user installed plugins folder. Make sure you're using forward slashes
idea.plugins.path=${user.home}/.IntelliJIdea80/config/plugins
It seems like you would be able to edit these such that IJ uses the portable drive and is also installed on the portable drive.
A few years ago, 2005, I setup IJ to use a flash drive and found it rather slow. This was most likely due to the speed of my flash media.
My understanding is that todays media is much faster.
-Rob
Hi Peter, thanks.
Installing grails plugin will go to the user home directory (.grails). Is there any way to modify this to install it to my portable harddisk?
You were mentioning about adding some home path to the settings, what home path are you referring to? will it overwrite my PC environment variable?
Thanks,
Robert
I'm afraid no. This location is hardcoded inside Grails.
It's just IDEA's internal settings, affecting only the format in which
IDEA will store your project paths in its module files.
Rob's post (below) seems to contradict this.
Randall Schulz
idea.properties has nothing common with Grails internals, so no