Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2013-12-17 22:30:25 +0000
committerGerrit Code Review @ Eclipse.org2013-12-18 15:26:26 +0000
commit59a104e254f2200dc7fa951ca8b105961cc246c7 (patch)
tree351daf77ad80e12f6d5496b235e95a2db70b44ca /plugins
parent9280acfb410ed77d5770a7817c66b08bb317b15f (diff)
downloadorg.eclipse.osee-59a104e254f2200dc7fa951ca8b105961cc246c7.tar.gz
org.eclipse.osee-59a104e254f2200dc7fa951ca8b105961cc246c7.tar.xz
org.eclipse.osee-59a104e254f2200dc7fa951ca8b105961cc246c7.zip
refactor: Removed unused MultipleLinks
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/MultipleLinks.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/MultipleLinks.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/MultipleLinks.java
deleted file mode 100644
index b23461f23b..0000000000
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/MultipleLinks.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.jdk.core.util.io;
-
-import java.io.File;
-import java.io.IOException;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-
-/**
- * @author Ryan D. Brooks
- */
-public class MultipleLinks {
-
- public static void main(String[] args) throws IOException {
- if (args.length < 3) {
- System.out.println("Usage: java tc.MultipleLinks <file to link> <directory for links> <# of links>");
- return;
- }
- link(new File(args[0]), new File(args[1]), Integer.parseInt(args[2]));
- }
-
- public static void link(File fileToLink, File directory, int linkCount) throws IOException {
- if (!fileToLink.isFile()) {
- throw new IllegalArgumentException(fileToLink + " is not a file.");
- }
-
- fileToLink = fileToLink.getCanonicalFile();
- directory = directory.getCanonicalFile();
- if (directory.mkdir()) {
- System.out.println("Created " + directory);
- }
-
- //separate exstension and file name
- String fileName = fileToLink.getName();
- String extension = "";
- int pos = fileName.lastIndexOf('.');
- if (pos != -1) {
- extension = fileName.substring(pos);
- }
- fileName = Lib.removeExtension(fileToLink.getName());
-
- String command = "ln -s " + fileToLink.getPath() + " " + directory.getPath() + File.separator + fileName;
- for (int i = 0; i < linkCount; i++) {
- Lib.handleProcess(Runtime.getRuntime().exec(command + i + extension));
- }
- }
-} \ No newline at end of file

Back to the top