本文整理汇总了Java中com.intellij.util.execution.ParametersListUtil.join方法的典型用法代码示例。如果您正苦于以下问题:Java ParametersListUtil.join方法的具体用法?Java ParametersListUtil.join怎么用?Java ParametersListUtil.join使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.execution.ParametersListUtil
的用法示例。
在下文中一共展示了ParametersListUtil.join方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBashCommandsToRunScript
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
/** Appends '--script_path' to blaze flags, then runs 'bash -c blaze build ... && run_script' */
private static List<String> getBashCommandsToRunScript(BlazeCommand.Builder blazeCommand) {
File scriptFile = createTempOutputFile();
blazeCommand.addBlazeFlags("--script_path=" + scriptFile.getPath());
String blaze = ParametersListUtil.join(blazeCommand.build().toList());
return ImmutableList.of("/bin/bash", "-c", blaze + " && " + scriptFile.getPath());
}
示例2: getScriptParams
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
private static String getScriptParams(BlazeCommandRunConfigurationCommonState state) {
List<String> params = Lists.newArrayList(state.getExeFlagsState().getExpandedFlags());
String filterFlag = state.getTestFilterFlag();
if (filterFlag != null) {
params.add(filterFlag.substring((BlazeFlags.TEST_FILTER + "=").length()));
}
return ParametersListUtil.join(params);
}
示例3: getModifierForCommandLine
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
@NotNull
@Override
public NotNullPairFunction<DotNetConfigurationWithCoverage, GeneralCommandLine, GeneralCommandLine> getModifierForCommandLine()
{
return new NotNullPairFunction<DotNetConfigurationWithCoverage, GeneralCommandLine, GeneralCommandLine>()
{
@NotNull
@Override
public GeneralCommandLine fun(DotNetConfigurationWithCoverage t, GeneralCommandLine v)
{
CoverageEnabledConfiguration coverageEnabledConfiguration = DotNetCoverageEnabledConfiguration.get(t);
File openCoverConsoleExecutable = getOpenCoverConsoleExecutable();
GeneralCommandLine newCommandLine = new GeneralCommandLine();
newCommandLine.setExePath(openCoverConsoleExecutable.getPath());
newCommandLine.addParameter("-register:user");
newCommandLine.addParameter("-target:" + v.getExePath());
newCommandLine.addParameter("-filter:+[*]*");
newCommandLine.addParameter("-output:" + coverageEnabledConfiguration.getCoverageFilePath());
String parametersAsString = ParametersListUtil.join(v.getParametersList().getParameters());
if(!StringUtil.isEmpty(parametersAsString))
{
newCommandLine.addParameter("-targetargs:" + parametersAsString + "");
}
return newCommandLine;
}
};
}
示例4: join
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
/**
* @see ParametersListUtil#join(java.util.List)
*/
@NotNull
public static String join(@NotNull final List<String> parameters) {
return ParametersListUtil.join(parameters);
}
示例5: ExternalEnhancerProcessHandler
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
public ExternalEnhancerProcessHandler(Process process, List<String> commandLine, CompileContext context) {
super(process, ParametersListUtil.join(commandLine), null);
myContext = context;
}
示例6: join
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
/**
* @see ParametersListUtil#join(java.util.List)
*/
@Nonnull
public static String join(@Nonnull final List<String> parameters) {
return ParametersListUtil.join(parameters);
}
示例7: setClasspathJarParams
import com.intellij.util.execution.ParametersListUtil; //导入方法依赖的package包/类
private static void setClasspathJarParams(GeneralCommandLine commandLine,
OwnSimpleJavaParameters javaParameters,
ParametersList vmParameters,
Class commandLineWrapper,
boolean dynamicVMOptions,
boolean dynamicParameters) throws CantRunException
{
try
{
Manifest manifest = new Manifest();
manifest.getMainAttributes().putValue("Created-By", ApplicationNamesInfo.getInstance().getFullProductName());
String manifestText = "";
if(dynamicVMOptions)
{
List<String> properties = new ArrayList<>();
for(String param : vmParameters.getList())
{
if(isUserDefinedProperty(param))
{
properties.add(param);
}
else
{
commandLine.addParameter(param);
}
}
manifest.getMainAttributes().putValue("VM-Options", ParametersListUtil.join(properties));
manifestText += "VM-Options: " + ParametersListUtil.join(properties) + "\n";
}
else
{
commandLine.addParameters(vmParameters.getList());
}
appendEncoding(javaParameters, commandLine, vmParameters);
if(dynamicParameters)
{
manifest.getMainAttributes().putValue("Program-Parameters", ParametersListUtil.join(javaParameters.getProgramParametersList().getList()));
manifestText += "Program-Parameters: " + ParametersListUtil.join(javaParameters.getProgramParametersList().getList()) + "\n";
}
boolean notEscape = vmParameters.hasParameter(PROPERTY_DO_NOT_ESCAPE_CLASSPATH_URL);
PathsList path = javaParameters.getClassPath();
File classpathJarFile = CommandLineWrapperUtil.createClasspathJarFile(manifest, path.getPathList(), notEscape);
String jarFilePath = classpathJarFile.getAbsolutePath();
commandLine.addParameter("-classpath");
if(dynamicVMOptions || dynamicParameters)
{
commandLine.addParameter(PathUtil.getJarPathForClass(commandLineWrapper) + File.pathSeparator + jarFilePath);
commandLine.addParameter(commandLineWrapper.getName());
}
commandLine.addParameter(jarFilePath);
commandLine.putUserData(COMMAND_LINE_CONTENT, ContainerUtil.stringMap(jarFilePath, manifestText + "Class-Path: " + path.getPathsString()));
OSProcessHandler.deleteFileOnTermination(commandLine, classpathJarFile);
}
catch(IOException e)
{
throwUnableToCreateTempFile(e);
}
}