summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/pom.xml
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.pgm/pom.xml
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.pgm/pom.xml')
-rw-r--r--org.eclipse.jgit.pgm/pom.xml21
1 files changed, 20 insertions, 1 deletions
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,11 +93,30 @@
<profile>
<id>java6</id>
<activation>
- <activeByDefault>true</activeByDefault>
+ <jdk>1.6</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jgit</groupId>
+ <artifactId>org.eclipse.jgit.console</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>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>
+ <dependency>
+ <groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit.console</artifactId>
<version>${project.version}</version>
</dependency>