jurand - Man Page

Java removal of annotations

Synopsis

jurand [-a] [-i] [-s] [-n=<name>] [-p=<pattern>] [<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.

Author

Written by Marián Konček.

See Also

java_remove_annotations(7), java_remove_imports(7).

Info

2025-01-17 Jurand Manual