aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.repository
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-02-04 01:10:26 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2013-05-04 02:01:56 +0200
commitdd3181603e0a42c46299c25cede66fdbd67da518 (patch)
treed92d9b2ef6560d21e5f5b760371f23fb509b2a94 /org.eclipse.jgit.packaging/org.eclipse.jgit.repository
parentf2d0b50e0a9aff4060f8e2caa6f5b662adf16f81 (diff)
downloadjgit-dd3181603e0a42c46299c25cede66fdbd67da518.tar.gz
jgit-dd3181603e0a42c46299c25cede66fdbd67da518.zip
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 <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.repository')
-rw-r--r--org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml b/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml
index 703d7d5c58..94914b0ccb 100644
--- a/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml
+++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/pom.xml
@@ -58,6 +58,23 @@
<name>JGit P2 Repository</name>
+ <profiles>
+ <profile>
+ <id>jgit.java7</id>
+ <activation>
+ <jdk>1.7</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jgit</groupId>
+ <artifactId>org.eclipse.jgit.java7</artifactId>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
<dependencies>
<dependency>
<groupId>org.eclipse.jgit</groupId>