开发者

Phing not loading .properties file

开发者 https://www.devze.com 2023-04-11 05:29 出处:网络
I have the following build.xml and build.properties files: build.xml <?xml version=\"1.0\" encoding=\"UTF-8\"?>

I have the following build.xml and build.properties files:

build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="CoolProducts" basedir="../"
         default="dev" description="CoolProducts front-end">
  <!-- set default config -->
  <property file="build/config/build.properties" />
  <target name="dev">
    <echo message="{$dir.css}" />
    <echo message="{$dir.build}" />
    <echo message="{$dir.source}" />
  </target>
</project>

build.properties

dir.source = .
dir.css = css
dir.build = build

I expect my output to be:

css
build
.

but it is:

{$dir.css} 
{$dir.build}
{$dir.source}
开发者_StackOverflow社区

Do I have something configured incorrectly?


It's ${property}, and not {$property} that must be used to display a property.

0

精彩评论

暂无评论...
验证码 换一张
取 消