當前位置: 首頁>>代碼示例>>Java>>正文


Java AntConfigurationImpl類代碼示例

本文整理匯總了Java中com.intellij.lang.ant.config.impl.AntConfigurationImpl的典型用法代碼示例。如果您正苦於以下問題:Java AntConfigurationImpl類的具體用法?Java AntConfigurationImpl怎麽用?Java AntConfigurationImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AntConfigurationImpl類屬於com.intellij.lang.ant.config.impl包,在下文中一共展示了AntConfigurationImpl類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getTargetJdk

import com.intellij.lang.ant.config.impl.AntConfigurationImpl; //導入依賴的package包/類
@Nullable
public final Sdk getTargetJdk() {
  final XmlTag tag = getXmlTag();
  final PsiFile containingFile = tag.getContainingFile();
  final AntBuildFileImpl buildFile = (AntBuildFileImpl)AntConfigurationBase.getInstance(containingFile.getProject()).getAntBuildFile(containingFile);
  if (buildFile != null) {
    String jdkName = AntBuildFileImpl.CUSTOM_JDK_NAME.get(buildFile.getAllOptions());
    if (jdkName == null || jdkName.length() == 0) {
      jdkName = AntConfigurationImpl.DEFAULT_JDK_NAME.get(buildFile.getAllOptions());
    }
    if (jdkName != null && jdkName.length() > 0) {
      return ProjectJdkTable.getInstance().findJdk(jdkName);
    }
  }
  return ProjectRootManager.getInstance(tag.getProject()).getProjectSdk();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:17,代碼來源:AntDomProject.java

示例2: getTargetJdk

import com.intellij.lang.ant.config.impl.AntConfigurationImpl; //導入依賴的package包/類
@Nullable
public final Sdk getTargetJdk() {
  final XmlTag tag = getXmlTag();
  final PsiFile containingFile = tag.getContainingFile();
  final AntBuildFileImpl buildFile = (AntBuildFileImpl)AntConfigurationBase.getInstance(containingFile.getProject()).getAntBuildFile(containingFile);
  if (buildFile != null) {
    String jdkName = AntBuildFileImpl.CUSTOM_JDK_NAME.get(buildFile.getAllOptions());
    if (jdkName == null || jdkName.length() == 0) {
      jdkName = AntConfigurationImpl.DEFAULT_JDK_NAME.get(buildFile.getAllOptions());
    }
    if (jdkName != null && jdkName.length() > 0) {
      return SdkTable.getInstance().findSdk(jdkName);
    }
  }
  return AntJavaSdkUtil.getBundleSdk();
}
 
開發者ID:consulo,項目名稱:consulo-apache-ant,代碼行數:17,代碼來源:AntDomProject.java

示例3: runAntTarget

import com.intellij.lang.ant.config.impl.AntConfigurationImpl; //導入依賴的package包/類
private void runAntTarget(CompileContext compileContext, final Artifact artifact) {
  if (myExtensionProperties.myEnabled) {
    final Project project = compileContext.getProject();
    final AntBuildTarget target = findTarget(AntConfiguration.getInstance(project));
    if (target != null) {
      final DataContext dataContext = SimpleDataContext.getProjectContext(project);
      List<BuildFileProperty> properties = getAllProperties(artifact);
      final boolean success = AntConfigurationImpl.executeTargetSynchronously(dataContext, target, properties);
      if (!success) {
        compileContext.addMessage(CompilerMessageCategory.ERROR, "Cannot build artifact '" + artifact.getName() + "': ant target '" + target.getDisplayName() + "' failed with error", null, -1, -1);
      }
    }
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:15,代碼來源:AntArtifactProperties.java

示例4: reset

import com.intellij.lang.ant.config.impl.AntConfigurationImpl; //導入依賴的package包/類
@Override
public void reset(AbstractProperty.AbstractPropertyContainer options)
{
	String autoselectJdk = AntConfigurationImpl.DEFAULT_JDK_NAME.get(options);
	myJDKsController.setRenderer(new AntUIUtil.JavaSdkdkRenderer(true, autoselectJdk));
	super.reset(options);
	myJDKsController.resetList(null);
	myProjectDefaultAnt = AntConfigurationImpl.DEFAULT_ANT.get(options);
	updateDefaultAnt();
}
 
開發者ID:consulo,項目名稱:consulo-apache-ant,代碼行數:11,代碼來源:BuildFilePropertiesPanel.java

示例5: apply

import com.intellij.lang.ant.config.impl.AntConfigurationImpl; //導入依賴的package包/類
@Override
public void apply(AbstractProperty.AbstractPropertyContainer options)
{
	AntConfigurationImpl.DEFAULT_ANT.set(options, myProjectDefaultAnt);
	super.apply(options);
}
 
開發者ID:consulo,項目名稱:consulo-apache-ant,代碼行數:7,代碼來源:BuildFilePropertiesPanel.java


注:本文中的com.intellij.lang.ant.config.impl.AntConfigurationImpl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。