Prerequisites:

- Maven 3.0 or greater

Environment Setup:

- Set the environment variable of JAVAHOME to point to the root of the JDK installation folder (i.e. C:\Program Files\Java\jdk1.7.005)

- Set the environment variable of M2_HOME to point to the root of the Maven folder (i.e. D:\java\Maven\apache-maven-3.0.4)

- Add maven bin to the end of the PATH environment variable (i.e. D:\java\Maven\apache-maven-3.0.4\bin)

Steps:

- In the root of the git-tf project run the following commands:

mvn -Declipse.workspace=. eclipse:configure-workspace
mvn eclipse:eclipse

- Open eclipse with the workspace set to the root of the git-tf directory.

- Import existing projects and select the git-tf project root directory. Select the two java projects and continue.

Running git tf debug version from eclipse:
  1. Open your Eclipse launch configurations from Run > Debug Configurations...
  2. Select Java Application and press the New Configuration button.
  3. Give your launch configuration a unique name, eg "git-tf".
  4. In the Main tab, set the Project to com.microsoft.gittf.client.clc and the Main class to com.microsoft.gittf.client.clc.Main
  5. In the VM arguments tab, add information for the TEE SDK to locate its native libraries
-Dcom.microsoft.tfs.jni.native.base-directory=${workspace_loc}/com.microsoft.gittf.core/lib/native

Running git tf debug version from the command line:
  1. Add the path to git-tf\com.microsoft.gittf.client.clc\debugscripts to the PATH environment variable
  2. to attach the eclipse debugger to an instance of git tf running from the command line set the JAVA_DEBUG environment variable to 1.
  3. Open your Eclipse launch configurations from Run > Debug Configurations...
  4. Select Remote Java Application and press the New Configuration button.
  5. Give your launch configuration a unique name, eg "git-tf remote".
  6. Select com.microsoft.gittf.client.clc as the project to debug.

Last edited Aug 10, 2012 at 9:26 PM by youhanaNaseim, version 6

Comments

No comments yet.