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 2009/01/28 01:23:31 UTC
svn commit: r738318 - in
/maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup:
invoker.properties verify.bsh
Author: olamy
Date: Wed Jan 28 00:23:31 2009
New Revision: 738318
URL: http://svn.apache.org/viewvc?rev=738318&view=rev
Log:
[MINVOKER-76] add some for the report file feature
Added:
maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties (with props)
Modified:
maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/verify.bsh
Added: maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties?rev=738318&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties Wed Jan 28 00:23:31 2009
@@ -0,0 +1,2 @@
+invoker.name = Foo
+invoker.description = good foo
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/invoker.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/verify.bsh?rev=738318&r1=738317&r2=738318&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/verify.bsh (original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/project-setup/verify.bsh Wed Jan 28 00:23:31 2009
@@ -31,6 +31,26 @@
System.out.println( "FAILED!" );
return false;
}
+
+ File reportFile = new File( basedir, "target/invoker-reports/INVOCATION-project1.xml" );
+ if ( !reportFile.exists() )
+ {
+ System.out.println( "reportFile not exists FAILED!" );
+ return false;
+ }
+ String report = FileUtils.fileRead( reportFile );
+ index = report.indexOf("name=\"Foo\"");
+ if ( index < 0 )
+ {
+ System.out.println( "name missing in the report FAILED!" );
+ return false;
+ }
+ index = report.indexOf("<description>good foo</description>");
+ if ( index < 0 )
+ {
+ System.out.println( "description missing in the report FAILED!" );
+ return false;
+ }
}
catch( Throwable t )
{