Save Project As

Just checking to see if other people have an elegant solution or maybe this
might make a nice enhancement.

Here's my situation:

A) 7 or so different projects, each a standalone J2EE web app, plus one
portal app.

B) I just downloaded 3084 and didn't choose to import settings.

C) I copied an existing project's files (the .ipr, .iws and .iml) to new
location; this would be 3084's project for app #1

D) Paths come across ok, but many "project" settings were lost. Among them:
a) External Tools
b) Resources
c) Project JDK
d) settings for Errors
e) file types associations
f) probably others since I am in the midst of doing this and haven't
done an exhaustive check


Here's my plan. I'll tweak the settings to get everything just right.
Then, I'd like to do a Save Project As to a new filename and make one
adjustment -- the source paths. That is literally the only change I need to
make for all of the other projects. Having seen the effects of just doing a
copy of the .ipr, .iws and .iml, I can't rely on that.

Now, one might ask why dont you just have all those apps in one project?
The answer is "I don't know". I have no justification for keeping all of
these projects separate other than tidyness. Maybe the all in one approach
is a better way to do it, but something internally says it might be more
problematic. Things like output path and test output path are per project
and this wont work for me under the "all apps in one project" scenario.
Maybe modules are part of the answer. I dont know. And when I do Ctrl-N,
I'd like to search the source for only one project. The more I think about
it, the more I think the 8 separate projects is the way to go.

But regardless, that still leaves the original question: It would be really
nice to have Save Project As functionality if only for the reason that a
simple copy of the files doesn't work; it doesn't capture all the settings
that need to be transferred.

Thoughts anyone?


Michael.




1 comment

Michael Morett wrote:

B) I just downloaded 3084 and didn't choose to import settings.

C) I copied an existing project's files (the .ipr, .iws and .iml) to new
location; this would be 3084's project for app #1

D) Paths come across ok, but many "project" settings were lost. Among them:
a) External Tools
b) Resources
c) Project JDK
d) settings for Errors
e) file types associations
f) probably others since I am in the midst of doing this and haven't
done an exhaustive check


It seems to me that all of these settings being lost is because you
didn't import settings from previous installation. They are all IDE
level settings, not project level settings. The Project JDK is probably
disconnected because the JDK is not configured for the IDE. If you
configure a JDK and give it the same name that you used originally, then
the project should re-connect to it. In other words, the settings are
still there, not lost, just disconnected. The other settings are all IDE
level settings.
You should be able to copy the project files to different locations with
no problem. Changing the name of each project should probably just
require changing the name of the .ipr file. Changing module names can be
done in the IDE right-click module in Project panel, Refactor->Rename.

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.