From dd3181603e0a42c46299c25cede66fdbd67da518 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Mon, 4 Feb 2013 01:10:26 +0100 Subject: Extend the FS class for Java7 The most important difference is that in Java7 we have symbolic links and for most operations in the work tree we want to operate on the link itself rather than the link target, which the old File methods generally do. We also add support for the hidden attribute, which only makes sense on Windows and exists, just since there are claims that Files.exists is faster the File.exists. A new bundle is only activated when run with a Java7 execution environment. It is implemented as a fragment. Tycho currently has no way to conditionally include optional features based on the java version used to run the build, this means with this change the jgit packaging build always needs to be run using java 7. Change-Id: I3d6580d6fa7b22f60d7e54ab236898ed44954ffd Signed-off-by: Matthias Sohn --- org.eclipse.jgit.pgm/pom.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.pgm/pom.xml') diff --git a/org.eclipse.jgit.pgm/pom.xml b/org.eclipse.jgit.pgm/pom.xml index cbbb02a424..b51019c181 100644 --- a/org.eclipse.jgit.pgm/pom.xml +++ b/org.eclipse.jgit.pgm/pom.xml @@ -93,9 +93,28 @@ java6 - true + 1.6 + + + + org.eclipse.jgit + org.eclipse.jgit.console + ${project.version} + + + + + java7 + + 1.7 + + org.eclipse.jgit + org.eclipse.jgit.java7 + ${project.version} + true + org.eclipse.jgit org.eclipse.jgit.console -- cgit v1.2.3