Skip to content

Conversation

@mthmulders
Copy link
Contributor

Together with Robert Scholte we figured that the idea of hyperlink output is not that easy. Instead, we came with a different idea to color file paths. It is depicted in the JIRA issue.

Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

Why are there env var? I am not convinced using them. We have Maven properties as well as System properties for this.

@mthmulders
Copy link
Contributor Author

We used solely system properties first, but it didn't work. Investigated together with @rfscholte and it turns out that some in Maven distributions the maven.multiModuleProjectDirectory system property is not present while the MAVEN_PROJECTBASEDIR environment variable is.

@rfscholte
Copy link
Contributor

Together with Robert Scholte we figured that the idea of hyperlink output is not that easy. Instead, we came with a different idea to color file paths. It is depicted in the JIRA issue.

Yes, hyperlinks won't work, nor would colors. It requires a different MessageBuilder next to AnsiMessageBuilder, something like HtmlMessageBuilder. Title is still valid: paths should have a separate display method.

@michael-o
Copy link
Member

The maven.multiModuleProjectDirectory has been there for a long time. Can't we use fallthrough?

@mthmulders
Copy link
Contributor Author

I've attached a few screenshots with different colouring schemes on two types of terminals to the JIRA issue.

@mthmulders
Copy link
Contributor Author

The maven.multiModuleProjectDirectory has been there for a long time. Can't we use fallthrough?

It wasn't always set properly, but I think with Root-reactor aware subfolder builds in Maven 4, it may be more reliable...

@mthmulders
Copy link
Contributor Author

No immediate need for this, but it would be a nice little gem. The current implementation might need some refactoring, moving logic out of the AnsiMessageBuilder to keep that one clean.

@elharo elharo closed this Jan 24, 2025
@jira-importer
Copy link

Resolve #272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants