Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-535

Add ability to specify which files to format or verify in the XAR plugin

    XMLWordPrintable

Details

    • Integration

    Description

      I am trying to format the generated sources for a xar module (because I use xwiki-platform-tool-xmldoc-update-plugin and it messes up a bit my document) and I have the following piece of configuration:

           <plugin>
              <groupId>org.xwiki.commons</groupId>
              <artifactId>xwiki-commons-tool-xar-plugin</artifactId>
              <version>${platform.version}</version>
              <executions>
                <execution>
                  <phase>process-resources</phase>          
                  <id>xarformat</id>
                  <goals>
                    <goal>format</goal>
                  </goals>
                  <configuration>
                    <includes>
                      <include>
                        ${project.build.directory}/classes/**/*.xml
                      </include>
                    </includes>
                  </configuration>
                </execution>
              </executions>
            </plugin>
      

      However, this does not work. I digged a bit and found out that it's because both format and verify use org.xwiki.tool.xar.AbstractVerifyMojo.getXARXMLFiles() and never the org.xwiki.tool.xar.AbstractXARMojo.getIncludes() which is used when packaging.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: