Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-pedantic: Add hint that Eclipse restart is required #6511

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion biz.aQute.bndlib/src/aQute/bnd/help/Syntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,9 @@ null, null, new Syntax("name", "The display name of the developer", "name='Peter
"If set, is used a template to calculate the output file. It can use any macro but the ${@bsn} and ${@version} macros refer to the current JAR being saved. The default is bsn + \".jar\".",
OUTPUTMASK + "=my_file.zip", null, null),
new Syntax(PACKAGEINFOTYPE, "Sets the different types of package info.", PACKAGEINFOTYPE + "=osgi", null, null),
new Syntax(PEDANTIC, "Warn about things that are not really wrong but still not right.", PEDANTIC + "=true",
new Syntax(PEDANTIC,
"Warn about things that are not really wrong but still not right. Note: Currently a change to this instruction requires a restart of Eclipse.",
PEDANTIC + "=true",
"true,false", Verifier.TRUEORFALSEPATTERN),

new Syntax(PLUGIN, "Define the plugins.",
Expand Down
7 changes: 3 additions & 4 deletions docs/_instructions/pedantic.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ title: -pedantic BOOLEAN
summary: Warn about things that are not really wrong but still not right.
---

protected void begin() {
if (isTrue(getProperty(PEDANTIC)))
setPedantic(true);
}
When setting this instruction to `true` there will be more warnings about *things that are not really wrong but still not right*.
It can be helpful to fix problems in your workspace.

**Note for Eclipse users:** Currently a change to this instruction requires a restart of Eclipse. The Refresh-Workspace button is not enough.