Skip to content

Commit 6b4f9d1

Browse files
vogellaakurtakov
authored andcommitted
Bug 576097 - Remove special CVS handling from API tests
Change-Id: Ie158332d9ada18dd5ccf056a53c8b7a790cf6965 Signed-off-by: Lars Vogel <[email protected]> Reviewed-on: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/188324 Tested-by: PDE Bot <[email protected]> Reviewed-by: Alexander Kurtakov <[email protected]>
1 parent 89a8963 commit 6b4f9d1

File tree

4 files changed

+3
-28
lines changed

4 files changed

+3
-28
lines changed

apitools/org.eclipse.pde.api.tools.tests/API Tools Plugin Test Suite.launch

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@
257257
<mapEntry key="org.eclipse.team.core/refreshjob" value="false"/>
258258
<mapEntry key="org.eclipse.team.core/streams" value="false"/>
259259
<mapEntry key="org.eclipse.team.core/threading" value="false"/>
260-
<mapEntry key="org.eclipse.team.cvs.core/cvsprotocol" value="true"/>
261-
<mapEntry key="org.eclipse.team.cvs.core/debug" value="false"/>
262-
<mapEntry key="org.eclipse.team.cvs.core/dirtycaching" value="false"/>
263-
<mapEntry key="org.eclipse.team.cvs.core/metafiles" value="false"/>
264-
<mapEntry key="org.eclipse.team.cvs.core/syncchangeevents" value="false"/>
265-
<mapEntry key="org.eclipse.team.cvs.core/threading" value="false"/>
266260
<mapEntry key="org.eclipse.ui.browser/debug" value="false"/>
267261
<mapEntry key="org.eclipse.ui.ide/debug" value="false"/>
268262
<mapEntry key="org.eclipse.ui.ide/debug/gc" value="false"/>

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/ApiBuilderTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.util.Arrays;
2626
import java.util.Enumeration;
2727
import java.util.Hashtable;
28-
import java.util.Iterator;
2928
import java.util.List;
3029

3130
import org.eclipse.core.resources.IFile;
@@ -327,7 +326,7 @@ protected void createExistingProjects(String projectsdir, boolean buildimmediate
327326
assertTrue("Test data directory does not exist: " + path.toOSString(), dir.exists()); //$NON-NLS-1$
328327
File[] files = dir.listFiles();
329328
for (File file : files) {
330-
if (file.isDirectory() && !file.getName().equals("CVS")) { //$NON-NLS-1$
329+
if (file.isDirectory()) {
331330
createExistingProject(file, importfiles, usetestcompliance);
332331
}
333332
}
@@ -412,11 +411,7 @@ protected void createExistingProject(File projectDir, boolean importfiles, boole
412411
// import operation to import project files
413412
File importSource = new File(locationURI);
414413
List<?> filesToImport = FileSystemStructureProvider.INSTANCE.getChildren(importSource);
415-
for (Iterator<?> iterator = filesToImport.iterator(); iterator.hasNext();) {
416-
if (((File) iterator.next()).getName().equals("CVS")) { //$NON-NLS-1$
417-
iterator.remove();
418-
}
419-
}
414+
420415
ImportOperation operation = new ImportOperation(project.getFullPath(), importSource, FileSystemStructureProvider.INSTANCE, pathString -> IOverwriteQuery.ALL, filesToImport);
421416
operation.setOverwriteResources(true);
422417
operation.setCreateContainerStructure(false);

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/model/tests/TestSuiteHelper.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2007, 2017 IBM Corporation and others.
2+
* Copyright (c) 2007, 2021 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -339,14 +339,11 @@ public static IApiBaseline createTestingBaseline(String baselineid, IPath testDi
339339
List<IApiComponent> components = new ArrayList<>();
340340
Set<String> requiredComponents = new HashSet<>();
341341
for (File bundle : files) {
342-
if (!bundle.getName().equals("CVS")) { //$NON-NLS-1$
343-
// ignore CVS folder
344342
IApiComponent component = ApiModelFactory.newApiComponent(baseline, bundle.getAbsolutePath());
345343
if (component != null) {
346344
components.add(component);
347345
requiredComponents.add(component.getSymbolicName());
348346
}
349-
}
350347
}
351348
// collect required components
352349
IApiComponent[] base = components.toArray(new IApiComponent[components.size()]);
@@ -644,17 +641,10 @@ public static void copy(File file, File dest) {
644641
private static void copy0(File f, File dest) {
645642
dest.mkdirs();
646643
if (f.isDirectory()) {
647-
String dirName = f.getName();
648-
if ("CVS".equals(dirName)) { //$NON-NLS-1$
649-
return;
650-
}
651644
File[] files = f.listFiles();
652645
for (File file : files) {
653646
if (file.isDirectory()) {
654647
String name = file.getName();
655-
if ("CVS".equals(name)) { //$NON-NLS-1$
656-
continue;
657-
}
658648
copy0(new File(f, name), new File(dest, name));
659649
} else {
660650
copy0(file, dest);

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/util/tests/UtilTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@ public IReferenceCollection getExternalDependencies() {
485485
"org.eclipse.ecf.provider.filetransfer", //$NON-NLS-1$
486486
"org.eclipse.equinox.preferences", //$NON-NLS-1$
487487
"org.eclipse.equinox.p2.reconciler.dropins", //$NON-NLS-1$
488-
"org.eclipse.team.cvs.ui", //$NON-NLS-1$
489488
"org.eclipse.equinox.p2.metadata.generator", //$NON-NLS-1$
490489
"org.eclipse.equinox.registry", //$NON-NLS-1$
491490
"org.eclipse.swt", //$NON-NLS-1$
@@ -530,7 +529,6 @@ public IReferenceCollection getExternalDependencies() {
530529
"org.eclipse.core.resources", //$NON-NLS-1$
531530
"org.eclipse.pde.launching", //$NON-NLS-1$
532531
"org.eclipse.ui.externaltools", //$NON-NLS-1$
533-
"org.eclipse.cvs", //$NON-NLS-1$
534532
"org.eclipse.equinox.p2.repository", //$NON-NLS-1$
535533
"org.eclipse.core.resources.win32.x86", //$NON-NLS-1$
536534
"org.eclipse.pde.ui", //$NON-NLS-1$
@@ -575,7 +573,6 @@ public IReferenceCollection getExternalDependencies() {
575573
"org.eclipse.core.filesystem", //$NON-NLS-1$
576574
"org.eclipse.jdt.junit.core", //$NON-NLS-1$
577575
"org.eclipse.jdt.junit.runtime", //$NON-NLS-1$
578-
"org.eclipse.team.cvs.ssh2", //$NON-NLS-1$
579576
"org.eclipse.core.variables", //$NON-NLS-1$
580577
"org.eclipse.platform.doc.user", //$NON-NLS-1$
581578
"org.eclipse.equinox.p2.operations", //$NON-NLS-1$
@@ -585,7 +582,6 @@ public IReferenceCollection getExternalDependencies() {
585582
"org.eclipse.equinox.p2.metadata.repository", //$NON-NLS-1$
586583
"org.eclipse.pde.ds.core", //$NON-NLS-1$
587584
"org.eclipse.jdt.apt.pluggable.core", //$NON-NLS-1$
588-
"org.eclipse.team.cvs.core", //$NON-NLS-1$
589585
"org.mortbay.jetty.server", //$NON-NLS-1$
590586
"org.eclipse.text", //$NON-NLS-1$
591587
"org.eclipse.jdt.compiler.apt", //$NON-NLS-1$

0 commit comments

Comments
 (0)