Walkmod plugin to process raw files (without parsing).
Specifically, this plugin allows to work with the string content of a file. Specifically, it has been designed to rewrite files for an specific platform (e.g unix, mac or windows) and thus, work with an specific an endline char (\n, \r or \r\n).
In order to use this plugin from a project where you would like to run walkmod, you just need to add:
1) The plugin declaration
<!DOCTYPE walkmod PUBLIC "-//WALKMOD//DTD" "http://www.walkmod.com/dtd/walkmod-1.1.dtd" >
<walkmod>
<plugins>
<plugin groupId="org.walkmod" artifactId="walkmod-rawfiles-plugin" version="[1.0, )" />
</plugins>
...
</walkmod>
2) The configuration provider specifying your classpath (the project .classes and the dependencies)
<!DOCTYPE walkmod PUBLIC "-//WALKMOD//DTD" "http://www.walkmod.com/dtd/walkmod-1.1.dtd" >
<walkmod>
...
<chain name="rawfiles">
<reader path="src/main/java"/>
<walker type="rawfiles:walker" />
<writer type="rawfiles:writer" path="src/main/java">
<param name="platform">unix</param>
</writer>
</writer>
</chain>
...
</walkmod>