You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have encountered an issue in Phing related to the loading order of property files and variable references. The problem occurs when multiple property files are loaded, and there is a reference to a variable defined in a later file.
I have two property files, one.env and two.env with the following contents:
one.env:
test=foo
two.env:
test=bar
test2=${test}
When loading these property files using the task in Phing, the variable "test2" is not being correctly overridden. The expected behavior is that "test2" should have the value "bar" since it is being overridden in two.env.
Steps To Reproduce
Use the following <property> tasks in the Phing build file:
Good catch. When resolving newly loaded properties, we first check project properties before we check the new properties. That order should be reversed.
Describe the bug
I have encountered an issue in Phing related to the loading order of property files and variable references. The problem occurs when multiple property files are loaded, and there is a reference to a variable defined in a later file.
I have two property files,
one.env
andtwo.env
with the following contents:one.env:
two.env:
When loading these property files using the task in Phing, the variable "test2" is not being correctly overridden. The expected behavior is that "test2" should have the value "bar" since it is being overridden in
two.env
.Steps To Reproduce
Use the following
<property>
tasks in the Phing build file:Use
<echoproperties/>
to output the property values.Expected behavior
Screenshots / terminal output
Additional context
Phing Version: Phing 3.0.0-RC6
Operating System: Debian GNU/Linux 12 (bookworm) in WSL2 (Windows 10 Enterprise 22H2)
The text was updated successfully, but these errors were encountered: