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


Java EnvironmentVariablesComponent.readExternal方法代码示例

本文整理汇总了Java中com.intellij.execution.configuration.EnvironmentVariablesComponent.readExternal方法的典型用法代码示例。如果您正苦于以下问题:Java EnvironmentVariablesComponent.readExternal方法的具体用法?Java EnvironmentVariablesComponent.readExternal怎么用?Java EnvironmentVariablesComponent.readExternal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.execution.configuration.EnvironmentVariablesComponent的用法示例。


在下文中一共展示了EnvironmentVariablesComponent.readExternal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    PathMacroManager.getInstance(getProject()).expandPaths(element);
    super.readExternal(element);

    DefaultJDOMExternalizer.readExternal(this, element);
    readModule(element);
    EnvironmentVariablesComponent.readExternal(element, getEnvs());

    // common config
    workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY");

    String parentEnvValue = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
    if (parentEnvValue != null) {
        setPassParentEnvs(Boolean.parseBoolean(parentEnvValue));
    }

    // run config
    scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");
    setProgramParameters(JDOMExternalizerUtil.readField(element, "PARAMETERS"));
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:22,代码来源:SquirrelRunConfiguration.java

示例2: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    super.readExternal(element);

    // common config
    interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
    interpreterPath = JDOMExternalizerUtil.readField(element, "INTERPRETER_PATH");
    if (getProject().getBasePath() != null)
        workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY", getProject().getBasePath());
    
    String str = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
    if (str != null) {
        passParentEnvs = Boolean.parseBoolean(str);
    }
    str = JDOMExternalizerUtil.readField(element, "ALTERNATE_INTERPRETER");
    if (str != null) {
        overrideSDK = Boolean.parseBoolean(str);
    }
    EnvironmentVariablesComponent.readExternal(element, envs);

    // ???
    getConfigurationModule().readExternal(element);

    // run config
    scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");

    scriptParameters = JDOMExternalizerUtil.readField(element, "PARAMETERS");
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:29,代码来源:LuaRunConfiguration.java

示例3: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    super.readExternal(element);
    // Reads the conf file into this class

    String locations = JDOMExternalizerUtil.readField(element, MODULES_FIELD);
    if (locations != null) {
        tomcatModules = (Modules) GSON.fromJson(locations, Modules.class);
    }
    this.tomcatInstallation = JDOMExternalizerUtil.readField(element, TOMCAT_PATH_FIELD);
    this.vmArgs = JDOMExternalizerUtil.readField(element, VM_ARGS_FIELD);
    String passParentEnvironmentVariablesValue = JDOMExternalizerUtil.readField(element, PASS_PARENT_ENV_VARS_FIELD);
    this.passParentEnvironmentVariables = Boolean.valueOf(passParentEnvironmentVariablesValue);
    EnvironmentVariablesComponent.readExternal(element, this.environmentVariables);
}
 
开发者ID:vitorzachi,项目名称:tomcat-runner,代码行数:16,代码来源:TomcatRunnerConfiguration.java

示例4: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
  XmlSerializer.deserializeInto(myBean, element);
  EnvironmentVariablesComponent.readExternal(element, getEnvs());
  myConfigurationModule.readExternal(element);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:JarApplicationConfiguration.java

示例5: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(final Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
  DefaultJDOMExternalizer.readExternal(this, element);
  readModule(element);
  EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ApplicationConfiguration.java

示例6: readEnvs

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
protected void readEnvs(Element element) {
  final String parentEnvs = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
  if (parentEnvs != null) {
    setPassParentEnvs(Boolean.parseBoolean(parentEnvs));
  }
  EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:AbstractPythonRunConfiguration.java

示例7: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    PathMacroManager.getInstance(getProject()).expandPaths(element);
    super.readExternal(element);

    DefaultJDOMExternalizer.readExternal(this, element);
    readModule(element);
    EnvironmentVariablesComponent.readExternal(element, getEnvs());

    interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
    interpreterName = JDOMExternalizerUtil.readField(element, "INTERPRETER_NAME");
    programName = JDOMExternalizerUtil.readField(element, "PROGRAM_NAME");
    setProgramParameters(JDOMExternalizerUtil.readField(element, "PROGRAM_PARAMETERS"));
}
 
开发者ID:d0as8,项目名称:PerlRun,代码行数:15,代码来源:Config.java

示例8: readEnvs

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
private void readEnvs(@NotNull final Element element) {
  setPassParentEnvs(
    Boolean.parseBoolean(
      JDOMExternalizerUtil.readField(element, PASS_PARENT_ENVS, "")
    )
  );

  EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:10,代码来源:TheRRunConfiguration.java

示例9: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
  DefaultJDOMExternalizer.readExternal(this, element);
  readModule(element);
  EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:ApplicationConfiguration.java

示例10: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
  readModule(element);
  DefaultJDOMExternalizer.readExternal(this, element);
  DefaultJDOMExternalizer.readExternal(getPersistentData(), element);
  EnvironmentVariablesComponent.readExternal(element, getPersistentData().getEnvs());
  final Element patternsElement = element.getChild(PATTERNS_EL_NAME);
  if (patternsElement != null) {
    final Set<String> tests = new LinkedHashSet<String>();
    for (Object o : patternsElement.getChildren(PATTERN_EL_NAME)) {
      Element patternElement = (Element)o;
      tests.add(patternElement.getAttributeValue(TEST_CLASS_ATT_NAME));
    }
    myData.setPatterns(tests);
  }
  final Element forkModeElement = element.getChild("fork_mode");
  if (forkModeElement != null) {
    final String mode = forkModeElement.getAttributeValue("value");
    if (mode != null) {
      setForkMode(mode);
    }
  }
  final Element dirNameElement = element.getChild("dir");
  if (dirNameElement != null) {
    final String dirName = dirNameElement.getAttributeValue("value");
    getPersistentData().setDirName(FileUtil.toSystemDependentName(dirName));
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:31,代码来源:JUnitConfiguration.java

示例11: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    super.readExternal(element);
    // Reads the conf file into this class
    this.webappPaths = JDOMExternalizerUtil.readField(element, WEBAPP_PATH_FIELD);
    this.webappFolders = JDOMExternalizerUtil.readField(element, WEBAPP_FOLDER_FIELD);
    this.classesDirectories = JDOMExternalizerUtil.readField(element, CLASSES_DIRECTORY_FIELD);
    this.runningOnPort = JDOMExternalizerUtil.readField(element, RUN_PORT_FIELD);
    this.jettyXml = JDOMExternalizerUtil.readField(element, JETTY_XML_FIELD);
    this.vmArgs = JDOMExternalizerUtil.readField(element, VM_ARGS_FIELD);
    String passParentEnvironmentVariablesValue = JDOMExternalizerUtil.readField(element, PASS_PARENT_ENV_VARS_FIELD);
    this.passParentEnvironmentVariables = Boolean.valueOf(passParentEnvironmentVariablesValue);
    EnvironmentVariablesComponent.readExternal(element, this.environmentVariables);
}
 
开发者ID:guikeller,项目名称:jetty-runner,代码行数:15,代码来源:JettyRunnerConfiguration.java

示例12: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException
{
	super.readExternal(element);

	// common config
	interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
	interpreterPath = JDOMExternalizerUtil.readField(element, "INTERPRETER_PATH");
	workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY", getProject().getBasePath());

	String str = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
	if(str != null)
	{
		passParentEnvs = Boolean.parseBoolean(str);
	}
	str = JDOMExternalizerUtil.readField(element, "ALTERNATE_INTERPRETER");
	if(str != null)
	{
		overrideSDK = Boolean.parseBoolean(str);
	}
	EnvironmentVariablesComponent.readExternal(element, envs);

	// ???
	getConfigurationModule().readExternal(element);

	// run config
	scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");
	scriptParameters = JDOMExternalizerUtil.readField(element, "PARAMETERS");
}
 
开发者ID:consulo,项目名称:consulo-lua,代码行数:30,代码来源:LuaRunConfiguration.java

示例13: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
    PathMacroManager.getInstance(getProject()).expandPaths(element);
    super.readExternal(element);
    xmlConfigurationAccessor.readConfiguration(element, this);
    readModule(element);
    EnvironmentVariablesComponent.readExternal(element, getEnvs());
    variablesAccessor.readVariables(element, this);
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:9,代码来源:XQueryRunConfiguration.java

示例14: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(@NotNull Element element) throws InvalidDataException
{
	super.readExternal(element);
	JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
	XmlSerializer.deserializeInto(myBean, element);
	EnvironmentVariablesComponent.readExternal(element, getEnvs());
	myConfigurationModule.readExternal(element);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:10,代码来源:JarApplicationConfiguration.java

示例15: readExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(@NotNull final Element element)
{
	super.readExternal(element);
	JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
	DefaultJDOMExternalizer.readExternal(this, element);
	EnvironmentVariablesComponent.readExternal(element, getEnvs());
	setShortenCommandLine(ShortenCommandLine.readShortenClasspathMethod(element));
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:10,代码来源:ApplicationConfiguration.java


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