SVN ignore and JDeveloper 11g

I’ll confess to being a command prompt geek. OK, so I said it. Let’s move on.

When committing JDeveloper files from command line to Subversion, one has to be a bit careful.

JDeveloper is not using the “normal” svn:ignore properties (wouldn’t that be nice) it’s using it’s own list of ignore patterns.

Well … never mind: we can add them ourselves.

Notice that if you create a new application and then select “Version Application”, one of the tabs you’ll click over is a list of file patterns that JDeveloper will exclude from the import. That very same list will be used every time you check for pending changes, commit to svn and so on. It’s a set of Java file-patterns, but it’s useful as an ignore list for subversion as well.

Here’s the list in readable form (as a file-pattern, non-java list)


I expect that you’ll be doing a lot of JDeveloper work, just as I do. So adding that list to the your global ignore-list for subversion would make sense.

Go to your subversion config directory. On Unix/Linux it’s in ~/.subversion on Windows it should be in %APPDATA%\Subversion. In there should be a file called config. In that file you’ll find a line looking something like this:

# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo

Maybe it’s not commented out, maybe it is. Change it to this instead:

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo .*.cs .#* .ade_path .data .depprod .depprod_nt .do_pool .fullsource .fullsource_nt .svn *.bak *.cdi *.class *.client_contrib *.contrib *.DS_Store * *.ignore *.keep *.labellog.emd *.metadata *.mv.* *.rename *.rvi *.saved *.scc *.sync *.unbranch *.unco *.unmkelem *~ *#GRABTRANS *#JDEVADF_* classes CVS deploy temp

All of the above should be on one line.

That should allow you to work with subversion from the command prompt and not have to remember which file types JDeveloper ignores for you.

This entry was posted in Software development and tagged , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.