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

Order of properties #2

Open
joachimschaaf opened this issue Dec 1, 2015 · 1 comment
Open

Order of properties #2

joachimschaaf opened this issue Dec 1, 2015 · 1 comment

Comments

@joachimschaaf
Copy link

Problem:
The properties are not written to the file in the order that is defined in the pom.xml

It would be helpful if the order would be preserved.

@abatkin
Copy link
Member

abatkin commented Dec 1, 2015

The challenge in maintaining any type of ordering is that java.util.Properties is implemented with a Hashtable which is inherently unordered. By using the built-in Properties class, it means that escaping of values and ensuring the validity of the file happens automatically.

But feel free to suggest alternative implementations (or better yet, submit a PR) and we can see if that works.

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

No branches or pull requests

2 participants