maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r465865 - in /maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091: ./ src/ src/main/ src/main/java/ src/main/resources/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache...
Date Thu, 19 Oct 2006 20:50:01 GMT
Author: jvanzyl
Date: Thu Oct 19 13:50:00 2006
New Revision: 465865

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

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

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/pom.xml?view=auto&rev=465865
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/pom.xml
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/pom.xml
Thu Oct 19 13:50:00 2006
@@ -0,0 +1,40 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.it</groupId>
+  <artifactId>maven-core-it0090</artifactId>
+  <description>Test that currently demonstrates that properties are not correctly
+        interpolated into other areas in the POM. This may strictly be a boolean
+        problem: I captured the problem as it was reported.</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>
+  <properties>
+    <filter.resources>true</filter.resources>
+    <name>jason</name>
+  </properties>
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+        <!--
+        <filtering>${filtering.resources}</filtering>
+        -->
+      </resource>    
+      <resource>
+        <directory>${project.build.sourceDirectory}</directory>
+        <filtering>true</filtering>
+        <includes>
+          <include>**/*.properties</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+</project>

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

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

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh?view=auto&rev=465865
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh (added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh Thu
Oct 19 13:50:00 2006
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+m2Versions="2.0.1 2.0.2 2.0.3 2.0.4"
+
+for i in $m2Versions
+do
+  echo "Testing against version $i"
+  M2_HOME=$HOME/maven-${i}
+  mvn clean test
+done

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/run.sh
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/main/java/source.properties
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/main/java/source.properties?view=auto&rev=465865
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/main/java/source.properties
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/main/java/source.properties
Thu Oct 19 13:50:00 2006
@@ -0,0 +1 @@
+name=${name}

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

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

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

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

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

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java?view=auto&rev=465865
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java
Thu Oct 19 13:50:00 2006
@@ -0,0 +1,51 @@
+package org.apache.maven.it0091;
+
+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/classes/test.properties" );
+
+        assertTrue( testPropertiesFile.exists() );
+
+        testProperties.load( new FileInputStream( testPropertiesFile ) );
+
+        File projectBuildDirectory = new File( basedir, "target" );
+
+        assertEquals( testProperties.getProperty( "name" ), "jason" );
+    }
+    
+    public void testInterpolatedProjectSourceDirectory()
+        throws Exception
+    {
+        Properties testProperties = new Properties();
+
+        File testPropertiesFile = new File( basedir, "target/classes/source.properties" );
+
+        assertTrue( testPropertiesFile.exists() );
+
+        testProperties.load( new FileInputStream( testPropertiesFile ) );
+
+        File projectBuildDirectory = new File( basedir, "target" );
+
+        assertEquals( testProperties.getProperty( "name" ), "jason" );
+    }    
+}

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

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



Mime
View raw message