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

ISPN-11511 More consistent branding #8082

Merged

Conversation

tristantarrant
Copy link
Member

@tristantarrant tristantarrant commented Mar 24, 2020

https://issues.redhat.com/browse/ISPN-11511

To get consistent branding:
-Dinfinispan.brand.name="My Brand" -Dinfinispan.brand.version="8.0.0.GA" -Dinfinispan.codename="Infinispan 11.0.0.Dev03"

will result in the server (and other tools) printing the following banner:

ISPN080001: My Brand 8.0.0.GA (Infinispan 11.0.0.Dev03)

@tristantarrant
Copy link
Member Author

Rebased

@@ -161,7 +168,7 @@ public static void printFullVersionInformation() {
* Returns version information as a string.
*/
public static String printVersion() {
return INSTANCE.brandname + " '" + INSTANCE.codename + "' " + INSTANCE.version;
return INSTANCE.brandName + " '" + INSTANCE.codename + "' " + INSTANCE.version;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be Infinispan instead of the brand name.

Suggested change
return INSTANCE.brandName + " '" + INSTANCE.codename + "' " + INSTANCE.version;
return "Infinispan '" + INSTANCE.codename + "' " + INSTANCE.version;

This is used in CLI (version command) and it is logged when the server starts:
ISPN000128: Infinispan version: My Brand 'N/A' 11.0.0-SNAPSHOT

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or change its format:
<brand> <brand_version> (Infinispan <project_version>)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I suggest to move the codename to the end and use the brand version instead:

Suggested change
return INSTANCE.brandName + " '" + INSTANCE.codename + "' " + INSTANCE.version;
return INSTANCE.brandName + " " + INSTANCE.brandVersion + " (" + INSTANCE.codename + ")";

@tristantarrant tristantarrant force-pushed the ISPN-11511/branding_banner branch 2 times, most recently from 026893d to 1e70749 Compare May 6, 2020 12:56
* Introduce an infinispan.brand.version property
* Align all shell tools to print the version in the same way
@pruivo pruivo merged commit bdf4c7c into infinispan:master May 6, 2020
@pruivo
Copy link
Member

pruivo commented May 6, 2020

integrated! thanks @tristantarrant !

@tristantarrant tristantarrant deleted the ISPN-11511/branding_banner branch July 5, 2022 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants