This is an automated email from the ASF dual-hosted git repository.
mbuenger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new f60bcd9 Use version variables in verify script (#356)
f60bcd9 is described below
commit f60bcd94fba7754e5957c02e93c101b0e0677c63
Author: Matthias Bünger <[email protected]>
AuthorDate: Wed Jan 28 15:15:34 2026 +0100
Use version variables in verify script (#356)
---
pom.xml | 10 ++++++++++
src/it/filesets-test/verify.bsh | 8 ++++----
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index dc7d7da..d321bb4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -216,6 +216,16 @@ under the License.
<!-- </execution> -->
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <configuration>
+ <scriptVariables>
+ <scriptVarVersionJunit>${versions.junit5}</scriptVarVersionJunit>
+ <scriptVarVersionAnt>${version.ant}</scriptVarVersionAnt>
+ </scriptVariables>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/src/it/filesets-test/verify.bsh b/src/it/filesets-test/verify.bsh
index da000f0..82fdbb9 100644
--- a/src/it/filesets-test/verify.bsh
+++ b/src/it/filesets-test/verify.bsh
@@ -27,8 +27,8 @@ import org.codehaus.plexus.util.*;
try
{
File depsDir = new File( basedir, "target/dependencies" );
- File antJar = new File( depsDir, "ant-1.10.15.jar" );
- File junitJar = new File( depsDir, "junit-jupiter-engine-5.14.2.jar" );
+ File antJar = new File( depsDir, "ant-" + scriptVarVersionAnt + ".jar" );
+ File junitJar = new File( depsDir, "junit-jupiter-engine-" +
scriptVarVersionJunit + ".jar" );
if ( ! antJar.exists() || antJar.isDirectory() )
{
@@ -42,8 +42,8 @@ try
}
File deps2Dir = new File( basedir, "target/dependencies2" );
- antJar = new File( deps2Dir, "ant-1.10.15.jar" );
- junitJar = new File( deps2Dir, "junit-jupiter-api-5.14.2.jar" );
+ antJar = new File( deps2Dir, "ant-" + scriptVarVersionAnt + ".jar" );
+ junitJar = new File( deps2Dir, "junit-jupiter-api-" +
scriptVarVersionJunit + ".jar" );
if ( ! antJar.exists() || antJar.isDirectory() )
{