Skip to content

Spring's JOptCommandLinePropertySource selects the option alias names enumerated by getPropertyNames() in an inconsistent way.

Notifications You must be signed in to change notification settings

chludwig-haufe/JOptCommandLinePropertySource-Issues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JOptCommandLinePropertySource Issue Demo

This repository contains a JUnit test class JOptCommandLinePropertySourceTest that demonstrates that the implementation of Spring's JOptCommandLinePropertySource selects the option alias names enumerated by getPropertyNames() in an inconsistent way. The test class also shows different property name enumeration strategies that, in the author's opinion, produce more helpful results.

The Spring Boot application WrongPropertyNameDemoApplication demonstrates how command line arguments processed by JOpt can be injected into the environment of a Spring Boot application (and thus be referenced in @Configuration classes).

About

Spring's JOptCommandLinePropertySource selects the option alias names enumerated by getPropertyNames() in an inconsistent way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages