maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r465864 - in /maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090: ./ src/ src/main/ src/main/resources/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/maven/ src/tes...
Date Thu, 19 Oct 2006 20:49:53 GMT
Author: jvanzyl
Date: Thu Oct 19 13:49:52 2006
New Revision: 465864

URL: http://svn.apache.org/viewvc?view=rev&rev=465864
Log:
o adding IT it0090

Added:
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
  (with props)

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml?view=auto&rev=465864
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
Thu Oct 19 13:49:52 2006
@@ -0,0 +1,43 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.it</groupId>
+  <artifactId>maven-core-it0090</artifactId>
+  <description>Test that ensures that envars are interpolated correctly into plugin
+        configurations.</description>
+  <version>1.0</version>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <type>jar</type>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-core-it-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>
+            <configuration>
+              <mavenTestEnvar>${env.MAVEN_TEST_ENVAR}</mavenTestEnvar>
+            </configuration>
+            <goals>
+              <goal>generate-envar-properties</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties?view=auto&rev=465864
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
Thu Oct 19 13:49:52 2006
@@ -0,0 +1,2 @@
+# When we want to test the filtering of envars
+maven.test.envar=${env.MAVEN_TEST_ENVAR}

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/main/resources/test.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java?view=auto&rev=465864
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
Thu Oct 19 13:49:52 2006
@@ -0,0 +1,35 @@
+package org.apache.maven.it0090;
+
+import junit.framework.TestCase;
+
+import java.util.Properties;
+import java.io.File;
+import java.io.FileInputStream;
+
+public class PomInterpolationTest
+    extends TestCase
+{
+    private String basedir;
+
+    protected void setUp()
+        throws Exception
+    {
+        basedir = System.getProperty( "basedir" );
+    }
+
+    public void testProjectBuildDirectoryAfterForMojoExecution()
+        throws Exception
+    {
+        Properties testProperties = new Properties();
+
+        File testPropertiesFile = new File( basedir, "target/mojo-generated.properties" );
+
+        assertTrue( testPropertiesFile.exists() );
+
+        testProperties.load( new FileInputStream( testPropertiesFile ) );
+
+        File projectBuildDirectory = new File( basedir, "target" );
+
+        assertEquals( testProperties.getProperty( "maven.test.envar" ), "MAVEN_TEST_ENVAR_VALUE"
);
+    }
+}

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0090/src/test/java/org/apache/maven/it0090/PomInterpolationTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message