Details
-
New Feature
-
Resolution: Fixed
-
Major
-
6.3-milestone-1
-
None
-
Unit
-
Easy
-
N/A
-
N/A
-
Description
Right now you can attach only one file per execution:
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-xmldoc-update-plugin</artifactId>
<executions>
<execution>
<id>attach-job-resources</id>
<phase>process-resources</phase>
<goals>
<goal>attach</goal>
</goals>
<configuration>
<file>${job.webjar.directory}/jobRunner.js</file>
<sourceDocument>${project.build.outputDirectory}/FileManagerCode/JobRunner.xml</sourceDocument>
</configuration>
</execution>
...
</executions>
</plugin>
This forces us to duplicate a lot of POM content when we have multiple files to attach: you need to configure a new execution for each file. It would be better if the xmldoc-update-plugin supported a 'files' parameter that accepts multiple values:
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-xmldoc-update-plugin</artifactId>
<executions>
<execution>
<id>attach-job-resources</id>
<phase>process-resources</phase>
<goals>
<goal>attach</goal>
</goals>
<configuration>
<files>
<file>${job.webjar.directory}/jobRunner.js</file>
<file>${job.webjar.directory}/jobRunner.min.js</file>
</files>
<sourceDocument>${project.build.outputDirectory}/FileManagerCode/JobRunner.xml</sourceDocument>
</configuration>
</execution>
...
</executions>
</plugin>
I need this in order to be able to use JavaScript libraries packaged as webjars on older versions of XWiki that don't have support for webjars (e.g. 5.4.5).
Attachments
Issue Links
- blocks
-
FILEMAN-72 Extract the tree code into a generic widget and move it to the XWiki platform
-
- Closed
-