Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

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].

Monday, November 1, 2010

How to import source code from SVN to Netbeans 6.9

This post will establish the required steps to import the JSON ME source code from java.net, and in general from a svn repository into your NetBeans 6.9.

The code we want to import can be found at:


Requirements:
  1. Download and install NetBeans 6.9, if you don't have it yet.
  2. Create an account at Java.net, if you don't have one.
Steps:
  1. Start NetBeans 6.9 and go to the menu Team-->Subversion-->Checkout.

    To access the source code using Subversion, you must have Subversion client installed on your system. The first time you start NetBeans to access Subversion, it offers you the possibility to download and install the client automatically or manually.


    Note: With previous releases of NetBeans, the installation had to be done manually:

  2. Once the Subversion client has been installed, you can specify the SVN repository in where the source code is. For this example:

    https://svn.java.net/svn/meapplicationdevelopers~svn

    The last URL can be found at:

    http://java.net/projects/meapplicationdevelopers/sources

    Next, enter your java.net account info and if you have a proxy, you can configure it here as well.


  3. Next, you can choose the directory you want to import.



    For our example, choose:

    demobox/mobileajax/lib/json


    Also, you have to specify which revision version you want to import, press Browse to find the revision you want. For this case, the last revision was 333.



    Finally, you must select the local folder in which you want to import the selected directory and leave the box "Scan for NetBeans Projects after Checkout" checked. Thus, when the process is finished, NetBeans will automatically import the project (in case that the source code contains a NetBeans project).


  4. After importing the source code, there may be problems with the MicroEdition SDK version installed on your system and the one the source code was using. To solve the problem, you can right click on the imported project, choose properties and assign the MicroEdition SDK installed on your system to the project. To troubleshoot other resources, you should check if you have them installed in your system, if not, maybe you should get them before you can compile the source code using NetBeans.

References:

meapplicationdevelopers: Subversion Instructions. 2007. Oracle [online].
Available from Internet:
http://java.net/projects/meapplicationdevelopers/sources
[accessed on October the 27th 2010].


meapplicationdevelopers: Subversion. 2007. Oracle [online].
Available from Internet: http://java.net/projects/meapplicationdevelopers/sources/svn/show/demobox/mobileajax/lib/json
[accessed on October the 27th 2010].


CollabNet Subversion Downloads for NetBeans 6.5. CollabNet 2010 [online].
Available from Internet:
http://www.open.collab.net/downloads/netbeans/
[accessed on October the 29th 2010].