https://github.com/walkmod/walkmod-license-applier-plugin
Walkmod plugin to apply license headers in all Java source files
https://github.com/walkmod/walkmod-license-applier-plugin
Last synced: 5 months ago
JSON representation
Walkmod plugin to apply license headers in all Java source files
- Host: GitHub
- URL: https://github.com/walkmod/walkmod-license-applier-plugin
- Owner: walkmod
- License: lgpl-3.0
- Created: 2013-12-31T07:59:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T12:20:48.000Z (over 10 years ago)
- Last Synced: 2024-05-28T17:34:04.424Z (about 2 years ago)
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- License: LICENSE
Awesome Lists containing this project
README
walkmod-license-applier-plugin
==============================
Raquel Pau
image:https://travis-ci.org/rpau/walkmod-license-applier-plugin.svg?branch=master["Build Status", link="https://travis-ci.org/rpau/walkmod-license-applier-plugin"]
This is a walkmod plugin to add license headers in Java source files. By default, it add your license header if it is missing in your source files.
However, there are the following actions:
* update: updates the existing header with a new one.
* check: checks if the header is missing in some source file but it does not change any source file.
* remove: removes the existing header.
* reformat: adds headers if they are missing (default option).
== Usage
1) Check that your walkmod version is > = 2.2.0.
2) In order to configure this convention to apply or update a license to all your source files, execute the following command:
----
walkmod add -DlicenseFile=src/main/walkmod/license-applier/license.txt -Daction=reformat license-applier
----
And then, to see the results:
----
walkmod apply
----
== 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.