Im folgenden phing xml, innerhalb des "skel" Ziels überprüfe ich, ob die app konfiguriert ist, wenn es nicht ist, dann rufe ich das configure Ziel an und setze dann die Konfiguration auf mehrere Dateien.Das Ziel, das über <phingcall> aufgerufen wird, setzt keine Eigenschaften in aufrufendem Ziel
Das Problem ist, dass Eigenschaft db.host
nicht nach dem phingcall festgelegt ist, obwohl es nach dem Eigenschaftsaufruf gesetzt ist.
Was fehlt mir?
<!-- 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>