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