o using new plugin configuraiton emitter plugin to see how interpolation is handled

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@494834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-01-10 14:49:35 +00:00
parent b2124718ea
commit 300fef04cd
2 changed files with 18 additions and 37 deletions

View File

@ -9,7 +9,6 @@
Map.Entry.</description> Map.Entry.</description>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>
<dependencies> <dependencies>
<dependency> <dependency>
@ -24,15 +23,26 @@
<!-- pluginManagement --> <!-- pluginManagement -->
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-configuration</artifactId>
<configuration> <configuration>
<systemProperties> <dom>
<property> <name>${project.name}</name>
<name>target.dir</name> <systemProperties>
<value>${project.build.directory}</value> <property>
</property> <name>target.dir</name>
</systemProperties> <value>${project.build.directory}</value>
</property>
</systemProperties>
</dom>
</configuration> </configuration>
<executions>
<execution>
<goals>
<goal>config</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
<!-- /pluginManagement --> <!-- /pluginManagement -->

View File

@ -1,29 +0,0 @@
package org.apache.maven.it;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.io.File;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Rigourous Test :-)
*/
public void testApp()
{
String targetDir = System.getProperty( "target.dir" );
System.out.println( "Got 'target.dir' of: '" + targetDir + "'" );
assertNotNull( "System property 'target.dir' is not present.", targetDir );
assertTrue( "System property 'target.dir' was not resolved correctly.", targetDir.indexOf( "${" ) < 0 );
}
}