Skip to content

Latest commit

 

History

History
89 lines (75 loc) · 2.52 KB

README.md

File metadata and controls

89 lines (75 loc) · 2.52 KB

Maven plugin for running XProc pipelines and XProcSpec tests.

Goals

xproc:xproc

Run an XProc pipeline.

  • pipeline Path to the pipeline.
  • inputs Input paths.
  • outputs Output paths.
  • options Options.

xproc:xprocspec

Run a series of XProcSpec tests.

  • xprocspecDirectory Directory containing the XProcSpec tests. Default ${basedir}/src/test/xprocspec
  • reportsDirectory Directory that will contain the generated reports. Default ${project.build.dir}/xprocspec-reports
  • surefireReportsDirectory Directory that will contain standard Surefire reports. Default ${project.build.dir}/surefire-reports

Usage

<build>
  <plugins>
    ...
    <plugin>
      <groupId>org.daisy.maven</groupId>
      <artifactId>xproc-maven-plugin</artifactId>
      <version>1.0-SNAPSHOT</version>
      <executions>
        <execution>
          <phase>test</phase>
          <goals>
            <goal>xprocspec</goal>
          </goals>
        </execution>
      </executions>
      <dependencies>
        <dependency>
          <groupId>org.daisy.maven</groupId>
          <artifactId>xproc-engine-calabash</artifactId>
          <version>1.0-SNAPSHOT</version>
        </dependency>
      </dependencies>
    </plugin>
    ...
  <plugins>
</build>

For rendering the XProcSpec reports in HTML:

<reporting>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-report-plugin</artifactId>
      <version>2.14.1</version>
    </plugin>
  </plugins>
</reporting>

License

Copyright © 2013 Bert Frees

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.