CLI-269: Introduce CommandLineBuilder

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CLI-269: Introduce CommandLineBuilder

Robert Scholte
Hi,

for Maven we have this issue where commandline arguments and options can  
come from multiple sources and where we need to control the order of  
processing these entities.
For now we've introduced our own MergedCommandLine[1], but we consider  
this as a temporary workaround.
The proper solution would be to introduce a CommandLine.Builder.
I've created a patch (based on the concept of Option.Builder) which I'd  
like to commit[1].
Before frightening others I'd like to announce this action. There might be  
other known issues in Maven which need a fix in CLI, I'll announce those  
as well.

thanks,
Robert

[1]  
https://git1-us-west.apache.org/repos/asf?p=maven.git;a=blob;f=maven-embedder/src/main/java/org/apache/maven/cli/MergedCommandLine.java;h=cb0a5875db78067b26eaea19a4cb5692713f25ca;hb=dc9c4db4494b62e2231bb67b39678decf6329852
[2] https://issues.apache.org/jira/browse/CLI-269

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]