Skip to content

Commit

Permalink
Fix for DS-1867. Ensure native2ascii call uses 'root.basedir' and not…
Browse files Browse the repository at this point in the history
… 'basedir', so that it also works from submodules (e.g. [src]/dspace). Also some minor cleanup of POM.
  • Loading branch information
tdonohue committed Jan 28, 2014
1 parent 51a0b07 commit 25f4f5c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,20 @@
<!-- These plugin settings only apply to this single POM and are not inherited
to any submodules. -->
<plugins>
<!-- Ensure that any *.properties files have UTF-8 chars encoded (e.g. "\u00e9") *before* using them to filter dspace.cfg and other configs -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<configuration>
<target>
<!-- Run 'native2ascii' to encode UTF-8 characters in properties files. Place the resulting file(s) in /target -->
<native2ascii encoding="UTF8" src="${basedir}" dest="${basedir}/target" includes="*.properties" />
</target>
</configuration>
<executions>
<execution>
<id>native2ascii-utf8</id>
<phase>generate-resources</phase>
<configuration>
<target name="Encode any UTF-8 chars in [src]/*.properties">
<!-- Run 'native2ascii' to encode UTF-8 characters in properties files. Place the resulting file(s) in /target -->
<native2ascii encoding="UTF8" src="${root.basedir}" dest="${root.basedir}/target" includes="*.properties" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
Expand Down

0 comments on commit 25f4f5c

Please sign in to comment.