Oracle Technologies Primer

September 29, 2011

Using Microsoft TFS as Version Control System with JDeveloper 11g

Integrating with Microsoft TFS source control system with Eclipse was a cakewalk. The TFS plugin for eclipse would work like a charm. However Microsoft TFS can also be used with JDeveloper. This small blogpost will explain how can this be done.

Install the Team Version Extension by Help->Check for Updates in JDeveloper

image

Restart your JDeveloper for this change to take affect. Next go to the Versioning Tab and click on Team System-Connect to Team System. I certainly don’t know what system it connects to but this is required as the first step. This probably locates the Team Foundations workspaces currently available in your local machine.

image

Next Create a new folder as your workspace, i.e. C:\<tfs_workspace>

Microsoft Visual Studio TFS should be installed. Install it somewhere in your local machine.

Now you can create a new Workspace either through the TFS Explorer or through TF command line.

Create a workspace on your local computer.

tf workspace -new -server:http://servername:8080 -login:user@DOMAIN,PASSWD <WorkspaceName>

Create a working folder mapping to map this workspace to the folder you just created.

tf workfold -map -workspace:MyWorkspace $/TeamProject/trunk/path/ C:\<tfs_workspace>

Otherwise Navigate to Microsoft Visual Studio > Source Control Explorer

image

Link your workspace with TFS, click on Local Path as C:\<tfs_workspace>

Go to JDeveloper and click on the Versioning Tab once again. Go to Team System->Set Workspace and choose the workspace that you just created.

image

To use the newly created workspace, in JDeveloper start a new application, i.e. C:\<tfs_workspace><Application> and then create your projects under it.

You can check-in all pending edits in your application to the source control in TFS. Once you check it in the file is locked as Read-Only. Changes can be done only by first checking out the file. The screen shot below shows how a file that has a edit pending is checked in to TFS and the corresponding command generated in the JDeveloper Message log.

image

.

5 Comments »

  1. Can you please show how to check out. I was succesful to do the above but I do not see check out option here, and the check out under Versioning> Team System is grayed out. I was trying for this and no luck

    Comment by hari — December 20, 2011 @ 11:09 pm

    • You will have to make sure that you have a workspace created for JDeveloper to be able to connect to TFS. Once you have created the workspace and mapped a local folder with the TFS folder you can use that in Your JDeveloper.

      Also Next time you create a composite in JDeveloper make sure that your work folder is your local TFS folder. Let me know if it helps

      Comment by Arun Pareek — December 21, 2011 @ 9:35 am

  2. [...] You can refer to the following article for full details how to install the add-in  Using Microsoft TFS as Version Control System with JDeveloper 11g [...]

    Pingback by Developing JAVA Projects using jDeveloper and TFS as Source Control - Hosam Kamel's Blog — April 18, 2012 @ 1:03 pm

  3. The reason for the grayed out options is that the folder holding the TF command-line tool is not on the PATH environment variable or you don’t have the TFS client installed. You can check out the solution on this post: http://blog.ozzie.eu/2012/09/using-jdeveloper-with-tfs-grayed-out.html

    Comment by João Osório (@mjlmo) — September 18, 2012 @ 9:44 am

  4. Okay… what if I am on a non-windows environment and can’t install the tfs client? Isn’t that the point of platform agnostic software????

    Comment by ME — April 30, 2013 @ 3:55 am


RSS feed for comments on this post. TrackBack URI

Post your comments and suggestions here

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Blog at WordPress.com.

Adam Deane

Business Process and Workflow

Oracle Technologies Primer

Technical posts on OSB/WLS/AIA, Oracle SOA Suite, BPM and Fusion Middleware

SOA Community Blog

by Jürgen Kress

Technical posts on OSB/WLS/AIA, Oracle SOA Suite, BPM and Fusion Middleware

Technical posts on OSB/WLS/AIA, Oracle SOA Suite, BPM and Fusion Middleware

J@n van Zoggel

mumblings of a middleware minion

Oracle .. Java .. OpenSource .. SOA

Just another WordPress.com weblog

Nitin's Oracle Fusion Middleware and SOA World

SOA FMW BPM BPEL OSB Governance J2EE and all the Geeky stuff

RedStack

Musings on Integration with Oracle Fusion Middleware

Follow

Get every new post delivered to your Inbox.

Join 921 other followers

%d bloggers like this: