Discussion:
IntelliJ: Linked Folder feature?
Jason Osgood
2014-04-24 16:52:07 UTC
Permalink
One feature of Eclipse that I miss terribly in IntelliJ is the Linked Folder. It allows me to “include” a project’s logs, config, data files in the Eclipse project navigator without actually including them within the project’s source tree.

Has anyone found a workaround for IntelliJ?

I tried creating OS symlinks. IntelliJ doesn’t honor them.


Forgive me; I think I asked this before. I don’t recall the hivemind’s answer.


Cheers, Jason

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/seajug/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/seajug/join
(Yahoo! ID required)

<*> To change settings via email:
seajug-digest-***@public.gmane.org
seajug-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
seajug-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/
Stewart Buskirk
2014-04-24 16:58:44 UTC
Permalink
Jason,

When you edit the module settings, there is a Sources tab. Mine has a "+ Add Content Root" button at the top of the right panel. You can choose an arbitrary folder from that dialog, and then that folder will show up in the project folder tree on the same level as the primary module root folder (as a sibling).

I am using IDEA v.13.

-Stewart
Post by Jason Osgood
One feature of Eclipse that I miss terribly in IntelliJ is the Linked Folder. It allows me to “include” a project’s logs, config, data files in the Eclipse project navigator without actually including them within the project’s source tree.
Has anyone found a workaround for IntelliJ?
I tried creating OS symlinks. IntelliJ doesn’t honor them.
Forgive me; I think I asked this before. I don’t recall the hivemind’s answer.
Cheers, Jason
------------------------------------
Yahoo Groups Links
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/seajug/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/seajug/join
(Yahoo! ID required)

<*> To change settings via email:
seajug-digest-***@public.gmane.org
seajug-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
seajug-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/
Konstantin Ignatyev
2014-04-24 16:59:41 UTC
Permalink
how about good-ol' symlinks ?
Post by Stewart Buskirk
Jason,
When you edit the module settings, there is a Sources tab. Mine has a "+ Add Content Root" button at the top of the right panel. You can choose an arbitrary folder from that dialog, and then that folder will show up in the project folder tree on the same level as the primary module root folder (as a sibling).
I am using IDEA v.13.
-Stewart
Post by Jason Osgood
One feature of Eclipse that I miss terribly in IntelliJ is the Linked Folder. It allows me to “include” a project’s logs, config, data files in the Eclipse project navigator without actually including them within the project’s source tree.
Has anyone found a workaround for IntelliJ?
I tried creating OS symlinks. IntelliJ doesn’t honor them.
Forgive me; I think I asked this before. I don’t recall the hivemind’s answer.
Cheers, Jason
------------------------------------
Yahoo Groups Links
------------------------------------
Yahoo Groups Links
--
Konstantin Ignatyev

PS: If this is a typical day on planet Earth, humans will add fifteen
million tons of carbon to the atmosphere, destroy 115 square miles of
tropical rainforest, create seventy-two miles of desert, eliminate
between forty to one hundred species, erode seventy-one million tons
of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase
their population by 263,000

Bowers, C.A. The Culture of Denial: Why the Environmental Movement
Needs a Strategy for Reforming Universities and Public Schools. New
York: State University of New York Press, 1997: (4) (5) (p.206)


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/seajug/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/seajug/join
(Yahoo! ID required)

<*> To change settings via email:
seajug-digest-***@public.gmane.org
seajug-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
seajug-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/
George Smith
2014-04-25 00:55:13 UTC
Permalink
Stewart is correct.

Unlike Eclipse, in IntelliJ there is technically no relationship between
where the project is "homed" and the modules are homes. And there is also
no hard relationship between where the module is homed and any of its parts.

That being said, IntelliJ assumes that most of us will use sub-directories
for this things, and it helps set things up that way by default, but these
can be changed, augmented or even skipped as part of the setup and then you
can manually configure your initial layout.

George
Post by Stewart Buskirk
Jason,
When you edit the module settings, there is a Sources tab. Mine has a "+
Add Content Root" button at the top of the right panel. You can choose an
arbitrary folder from that dialog, and then that folder will show up in the
project folder tree on the same level as the primary module root folder (as
a sibling).
I am using IDEA v.13.
-Stewart
Post by Jason Osgood
One feature of Eclipse that I miss terribly in IntelliJ is the Linked
Folder. It allows me to “include” a project’s logs, config, data files in
the Eclipse project navigator without actually including them within the
project’s source tree.
Post by Jason Osgood
Has anyone found a workaround for IntelliJ?
I tried creating OS symlinks. IntelliJ doesn’t honor them.
Forgive me; I think I asked this before. I don’t recall the hivemind’s
answer.
Post by Jason Osgood
Cheers, Jason
------------------------------------
Yahoo Groups Links
------------------------------------
Yahoo Groups Links
--
"And the users exclaimed with a laugh and a taunt: It's just what we
asked for but not what we want." -- Unknown
P.Hill
2014-04-25 17:58:37 UTC
Permalink
AFAIK, the same thing is possible and not uncommon in Eclipse.
As in IntelliJ, there are assumed simple defaults when all of it is
together and in the tree below, but it can be set otherwise.

Some dev groups keep IDE files (.project, .classpath ...) out of source
control by not having them in tree at all, instead of listing them in
the .gitignore (or equivalent).
I think that is even an option on the create dialogs for a simple project.

As Jason said, you can build (non-OS) soft links understood by the IDE
project, plus you can designate anything as a source directory. What
dir to build into and others can also be set. Consider your standard
Maven tree {$home}/src/main/java vs. a simple project with {$Home}/src.
It would be hard to support the fancier structure withouyt some of these
features.

No, this isn't a discussion of which IDE has a better UI for setting or
resetting these, only whether dirs can be linked and sources etc. can
refer to non-trivial locations.

Using an OS soft-link might trick an IDE, but it might also trick source
control, or even complicate some build process. I'm thinking that if you
want a dir is in the IDE just for convenient viewing (run results, logs
etc.), the right place to add a link is in the IDE, not anywhere else.

I once so regularly wanted to reference lots of stuff on a server, I had
a separate project for all those places which I also had open. It was a
short lived idea. My life got simpler.

-Paul
Post by George Smith
Stewart is correct.
Unlike Eclipse, in IntelliJ there is technically no relationship
between where the project is "homed" and the modules are homes. And
there is also no hard relationship between where the module is homed
and any of its parts.
That being said, IntelliJ assumes that most of us will use
sub-directories for this things, and it helps set things up that way
by default, but these can be changed, augmented or even skipped as
part of the setup and then you can manually configure your initial layout.
Loading...