Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $(call Executable_file,jurand): $(call Object_file,jurand.cpp)
$(call Executable_file,jurand_test): $(call Object_file,jurand_test.cpp)

manpages: \
$(call Manpage,jurand.1)\
$(call Manpage,java_remove_annotations.7)\
$(call Manpage,java_remove_imports.7)\

Expand Down
54 changes: 54 additions & 0 deletions manpages/jurand.1.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
jurand(1)
=========
:doctype: manpage
:manmanual: Jurand Manual
:mansource: JURAND

NAME
----
jurand - Java removal of annotations.

SYNOPSIS
--------
*jurand* [*-n*=_<name>_] [*-p*=_<pattern>_] [*-a*] [*-i*] [*-s*] [_<paths>_...]

DESCRIPTION
-----------
A tool for manipulating symbols present in `.java` source files.

The tool can be used for patching `.java` sources in cases where using
sed is insufficient due to Java language syntax. The tool follows Java
language rules rather than applying simple regular expressions on the
source code.

Currently the tool is able to remove `import` statements and
annotations.

OPTIONS
-------
*-n*, *--name*=_<name>_::
Simple (not fully-qualified) class name.

*-p*, *--pattern*=_<pattern>_::
Regex pattern to match names used in code.

*-a*::
Also remove annotations used in code.

*-i*, *--in-place*::
Replace the contents of files.

*-s*, *--strict*::
Fail if any of the specified options was redundant and no changes
associated with the option were made. This option is only applicable
together with *-i*.

REPORTING BUGS
--------------
Bugs should be reported through the Jurand issue tracker at Github:
https://github.com/fedora-java/jurand/issues.

SEE ALSO
--------
*java_remove_annotations*(7),
*java_remove_imports*(7).
Loading