开发者

Setting multiple Phing properties from command line

开发者 https://www.devze.com 2023-02-20 04:29 出处:网络
<?xml version=\"1.0\" ?> <project name=\"first\" basedir=\".\" default=\"build-skelet开发者_开发知识库on\">
<?xml version="1.0" ?>
<project name="first" basedir="." default="build-skelet开发者_开发知识库on">

    <property name="dirName" value="module" />
    <property name="fileName" value="config" />

    <target name="build-skeleton" description="Making folders">
        <mkdir dir="./${dirName}/Block" />
        <touch file="./${dirName}/etc/${fileName}.xml" />
    </target>

</project>

phing -f mage_module.xml -DdirName=moduleX,fileName=config

phing -f mage_module.xml -DdirName=moduleX fileName=config

Both throw an error - no surprise there.

Is it possible to set multiple properties in Phing via command line?


Just repeating the -D parameter should work:

phing -f mage_module.xml -DdirName=moduleX -DfileName=config
0

精彩评论

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