-
Notifications
You must be signed in to change notification settings - Fork 30
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
Improve writing changes to ide.properties #78
Comments
I have looked at the code and also tried some value changes of properties and saved the changes back to disc. I set some arbitrary helm versions. ...
HELM_VERSION=1
a=1
b=2
c=3 Then I ran ...
HELM_VERSION=1.1
a=1
b=2
c=3 |
EnvironmentVariablesPropertiesFile.set() can create new properties. It can also set new values for existing ones or change the "export" flag. Possibly a bug: the "export" flag is only updated if the value changes as well. |
…hanges-to-ide.properties
…ork on github, so now tmp file to target dir
…improve-writing-changes-to-ide.properties
…rties' of https://github.com/MattesMrzik/IDEasy into feature/devonfw#78-improve-writing-changes-to-ide.properties
In case we are changing the value of a property and saving the changes back to disc, I want to have that the order of the lines in the
ide.properties
file remains stable so that only the new value is changed in the line where the property was declared before.Assuming we have this
ide.properties
file with some legacy history:Now if we run
ide version-set mvn 3.9.5
(see #79) we should get:So the following would be undesired:
Even more wrong would be:
The text was updated successfully, but these errors were encountered: