Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import jakarta.inject.Singleton;
import org.jetbrains.git4idea.rt.ssh.GitSSHHandler;
import org.jetbrains.git4idea.rt.ssh.SSHMain;
import org.jetbrains.git4idea.rt.ssh.SSHMainBundle;
import org.jetbrains.git4idea.util.ScriptGenerator;

import java.util.UUID;
Expand All @@ -47,7 +46,6 @@ public class GitXmlRpcSshService extends GitXmlRpcHandlerService<GitSSHGUIHandle
@Override
protected void customizeScriptGenerator(@Nonnull ScriptGenerator generator) {
generator.addClasses(KnownHosts.class);
generator.addResource(SSHMainBundle.class, "/org/jetbrains/git4idea/ssh/SSHMainBundle.properties");
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import consulo.platform.Platform;
import consulo.util.collection.ContainerUtil;
import consulo.util.io.ClassPathUtil;
import consulo.util.io.FileUtil;
import consulo.util.io.NioFiles;
import consulo.util.io.URLUtil;
Expand Down Expand Up @@ -124,18 +123,6 @@ private void addPath(String path) {
}
}

/**
* Add source for the specified resource
*
* @param base the resource base
* @param resource the resource name
* @return this script generator
*/
public ScriptGenerator addResource(Class base, String resource) {
addPath(getJarForResource(base, resource));
return this;
}

/**
* Add internal parameters for the script
*
Expand Down Expand Up @@ -199,17 +186,4 @@ public String commandLine() {
}
return line;
}

/**
* Get path for resources.jar
*
* @param context a context class
* @param res a resource
* @return a path to classpath entry
*/
@SuppressWarnings({"SameParameterValue"})
public static String getJarForResource(Class context, String res) {
String resourceRoot = ClassPathUtil.getResourceRoot(context, res);
return new File(resourceRoot).getAbsoluteFile().getAbsolutePath();
}
}
Loading