<folder> detects only sub-folders not files
I recently used "iterator" to perform actions on some files on some folder, only to discover, to my disappointment I have to admit, that "iterator" only detects sub-folders of
Having followed the examples precisely, I am confident that the implementation handles sub-folders only.
Any ideas?
The iterator was designed to use folders only and not files...can you give a real example where it might make sense to use iterating over files instead of folders.
Thanks for looking at this, my actual making sense problem is un-signing a series of JAR files using webstart-maven-plugin
For your convenience the iterated webstart-maven-plugin doesn't work with folders, although it states otherwise, so I am forced to go through a complicated series of steps via ant and other custom tasks only to increase complexityof my build
I hope this helps justifyinfthe requirement
After having given enough thought,
I believe it makes sense to extend iterator with a common path-like selection having
Let me know your thoughts.
Could you make a example project which shows the wished behaviour ?
It is not very easy to produce a full project to demonstrate the exact problem, I can mostly describe.
So, imagine a folder hierarchy with JAR files that need to be un-signed
<plugin>
<groupId>com.soebes.maven.plugins</groupId>
<artifactId>iterator-maven-plugin</artifactId>
<version>0.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>iterator</goal>
</goals>
<configuration>
<folder>${project.basedir}/repository</folder>
<pluginExecutors>
<pluginExecutor>
<plugin>
<groupId>com.soebes.maven.plugins</groupId>
<artifactId>maven-echo-plugin</artifactId>
</plugin>
<goal>echo</goal>
<configuration>
<echos>
<echo>This is a message: @item@</echo>
</echos>
</configuration>
</pluginExecutor>
<pluginExecutor>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<version>:1.0-beta-8-SNAPSHOT</version>
</plugin>
<goal>unsign</goal>
<configuration>
<jarPath>@item@</jarPath> <!-- item must be full path and file -->
</configuration>
</pluginExecutor>
</pluginExecutors>
</configuration>
</execution>
</executions>
</plugin>
I hope this helps.
Ah that makes it more clear..So the iteration should be done on a file base with absolute file path...and not on folder base....I think that needs an other goal...but I will see...
I am having a similar issue, any update on this ?
I have used "Ant" script as replacement, more confusing but works
+1 Please add this feature. We need it for signing files
any updates?