0

So I have a bunch of icons in a folder structure under project resources

- src/main/resources/META-INF/resources/
    - icons/
        - icon-set-alpha/
            - a1.svg
            - a2.svg
            - ...
        - icon-set-beta/
            - b1.svg
            - b2.svg
            - ...
        - ...

I now want to write a task, that when copying those resources takes whatever's there and bundles it (not zip) and only copies the bundled versions into the build directory.

I.e.the build result should look like

- build/resources/main/META-INF/resources/
    -icons/
        - icon-set-alpha.svg
        - icon-set-beta.svg

I can of course write a task that after copying the folders to the build directory goes through all the folders and creates bundled versions there and deletes the folders.

Is there a way to do it on-the-fly, though?

User1291
  • 7,664
  • 8
  • 51
  • 108

0 Answers0