Doesn't the loadfile
task do what you're after?
get file content and assign to property in Phing
-
29-05-2022 - |
Question
Is there a way to get a file content and assign to property for Phing?
An equivalent to ant:
<project name="foobar" default="foo">
<target name="foo">
<loadfile property="foo.bar" srcFile="foobar/moo.txt"/>
<echo>${foo.bar}</echo>
</target>
</project>
?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow