open project via script

is it possible to trigger the opening of an idea project via script?

that means I want to have a script (.bat or ant etc.) to cause IDEA to open a project



thanks,
M.

10 comments

Hello Michael,

is it possible to trigger the opening of an idea project via script?

that means I want to have a script (.bat or ant etc.) to cause IDEA to
open a project


Yes. IDEA accepts the name of the project file as command line parameter.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

thank you.
that's nice, but I additionally would like this to work even if IDEA is already started.
That means, open a project no matter if IDEA is already running or not. in case it is not running, lauchn it, if it runs already, launch the "open in new window?" dialog...


is this also possible?

0

Hello Michael,

thank you.

that's nice, but I additionally would like this to work even if IDEA
is already started.

That means, open a project no matter if IDEA is already running or
not. in case it is not running, lauchn it, if it runs already, launch
the "open in new window?" dialog...

is this also possible?


This currently works on Windows but not on other platforms.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

thanks for the reply.
but this does not work if I use
[path to idea.exe] myideaproject.ipr

the project is not opened (if IDEA runs already). IDEA gets the focus, but that is all.

I tried with 9.0 community edition.

0

Hello Michael,

This doesn't currently work in Community Edition because it relies on features
of exe4j, which is a non-free tool.

thanks for the reply.
but this does not work if I use
myideaproject.ipr
the project is not opened (if IDEA runs already). IDEA gets the focus,
but that is all.

I tried with 9.0 community edition.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5262658#5262658

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

ok, thank you. tried with ultimate edition and it worked.


M.

0

it worked with .ipr - but not with a .idea directory.
What do I have to specify so that it works whith an .idea folder?


M.

0

Hello Michael,

it worked with .ipr - but not with a .idea directory. What do I have
to specify so that it works whith an .idea folder?


You need to file a YouTrack issue asking for this to be fixed. :)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

What I also miss is opening project by maven pom:
===
idea.sh /path/to/pom.xml

i also added a ticket for that: http://youtrack.jetbrains.net/issue/IDEA-55799

0

Please sign in to leave a comment.