Trong xml phing sau, bên trong mục tiêu "skel" tôi kiểm tra xem ứng dụng có được định cấu hình hay không, sau đó tôi gọi cấu hình đích và sau đó áp dụng cấu hình một số tệp.Mục tiêu được gọi qua số <phingcall> không đặt thuộc tính khi gọi mục tiêu
Vấn đề là thuộc tính db.host
không được đặt sau phingcall, mặc dù nó được đặt sau thuộc tính.
Tôi đang thiếu gì?
<!-- base configuration -->
<property name="paths.config" value="config" />
<property name="paths.config.file" value="${paths.config}/environment.ini" />
<available file="${paths.config.file}" property="configured" />
<target name="configure">
<if>
<equals arg1="${configured}" arg2="true" />
<then>
<echo message="Reconfigure ..." />
</then>
<else>
<echo message="Configure ..." />
</else>
</if>
<propertyprompt propertyName="db.host" defaultValue="localhost" promptText="Mysql Server Host" />
</target>
<target name="skel">
<echo msg="Skel files..." />
<if>
<equals arg1="${configured}" arg2="${configured}" />
<then>
<echo message="Missing config file ..." />
<phingcall target="configure" />
</then>
</if>
<echo message="${db.host}" />
<copy todir="config">
<mapper type="glob" from="*.skel" to="*"/>
<filterchain>
<expandproperties />
</filterchain>
<fileset dir="config">
<include name="*.skel" />
</fileset>
</copy>
</target>