I am trying to use the maven-antrun-plugin
in order to unzip a file. How can this file be defined by using a regular expression? E.g. unzip all files that match: sample[0-9].zip
.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>prepare</id>
<phase>initialize</phase>
<configuration>
<tasks>
<unzip src="${project.build.directory}/{REGEX_GOES_HERE}.zip" dest="${project.build.directory}/dest/" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>