Skip to content

Commit

Permalink
Updated version for 5.0.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Apr 25, 2019
1 parent 66bae49 commit 05c4eab
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ For the Java projects contained in this repository, please consider the followin

Invoke `mvn -f pom-xslt.xml process-resources` after changes - it will regenerate the XSLTs from the source SCHs.
Don't forget to update the license headers afterwards (see below).

## Create preprocessed Schematrons

After creating XSLTs, the preprocess Schematrons should be created.
Preprocessing resolves all includes, abstract rules etc.
Invoke `mvn -f pom-preprocess.xml generate-resources` to create all preprocessed Schematron files.

## Check if the examples files match the rules from the XSLTs

Expand All @@ -86,8 +92,4 @@ Invoke `mvn -f pom-validate.xml validate` after re-creating the XSLTs (see above
## Update the license headers

The template for the license header resides in the file `templates/license-template.txt`.
To add the license header to all relevant files invoke the following command:

```
mvn -f pom-license.xml license:format
```
To add the license header to all relevant files invoke `mvn -f pom-license.xml license:format`
9 changes: 1 addition & 8 deletions pom-preprocess.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@
<plugin>
<groupId>com.helger.maven</groupId>
<artifactId>ph-schematron-maven-plugin</artifactId>
<version>5.0.9-SNAPSHOT</version>
<version>5.0.9</version>
<executions>
<!--
-->
<execution>
<id>cii</id>

<goals>
<goal>preprocess</goal>
</goals>
Expand All @@ -57,8 +54,6 @@
<targetFile>${basedir}/cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch</targetFile>
</configuration>
</execution>
<!--
-->
<execution>
<id>edifact</id>
<goals>
Expand All @@ -69,8 +64,6 @@
<targetFile>${basedir}/edifact/schematron/preprocessed/EN16931-EDIFACT-validation-preprocessed.sch</targetFile>
</configuration>
</execution>
<!--
-->
<execution>
<id>ubl</id>
<goals>
Expand Down
2 changes: 1 addition & 1 deletion pom-validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<plugin>
<groupId>com.helger.maven</groupId>
<artifactId>ph-schematron-maven-plugin</artifactId>
<version>5.0.8</version>
<version>5.0.9</version>
<executions>
<execution>
<id>cii</id>
Expand Down
4 changes: 2 additions & 2 deletions pom-xslt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<plugins>
<plugin>
<groupId>com.helger.maven</groupId>
<artifactId>ph-sch2xslt-maven-plugin</artifactId>
<version>5.0.8</version>
<artifactId>ph-schematron-maven-plugin</artifactId>
<version>5.0.9</version>
<executions>
<!--
-->
Expand Down
15 changes: 15 additions & 0 deletions update-xslt-and-validate.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

rem preprocess first - catches errors quickers
call mvn -f pom-preprocess.xml generate-resources

rem convert to XSLT - takes forever
call mvn -f pom-xslt.xml process-resources

rem Add license headers to all relevant files
call mvn -f pom-license.xml license:format

rem validate afterwards
call mvn -f pom-validate.xml validate

echo Sucessfully done

0 comments on commit 05c4eab

Please sign in to comment.