Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Jury2013-02-28 21:16:22 +0000
committerRoberto E. Escobar2013-02-28 21:16:22 +0000
commit5508b58070bd2ed782e268b188fc1b63bb1a68a0 (patch)
treeb764d03f4b2a60a18d6a0f0074117d9d09f45457 /plugins
parent1d83c90b499743a92534f55fb88bca59ecad18e0 (diff)
downloadorg.eclipse.osee-5508b58070bd2ed782e268b188fc1b63bb1a68a0.tar.gz
org.eclipse.osee-5508b58070bd2ed782e268b188fc1b63bb1a68a0.tar.xz
org.eclipse.osee-5508b58070bd2ed782e268b188fc1b63bb1a68a0.zip
feature[ats_03ZG1]: Update OTE SVN connector for svnkit 1.7
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/config/ScriptVersionConfig.java22
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/models/ScriptModel.java2
-rw-r--r--plugins/org.eclipse.osee.ote.version.git/OSGI-INF/GITFileVersionInformationComponent.xml2
-rw-r--r--plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitFileVersion.java2
-rw-r--r--plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitVersionProvider.java13
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/META-INF/MANIFEST.MF6
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/OSGI-INF/svnFileVersionInformationComponent.xml3
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java74
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnFileVersion.java5
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnVersionProvider.java65
-rw-r--r--plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersion.java2
-rw-r--r--plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformation.java2
-rw-r--r--plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformationProvider.java1
-rw-r--r--plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/DefaultFileVersion.java2
-rw-r--r--plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/FileVersionInformationImpl.java12
15 files changed, 139 insertions, 74 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/config/ScriptVersionConfig.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/config/ScriptVersionConfig.java
index 73fe0bfe65..2905ea307e 100644
--- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/config/ScriptVersionConfig.java
+++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/config/ScriptVersionConfig.java
@@ -24,7 +24,7 @@ public class ScriptVersionConfig implements Xmlizable, XmlizableStream, Serializ
private static final long serialVersionUID = -4021198751318075600L;
private String repositoryType;
private String location;
- private String revision;
+ private String lastChangedRevision;
private String lastAuthor;
private String lastModificationDate;
private String modifiedFlag;
@@ -32,16 +32,16 @@ public class ScriptVersionConfig implements Xmlizable, XmlizableStream, Serializ
public ScriptVersionConfig() {
repositoryType = "UNKNOWN";
location = "-";
- revision = "-";
+ lastChangedRevision = "-";
lastAuthor = "-";
lastModificationDate = "-";
modifiedFlag = "-";
}
- public ScriptVersionConfig(String repositoryType, String location, String revision, String lastAuthor, String lastModificationDate, String modifiedFlag) {
+ public ScriptVersionConfig(String repositoryType, String location, String lastChangedRevision, String lastAuthor, String lastModificationDate, String modifiedFlag) {
this.repositoryType = repositoryType;
this.location = location;
- this.revision = revision;
+ this.lastChangedRevision = lastChangedRevision;
this.lastAuthor = lastAuthor;
this.lastModificationDate = lastModificationDate;
this.modifiedFlag = modifiedFlag;
@@ -78,15 +78,15 @@ public class ScriptVersionConfig implements Xmlizable, XmlizableStream, Serializ
/**
* @return the revision
*/
- public String getRevision() {
- return revision;
+ public String getLastChangedRevision() {
+ return lastChangedRevision;
}
/**
- * @param revision the revision to set
+ * @param lastChangedRevision the revision to set
*/
- public void setRevision(String revision) {
- this.revision = revision;
+ public void setLastChangedRevision(String lastChangedRevision) {
+ this.lastChangedRevision = lastChangedRevision;
}
/**
@@ -134,7 +134,7 @@ public class ScriptVersionConfig implements Xmlizable, XmlizableStream, Serializ
@Override
public Element toXml(Document doc) {
Element scriptVersion = doc.createElement(BaseTestTags.SCRIPT_VERSION);
- scriptVersion.setAttribute(BaseTestTags.REVISION_FIELD, getRevision());
+ scriptVersion.setAttribute(BaseTestTags.REVISION_FIELD, getLastChangedRevision());
scriptVersion.setAttribute(BaseTestTags.REPOSITORY_TYPE, getRepositoryType());
scriptVersion.setAttribute(BaseTestTags.LAST_AUTHOR_FIELD, getLastAuthor());
scriptVersion.setAttribute(BaseTestTags.LAST_MODIFIED, getLastModificationDate());
@@ -146,7 +146,7 @@ public class ScriptVersionConfig implements Xmlizable, XmlizableStream, Serializ
@Override
public void toXml(XMLStreamWriter writer) throws XMLStreamException {
writer.writeStartElement(BaseTestTags.SCRIPT_VERSION);
- writer.writeAttribute(BaseTestTags.REVISION_FIELD, getRevision());
+ writer.writeAttribute(BaseTestTags.REVISION_FIELD, getLastChangedRevision());
writer.writeAttribute(BaseTestTags.REPOSITORY_TYPE, getRepositoryType());
writer.writeAttribute(BaseTestTags.LAST_AUTHOR_FIELD, getLastAuthor());
writer.writeAttribute(BaseTestTags.LAST_MODIFIED, getLastModificationDate());
diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/models/ScriptModel.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/models/ScriptModel.java
index dc716e27b2..56c396b21b 100644
--- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/models/ScriptModel.java
+++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/models/ScriptModel.java
@@ -43,7 +43,7 @@ public class ScriptModel extends FileModel {
public ScriptVersionConfig getVersionInfo(FileVersion version) {
ScriptVersionConfig scriptVersion = new ScriptVersionConfig();
if (version != null) {
- scriptVersion.setRevision(version.getVersion());
+ scriptVersion.setLastChangedRevision(version.getLastChangedRevision());
scriptVersion.setLocation(version.getURL());
scriptVersion.setRepositoryType(version.getVersionControlSystem());
scriptVersion.setLastAuthor(version.getLastAuthor());
diff --git a/plugins/org.eclipse.osee.ote.version.git/OSGI-INF/GITFileVersionInformationComponent.xml b/plugins/org.eclipse.osee.ote.version.git/OSGI-INF/GITFileVersionInformationComponent.xml
index e978e2b162..e03193d0fc 100644
--- a/plugins/org.eclipse.osee.ote.version.git/OSGI-INF/GITFileVersionInformationComponent.xml
+++ b/plugins/org.eclipse.osee.ote.version.git/OSGI-INF/GITFileVersionInformationComponent.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.eclipse.osee.ote.version.git.fileProvider">
+<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="false" name="org.eclipse.osee.ote.version.git.fileProvider">
<implementation class="org.eclipse.osee.ote.version.git.GitVersionProvider"/>
<service>
<provide interface="org.eclipse.osee.ote.version.FileVersionInformationProvider"/>
diff --git a/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitFileVersion.java b/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitFileVersion.java
index 5ab0649ecc..5434bc06f0 100644
--- a/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitFileVersion.java
+++ b/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitFileVersion.java
@@ -34,7 +34,7 @@ public class GitFileVersion implements FileVersion {
}
@Override
- public String getVersion() {
+ public String getLastChangedRevision() {
return commit.getId().getName();
}
diff --git a/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitVersionProvider.java b/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitVersionProvider.java
index c2e8b70639..1f84b76888 100644
--- a/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitVersionProvider.java
+++ b/plugins/org.eclipse.osee.ote.version.git/src/org/eclipse/osee/ote/version/git/GitVersionProvider.java
@@ -15,7 +15,6 @@ import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
-
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.NoHeadException;
import org.eclipse.jgit.revwalk.RevCommit;
@@ -24,18 +23,6 @@ import org.eclipse.osee.ote.version.FileVersionInformationProvider;
public class GitVersionProvider implements FileVersionInformationProvider {
-
- @Override
- public FileVersion getFileVersion(File file) {
- try {
- return new GitFileVersion(new GitVersion(file));
- } catch (NoHeadException e) {
- } catch (IOException e) {
- } catch (GitAPIException e) {
- }
- return null;
- }
-
@Override
public void getFileVersions(List<File> files, Map<File, FileVersion> versions) {
GitVersions gitVersions = new GitVersions(files);
diff --git a/plugins/org.eclipse.osee.ote.version.svn/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.ote.version.svn/META-INF/MANIFEST.MF
index 741f2b5b05..cf9498674e 100644
--- a/plugins/org.eclipse.osee.ote.version.svn/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.ote.version.svn/META-INF/MANIFEST.MF
@@ -6,8 +6,12 @@ Bundle-Version: 0.11.0.qualifier
Require-Bundle: org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Import-Package: org.eclipse.osee.framework.logging,
+Import-Package: org.eclipse.core.resources,
+ org.eclipse.osee.framework.logging,
org.eclipse.osee.ote.version,
org.eclipse.team.svn.core.connector,
+ org.eclipse.team.svn.core.extension,
+ org.eclipse.team.svn.core.extension.factory,
+ org.eclipse.team.svn.core.operation,
org.eclipse.team.svn.core.utility
Service-Component: OSGI-INF/*.xml
diff --git a/plugins/org.eclipse.osee.ote.version.svn/OSGI-INF/svnFileVersionInformationComponent.xml b/plugins/org.eclipse.osee.ote.version.svn/OSGI-INF/svnFileVersionInformationComponent.xml
index 28dd1e8962..440f600cf9 100644
--- a/plugins/org.eclipse.osee.ote.version.svn/OSGI-INF/svnFileVersionInformationComponent.xml
+++ b/plugins/org.eclipse.osee.ote.version.svn/OSGI-INF/svnFileVersionInformationComponent.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.eclipse.osee.ote.version.svn">
+<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="false" name="org.eclipse.osee.ote.version.svn">
<implementation class="org.eclipse.osee.ote.version.svn.SvnVersionProvider"/>
<service>
<provide interface="org.eclipse.osee.ote.version.FileVersionInformationProvider"/>
</service>
+ <reference cardinality="1..1" interface="org.eclipse.core.resources.IWorkspace" name="IWorkspace" policy="static"/>
</scr:component>
diff --git a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java
new file mode 100644
index 0000000000..8fc58cb58d
--- /dev/null
+++ b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java
@@ -0,0 +1,74 @@
+/*
+ * Created on Feb 27, 2013
+ *
+ * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
+ */
+package org.eclipse.osee.ote.version.svn;
+
+import java.io.File;
+import java.net.URI;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.team.svn.core.utility.SVNUtility;
+
+public class ScriptToProject {
+
+ private final Map<String, Set<String>> projectsScriptsMap = new HashMap<String, Set<String>>();
+ private final Map<String, File> scriptNameToScriptFileMap = new HashMap<String, File>();
+ private final IProject[] workspaceProjects;
+
+ public ScriptToProject(IProject[] workspaceProjects) {
+ this.workspaceProjects = workspaceProjects;
+ }
+
+ public void add(File scriptFile) {
+ String scriptName = scriptFile.getName();
+ IProject scriptProject = null;
+
+ for(IProject project:workspaceProjects){
+ String projectName = project.getName();
+ if(scriptFile.toString().contains(projectName)){
+ scriptProject = project;
+ }
+ }
+
+ URI scriptProjectLocationUri = scriptProject.getLocationURI();
+ File scriptProjectFile = new File(scriptProjectLocationUri);
+
+ if (isSvn(scriptProjectFile)) {
+ String scriptProjectLocation = scriptProjectFile.getAbsolutePath();
+ addScriptListValue(scriptProjectLocation, scriptName);
+ scriptNameToScriptFileMap.put(scriptName, scriptFile);
+ }
+ }
+
+ public Set<String> getProjectsSet() {
+ return projectsScriptsMap.keySet();
+ }
+
+ public void addScriptListValue(String key, String value) {
+ Set<String> values = projectsScriptsMap.get(key);
+ if (values == null) {
+ values = new HashSet<String>();
+ projectsScriptsMap.put(key, values);
+ }
+ values.add(value);
+ }
+
+ public File getScriptFileMatch(String project, String itemToMatch) {
+ Set<String> scriptsForProject = projectsScriptsMap.get(project);
+ if(scriptsForProject.contains(itemToMatch)){
+ return scriptNameToScriptFileMap.get(itemToMatch);
+ } else {
+ return null;
+ }
+ }
+
+ protected boolean isSvn(File file) {
+ File svn = new File(file, SVNUtility.getSVNFolderName());
+ return svn.exists();
+ }
+}
diff --git a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnFileVersion.java b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnFileVersion.java
index 99d42d6070..81f3e75e7e 100644
--- a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnFileVersion.java
+++ b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnFileVersion.java
@@ -13,7 +13,6 @@ package org.eclipse.osee.ote.version.svn;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
-
import org.eclipse.osee.ote.version.FileVersion;
import org.eclipse.team.svn.core.connector.SVNEntryInfo;
@@ -29,8 +28,8 @@ public class SvnFileVersion implements FileVersion {
}
@Override
- public String getVersion() {
- return Long.toString(entry.revision);
+ public String getLastChangedRevision() {
+ return Long.toString(entry.lastChangedRevision);
}
@Override
diff --git a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnVersionProvider.java b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnVersionProvider.java
index e83231cdf0..1ba11c734c 100644
--- a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnVersionProvider.java
+++ b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/SvnVersionProvider.java
@@ -13,39 +13,54 @@ package org.eclipse.osee.ote.version.svn;
import java.io.File;
import java.util.List;
import java.util.Map;
-
+import java.util.logging.Level;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.ote.version.FileVersion;
import org.eclipse.osee.ote.version.FileVersionInformationProvider;
+import org.eclipse.team.svn.core.connector.ISVNConnector;
+import org.eclipse.team.svn.core.connector.ISVNConnector.Depth;
import org.eclipse.team.svn.core.connector.SVNEntryInfo;
+import org.eclipse.team.svn.core.connector.SVNEntryRevisionReference;
+import org.eclipse.team.svn.core.extension.CoreExtensionsManager;
+import org.eclipse.team.svn.core.operation.SVNNullProgressMonitor;
import org.eclipse.team.svn.core.utility.SVNUtility;
public class SvnVersionProvider implements FileVersionInformationProvider {
- @Override
- public FileVersion getFileVersion(File file) {
- if (isSvn(file)) {
- SVNEntryInfo entry = SVNUtility.getSVNInfo(file);
- if(entry != null){
- return new SvnFileVersion(entry);
- }
- }
- return null;
- }
-
- protected boolean isSvn(File file) {
- File svn = new File(file.getParentFile(), SVNUtility.getSVNFolderName());
- return svn.exists();
- }
+ protected boolean isSvn(File file) {
+ File svn = new File(file, SVNUtility.getSVNFolderName());
+ return svn.exists();
+ }
+
+ @Override
+ public void getFileVersions(List<File> scriptFiles, Map<File, FileVersion> versions) {
- @Override
- public void getFileVersions(List<File> files, Map<File, FileVersion> versions) {
- for(File file:files){
- FileVersion version = getFileVersion(file);
- if(version != null){
- versions.put(file, version);
- }
- }
- }
+ IProject[] workspaceProjects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ ScriptToProject collection = new ScriptToProject(workspaceProjects);
+
+ for(File scriptFile:scriptFiles){
+ collection.add(scriptFile);
+ }
+ ISVNConnector proxy = CoreExtensionsManager.instance().getSVNConnectorFactory().newInstance();
+ for (String projectName : collection.getProjectsSet()) {
+ try {
+ SVNEntryInfo []st = SVNUtility.info(proxy, new SVNEntryRevisionReference(projectName), Depth.INFINITY, new SVNNullProgressMonitor());
+ for (SVNEntryInfo entry : st) {
+ String svnEntryPath = entry.path;
+ String itemToMatch = svnEntryPath.substring(svnEntryPath.lastIndexOf("/") + 1);
+ File scriptFile = collection.getScriptFileMatch(projectName, itemToMatch);
+ if(scriptFile != null){
+ versions.put(scriptFile, new SvnFileVersion(entry));
+ }
+ }
+ }
+ catch (Exception ex) {
+ OseeLog.logf(getClass(), Level.SEVERE, "SVNConnectorException while retrieving script SVN info ", ex);
+ }
+ }
+ }
}
diff --git a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersion.java b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersion.java
index d82f7caa2a..64fcb22915 100644
--- a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersion.java
+++ b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersion.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.ote.version;
public interface FileVersion {
- String getVersion();
+ String getLastChangedRevision();
String getURL();
String getVersionControlSystem();
String getModifiedFlag();
diff --git a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformation.java b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformation.java
index 0001054b38..3611fe1b8c 100644
--- a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformation.java
+++ b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformation.java
@@ -16,8 +16,6 @@ import java.util.Map;
public interface FileVersionInformation {
- FileVersion getFileVersion(File file);
-
Map<File, FileVersion> getFileVersions(List<File> files);
}
diff --git a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformationProvider.java b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformationProvider.java
index 4879e1658a..1ec6ad8d55 100644
--- a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformationProvider.java
+++ b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/FileVersionInformationProvider.java
@@ -15,6 +15,5 @@ import java.util.List;
import java.util.Map;
public interface FileVersionInformationProvider {
- FileVersion getFileVersion(File file);
void getFileVersions(List<File> files, Map<File, FileVersion> versions);
}
diff --git a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/DefaultFileVersion.java b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/DefaultFileVersion.java
index 2cfe32bee1..67821ba2e7 100644
--- a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/DefaultFileVersion.java
+++ b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/DefaultFileVersion.java
@@ -35,7 +35,7 @@ public class DefaultFileVersion implements FileVersion {
}
@Override
- public String getVersion() {
+ public String getLastChangedRevision() {
return "N/A";
}
diff --git a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/FileVersionInformationImpl.java b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/FileVersionInformationImpl.java
index fd8bc0c961..bc7bedf836 100644
--- a/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/FileVersionInformationImpl.java
+++ b/plugins/org.eclipse.osee.ote.version/src/org/eclipse/osee/ote/version/internal/FileVersionInformationImpl.java
@@ -38,18 +38,6 @@ public class FileVersionInformationImpl implements FileVersionInformation {
}
@Override
- public FileVersion getFileVersion(File file) {
- FileVersion version = null;
- for(FileVersionInformationProvider provider:providers){
- version = provider.getFileVersion(file);
- if(version != null){
- return version;
- }
- }
- return new DefaultFileVersion(file);
- }
-
- @Override
public Map<File, FileVersion> getFileVersions(List<File> files) {
Map<File, FileVersion> versions = new HashMap<File, FileVersion>(files.size());
for(File file:files){

Back to the top