Search in sources :

Example 1 with MavenPropertyPsiReference

use of org.jetbrains.idea.maven.dom.references.MavenPropertyPsiReference in project intellij-community by JetBrains.

the class MavenFilteredPropertiesCompletionAndResolutionTest method testDontUseDefaultDelimiter1.

public void testDontUseDefaultDelimiter1() throws Exception {
    createProjectSubDir("res");
    importProject("<groupId>test</groupId>" + "<artifactId>project</artifactId>" + "<version>1</version>" + "<build>" + "  <resources>" + "    <resource>" + "      <directory>res</directory>" + "      <filtering>true</filtering>" + "    </resource>" + "  </resources>" + "  <plugins>" + "    <plugin>" + "      <groupId>org.apache.maven.plugins</groupId>" + "      <artifactId>maven-resources-plugin</artifactId>" + "      <version>2.5</version>" + "      <configuration>" + "        <delimiters>" + "          <delimiter>|</delimiter>" + "        </delimiters>" + "        <useDefaultDelimiters>false</useDefaultDelimiters>" + "      </configuration>" + "    </plugin>" + "  </plugins>" + "</build>");
    VirtualFile f = createProjectSubFile("res/foo1.properties", "foo1=${basedir}\n" + "foo2=|pom.baseUri|");
    assert !(getReference(f, "basedir") instanceof MavenPropertyPsiReference);
    assertNotNull(resolveReference(f, "pom.baseUri"));
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) MavenPropertyPsiReference(org.jetbrains.idea.maven.dom.references.MavenPropertyPsiReference)

Aggregations

VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 MavenPropertyPsiReference (org.jetbrains.idea.maven.dom.references.MavenPropertyPsiReference)1