Wednesday, January 9, 2013

JDeveloper 11gR2 and Subversion

During the last month I've been architecting an ADF Essentials project for a local company which has 4 developers to work on the project. We are planning to use several collaboration and development lifecycle management tools such as: Subversion, Bugzilla, Oracle Team Productivity Center, Wiki, etc.

I wanted to share with you something that was happening to me when using Subversion and JDeveloper, something simple, but took me several hours to figure it out.

First of all, if you don't know what subversion is, I found this very practical guide that may be helpful:


The version of JDeveloper we are using is JDeveloper 11gR2 (11.1.2.3.0) which is certified to work with Subversion 1.6.x according to the official documentation. At first, we were having issues because we installed a different version of subversion, but once we installed the correct version it seemed to work pretty well on my co-workers laptops. However, it wasn't working for me. I didn't know why, I followed several tutorials such like this one:


But nothing worked for me. I tried several times to version a simple application I had and JDeveloper showed me that it was imported correctly:


However, when cheking on the repository, there was nothing... At the end, I realized that when versioning the application, JDeveloper applies some default filters, so your repository doesn't end up with files that can be regenerated such as .class files. So I paid more attention to this filters and found the solution to my problem. Following are the steps I took when versioning:



Then, I selected the repository and the folder where I wanted to keep my files:


Then I had to select the source directory, notice that the path of the application I was trying to version is in D:\temp directory:


And when scrolling down to the last filter I noticed that JDeveloper will not import anything that contains the word temp!!


I had two solutions: Removing the filter or moving the application to a different path. I did the latter and it worked! Anyway, kind of silly error but seriously, pay special attention to your filters.


see ya!


References:

Oracle ADF Essentials. Oracle [online].
Available on Internet: http://www.oracle.com/technetwork/developer-tools/adf/overview/adfessentials-1719844.html
[accessed on January 06 2012].

JDeveloper and ADF 11gR2 Certification and Support Matrix. Oracle [online].
Available on Internet: http://www.oracle.com/technetwork/developer-tools/jdev/jdev11gr2-cert-405181.html
[accessed on January 08 2012].

A Visual Guide to Version Control. [online].
Available on Internet: http://betterexplained.com/articles/a-visual-guide-to-version-control
[accessed on January 06 2012].

Oracle ADF Development Essentials. Oracle [online].
Available on Internet: http://www.oracle.com/technetwork/articles/adf/adf-essentials-098792.html
[accessed on January 06 2012].

Susan Duncan Blog. [online].
Available on Internet: http://susanduncan.blogspot.com/
[accessed on January 06 2012].