You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2008/09/07 00:58:30 UTC
svn commit: r692760 - in
/maven/plugins/trunk/maven-resources-plugin/src/it/filter:
src/main/filters/my.filter src/main/resources/SomeResource.txt verify.bsh
Author: olamy
Date: Sat Sep 6 15:58:30 2008
New Revision: 692760
URL: http://svn.apache.org/viewvc?rev=692760&view=rev
Log:
[MRESOURCES-59] filtering with @property@
complete it with a test for this token
Modified:
maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/filters/my.filter
maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/resources/SomeResource.txt
maven/plugins/trunk/maven-resources-plugin/src/it/filter/verify.bsh
Modified: maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/filters/my.filter
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/filters/my.filter?rev=692760&r1=692759&r2=692760&view=diff
==============================================================================
--- maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/filters/my.filter (original)
+++ maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/filters/my.filter Sat Sep 6 15:58:30 2008
@@ -2,4 +2,5 @@
filter.token.project.version=${project.version}
filter.token.projectProperty=${projectProperty}
filter.token.profileProperty=${profileProperty}
-execProps=fromFilter
\ No newline at end of file
+execProps=fromFilter
+value=foo
\ No newline at end of file
Modified: maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/resources/SomeResource.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/resources/SomeResource.txt?rev=692760&r1=692759&r2=692760&view=diff
==============================================================================
--- maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/resources/SomeResource.txt (original)
+++ maven/plugins/trunk/maven-resources-plugin/src/it/filter/src/main/resources/SomeResource.txt Sat Sep 6 15:58:30 2008
@@ -10,3 +10,4 @@
test:filter syspropsExecutionPropsWins=${execProps}
+newToken=@value@
Modified: maven/plugins/trunk/maven-resources-plugin/src/it/filter/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-resources-plugin/src/it/filter/verify.bsh?rev=692760&r1=692759&r2=692760&view=diff
==============================================================================
--- maven/plugins/trunk/maven-resources-plugin/src/it/filter/verify.bsh (original)
+++ maven/plugins/trunk/maven-resources-plugin/src/it/filter/verify.bsh Sat Sep 6 15:58:30 2008
@@ -98,7 +98,15 @@
{
System.err.println( "SomeResource.txt not contains test:filter syspropsExecutionPropsWins=fromExecProps" );
return false;
- }
+ }
+
+ //newToken=foo
+ indexOf = paramContent.indexOf( "newToken=foo" );
+ if ( indexOf < 0)
+ {
+ System.err.println( "SomeResource.txt not contains newToken=foo" );
+ return false;
+ }
}
catch( IOException e )
{