Best IntelliJ Subversion Workflow?

So I am looking to version control a Project containing many flex modules. I am wondering what workflows have worked for people.
Other developers will be working on different modules and I am curious if there is a way we can all share the same IntelliJ
project?

If I check in my Project Folder, (with the .idea folder inside), will another developer be able to open this project upon checking it out?
Will changes they make to the project such as SVN username/password and JIRA information cause us trouble when syncing the .idea
folder?

Is it better to ignore the .idea folder and force each developer to setup there own project and import all the modules? This workflow seems a bit
flawed though as a developer who adds a module would need to inform everyone else that they need to import it.

Any help on the best way to go about version controlling a IntelliJ project would be really handy, thanks a lot!

-ross

4 comments

I can't comment on flex development, but for our Java/Web projects it works fine to
share the .idea folder together with the *.iml module files via SVN.
See
    http://www.jetbrains.net/devnet/docs/DOC-1186
and maybe also
    http://www.jetbrains.net/devnet/docs/DOC-1143

On 08.04.2010 05:24, Ross Gerbasi wrote:

So I am looking to version control a Project containing many flex modules. I am wondering what workflows have worked for people.
Other developers will be working on different modules and I am curious if there is a way we can all share the same IntelliJ
project?

>

If I check in my Project Folder, (with the .idea folder inside), will another developer be able to open this project upon checking it out?
Will changes they make to the project such as SVN username/password and JIRA information cause us trouble when syncing the .idea
folder?

>

Is it better to ignore the .idea folder and force each developer to setup there own project and import all the modules? This workflow seems a bit
flawed though as a developer who adds a module would need to inform everyone else that they need to import it.

>

Any help on the best way to go about version controlling a IntelliJ project would be really handy, thanks a lot!

>

-ross

>

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


0

Thanks for the link, thats great I will put it through the tests in Flex.

Just curious as I am mainly in the Flex work I dont know much about "normal" subversion edicate.

Is it fair to say you do not check in compiled modules? So if you have a multi module project
and some modules are generating JAR files, you would not check in the JAR's just the code to generate them?


thanks,
-ross

0

Yes, IMHO that's a fairly common rule: Only check in what is needed to build the app,
but leave out any artifacts generated by the build.

I think there are different opinions on the topic of checking in (library) jars needed
to build the app.
We use ANT and like to have all libraries in SVN, so that you can simply check out
and build even without internet access.
The maven folks often rely on the maven repo being available and are getting their
jars from there.

I have absolutely no practical knowledge of building flex apps, so I can't comment
on how to best use flex + svn together.

On 08.04.2010 20:20, Ross Gerbasi wrote:

Thanks for the link, thats great I will put it through the tests in Flex.

>

Just curious as I am mainly in the Flex work I dont know much about "normal" subversion edicate.

>

Is it fair to say you do not check in compiled modules? So if you have a multi module project
and some modules are generating JAR files, you would not check in the JAR's just the code to generate them?

>
>

thanks,
-ross

>

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


0

thanks I will run it through the Flex tests...

Curious do you ignore any other files and folders in the .idea folder other then workspace.xml

currently thats all i am ignoring, I am seeing a dictionaries folder with a {username}.xml file can that be ignored?

How about projectCodeStyle.xml?

I guess I am curious what is required to be in there for it to open the project properly with modules and relationships.

here is currently what I got

file - ant.xml
file - compiler.xml
dir  - copyright
dir  - dictionaries
file - encodings.xml
dir  - inspectionProfiles
dir  - libraries
file - misc.xml
file - modules.xml
file - projectCodeStyle.xml
file - vcs.xml
file - workspace.xml (ignored)


thanks
-ross

0

Please sign in to leave a comment.