Search in sources :

Example 6 with AntInstallation

use of com.intellij.lang.ant.config.impl.AntInstallation in project intellij-community by JetBrains.

the class AntDomProject method getAntInstallation.

public AntInstallation getAntInstallation() {
    final AntConfigurationBase configuration = AntConfigurationBase.getInstance(getXmlTag().getProject());
    AntInstallation antInstallation = null;
    if (configuration != null) {
        antInstallation = configuration.getProjectDefaultAnt();
    }
    if (antInstallation == null) {
        antInstallation = GlobalAntConfiguration.getInstance().getBundledAnt();
    }
    assert antInstallation != null;
    return antInstallation;
}
Also used : AntInstallation(com.intellij.lang.ant.config.impl.AntInstallation) AntConfigurationBase(com.intellij.lang.ant.config.AntConfigurationBase)

Aggregations

AntInstallation (com.intellij.lang.ant.config.impl.AntInstallation)6 PsiFile (com.intellij.psi.PsiFile)3 XmlTag (com.intellij.psi.xml.XmlTag)2 File (java.io.File)2 AntConfigurationBase (com.intellij.lang.ant.config.AntConfigurationBase)1 AntBuildFileImpl (com.intellij.lang.ant.config.impl.AntBuildFileImpl)1 AntReference (com.intellij.lang.ant.config.impl.AntReference)1 AntDomElement (com.intellij.lang.ant.dom.AntDomElement)1 AntDomProject (com.intellij.lang.ant.dom.AntDomProject)1 Sdk (com.intellij.openapi.projectRoots.Sdk)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 HashMap (com.intellij.util.containers.HashMap)1 IOException (java.io.IOException)1 NonNls (org.jetbrains.annotations.NonNls)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1