当前位置: 首页>>代码示例>>Java>>正文


Java ParametersListUtil.join方法代码示例

本文整理汇总了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());
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:8,代码来源:BlazeJavaRunProfileState.java

示例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);
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:9,代码来源:BlazePyRunConfigurationRunner.java

示例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;
		}
	};
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:31,代码来源:OpenCoverCoverageRunner.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ParametersList.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AppEngineEnhancerBuilder.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ParametersList.java

示例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);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:66,代码来源:OwnJdkUtil.java


注:本文中的com.intellij.util.execution.ParametersListUtil.join方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。