slachiewicz commented on code in PR #1313:
URL:
https://github.com/apache/maven-site-plugin/pull/1313#discussion_r4057655295
##########
src/it/projects/MSITE-609/verify.groovy:
##########
@@ -64,11 +64,16 @@ try
System.err.println( "download.html file is missing or a directory." );
return false;
}
+ // the page interpolates ${currentVersion}, which the filtered POM sets
from @mavenVersion@
+ String pomContent = FileUtils.fileRead( new File( basedir, "pom.xml" ),
"UTF-8" );
+ int start = pomContent.indexOf( "<currentVersion>" ) +
"<currentVersion>".length();
+ String currentVersion = pomContent.substring( start, pomContent.indexOf(
"</currentVersion>", start ) );
+ String expected = "Download Maven " + currentVersion;
Review Comment:
Done in #1316.
##########
src/it/projects/site-deploy/verify.groovy:
##########
@@ -64,11 +64,16 @@ try
System.err.println( "download.html file is missing or a directory." );
return false;
}
+ // the page interpolates ${currentVersion}, which the filtered POM sets
from @mavenVersion@
+ String pomContent = FileUtils.fileRead( new File( basedir, "pom.xml" ),
"UTF-8" );
Review Comment:
Done in #1316.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]