You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2010/09/21 22:38:04 UTC
svn commit: r999618 - in
/maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop:
./ pom.xml src/ src/assemble/ src/assemble/bin.xml src/config/
src/config/a/ src/config/a/filtered.txt verify.bsh
Author: jdcasey
Date: Tue Sep 21 20:38:04 2010
New Revision: 999618
URL: http://svn.apache.org/viewvc?rev=999618&view=rev
Log:
[MASSEMBLY-167] IT to verify that systems properties are available for filtering.
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml (with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml (with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt (with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh (with props)
Added: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml?rev=999618&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml (added)
+++ maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml Tue Sep 21 20:38:04 2010
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.plugin.assembly.test</groupId>
+ <artifactId>it-project-parent</artifactId>
+ <version>1</version>
+ </parent>
+
+ <groupId>test</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0</version>
+
+ <name>Parent</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assemble/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml?rev=999618&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml (added)
+++ maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml Tue Sep 21 20:38:04 2010
@@ -0,0 +1,16 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>bin</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <files>
+ <file>
+ <source>src/config/a/filtered.txt</source>
+ <outputDirectory>a</outputDirectory>
+ <filtered>true</filtered>
+ </file>
+ </files>
+</assembly>
Propchange: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/assemble/bin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt?rev=999618&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt (added)
+++ maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt Tue Sep 21 20:38:04 2010
@@ -0,0 +1 @@
+Java Version: ${java.version}
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/src/config/a/filtered.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh?rev=999618&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh (added)
+++ maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh Tue Sep 21 20:38:04 2010
@@ -0,0 +1,21 @@
+import java.io.*;
+
+try
+{
+ String javaVersion = System.getProperty( "java.version" );
+ File a = new File( basedir, "target/parent-1.0-bin/a/filtered.txt");
+
+ BufferedReader r = new BufferedReader(new FileReader(a));
+ String line = r.readLine();
+ if ( ! line.endsWith( javaVersion ) )
+ {
+ System.out.println( "Expected java version: " + javaVersion + "\nLine was: " + line );
+ return false;
+ }
+}
+catch( IOException e )
+{
+ e.printStackTrace();
+}
+
+return true;
Propchange: maven/plugins/trunk/maven-assembly-plugin/src/it/projects/files/filtered-sysprop/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native