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"));
}
Aggregations