Code Monkey home page Code Monkey logo

Comments (11)

khmarbaise avatar khmarbaise commented on June 27, 2024

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.

from iterator-maven-plugin.

eliasbalasis avatar eliasbalasis commented on June 27, 2024

Thanks for looking at this, my actual making sense problem is un-signing a series of JAR files using webstart-maven-plugin

from iterator-maven-plugin.

eliasbalasis avatar eliasbalasis commented on June 27, 2024

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

from iterator-maven-plugin.

eliasbalasis avatar eliasbalasis commented on June 27, 2024

After having given enough thought,

I believe it makes sense to extend iterator with a common path-like selection having , etc. for more flexibility and control

Let me know your thoughts.

from iterator-maven-plugin.

khmarbaise avatar khmarbaise commented on June 27, 2024

Could you make a example project which shows the wished behaviour ?

from iterator-maven-plugin.

eliasbalasis avatar eliasbalasis commented on June 27, 2024

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.

from iterator-maven-plugin.

khmarbaise avatar khmarbaise commented on June 27, 2024

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...

from iterator-maven-plugin.

johnnyquestep avatar johnnyquestep commented on June 27, 2024

I am having a similar issue, any update on this ?

from iterator-maven-plugin.

eliasbalasis avatar eliasbalasis commented on June 27, 2024

I have used "Ant" script as replacement, more confusing but works

from iterator-maven-plugin.

martinbachtold avatar martinbachtold commented on June 27, 2024

+1 Please add this feature. We need it for signing files

from iterator-maven-plugin.

DmitryZagr avatar DmitryZagr commented on June 27, 2024

any updates?

from iterator-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.