GeeCON Prague 2014*
The moose likes IDEs, Version Control and other tools and the fly likes how to import sources on local file system into an IDEA project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to import sources on local file system into an IDEA project?" Watch "how to import sources on local file system into an IDEA project?" New topic
Author

how to import sources on local file system into an IDEA project?

Pavan Panduga
Ranch Hand

Joined: Jun 12, 2002
Posts: 68
Friends,

I'm in the transition from Eclipse to Intellij IDEA,
I have some source files on the local file system and I'd like to import them into my project that I have created in IDEA. This can be easily done in Eclipse by importing file system.

I could not figure out how the same could be done in IDEA. I've tried to look through the online documentation but could not find anything.

Any inputs/pointers are greatly appreciated.

Thanks,
[ January 03, 2005: Message edited by: Pavan Kumar Panduga ]
Sanjaya Sugiarto
Ranch Hand

Joined: Mar 25, 2004
Posts: 229
It works if you drop the file manually to the folder your projects saved (just like drag and drop). And than start IntelliJ, it should find all the new files.
It is different to Eclipse, where you must using Import File System (it wont work if you do manual drag and drop).
Each solution has positive and negativ sides I think.

If you are not satisfied than you should drop a message at http://www.intellij.net/forums/forum.jsp?forum=27
The JetBrains people will reply you.


<a href="http://www.wi.hs-furtwangen.de" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
Pavan Panduga
Ranch Hand

Joined: Jun 12, 2002
Posts: 68
Sanjaya,

Thank you so much for your inputs. Yes, it works great.

Thanks for that forum link.

Pavan,
Frank Malinowski
Ranch Hand

Joined: Jul 24, 2003
Posts: 30
Also keep in mind that if you already have existing projects you can create a new project with intellij and simply navigate to your existing project source folder in order for it to import the existing source. This will work when creating multi-module projects as well.

I do this all the time with existing projects that have their own Ant build scripts as well. It works like a charm. Also, the feature that was mentioned above (dropping files into the directory) works with version control systems as well. For example, if you check out files that were added to a project from your version control system they will show up in your project automatically too.

Also note that there is no reason to restart intellij. It will recognize these files while it is running.

Frank
 
GeeCON Prague 2014
 
subject: how to import sources on local file system into an IDEA project?