本文整理匯總了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();
}
示例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();
}
示例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);
}
}
}
}
示例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();
}
示例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);
}