walkmod-rawfiles-plugin

Writer and walker to process plain text files

License

License

GroupId

GroupId

org.walkmod
ArtifactId

ArtifactId

walkmod-rawfiles-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

walkmod-rawfiles-plugin
Writer and walker to process plain text files
Project URL

Project URL

https://github.com/rpau/walkmod-rawfiles-plugin
Source Code Management

Source Code Management

https://github.com/rpau/walkmod-rawfiles-plugin.git

Download walkmod-rawfiles-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.walkmod/walkmod-rawfiles-plugin/ -->
<dependency>
    <groupId>org.walkmod</groupId>
    <artifactId>walkmod-rawfiles-plugin</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.walkmod/walkmod-rawfiles-plugin/
implementation 'org.walkmod:walkmod-rawfiles-plugin:1.0.0'
// https://jarcasting.com/artifacts/org.walkmod/walkmod-rawfiles-plugin/
implementation ("org.walkmod:walkmod-rawfiles-plugin:1.0.0")
'org.walkmod:walkmod-rawfiles-plugin:jar:1.0.0'
<dependency org="org.walkmod" name="walkmod-rawfiles-plugin" rev="1.0.0">
  <artifact name="walkmod-rawfiles-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.walkmod', module='walkmod-rawfiles-plugin', version='1.0.0')
)
libraryDependencies += "org.walkmod" % "walkmod-rawfiles-plugin" % "1.0.0"
[org.walkmod/walkmod-rawfiles-plugin "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.walkmod : walkmod-core jar [2.1.0, 3.0.0)

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

walkmod-rawfiles-plugin

Walkmod plugin to process raw files (without parsing).

Usage

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>

Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.

Versions

Version
1.0.0