PHP-Propel-gen的“ convert-conf”目标失败
作者:互联网
我正在尝试从OSX 10.5上使用最新版本PHP&的schema.xml文件生成模型.推进1.3& ing.实际上,所有模型类都已创建,然后就消失了,就在最后一步.我已经尝试过
chmod -R 777 ./application/config
但这没有帮助.我也都尝试过
propel-gen ./ reverse
和
propel-gen ./ creole
两者均产生相同的错误.这个错误:
propel > convert-conf:
[echo] Output file: models-conf.php
[echo] XMLFile: /application/config/runtime-conf.xml
Execution of target "convert-conf" failed for the following reason: pear/data/propel_generator/build-propel.xml:514:20: No valid xmlConfFile specified.
[phingcall] /pear/data/propel_generator/build-propel.xml:514:20: No valid xmlConfFile specified.
Execution of target "main" failed for the following reason:
pear/data/propel_generator/build-propel.xml:94:18: Execution of the target buildfile failed. Aborting.
[phing] pear/data/propel_generator/build-propel.xml:94:18: Execution of the target buildfile failed. Aborting.
BUILD FINISHED
这是我的build.properties文件:
propel.project = models
propel.database = mysql
propel.database.encoding = utf8
propel.database.url = mysql:host=localhost;dbname={$myDBName}
propel.database.user = {$myDBuser}
propel.database.password = {$myDBpass}
propel.output.dir = /application
propel.php.dir = ${propel.output.dir}/
propel.sql.dir = ${propel.output.dir}/models/sql
propel.schema.dir = ${propel.output.dir}/config
propel.conf.dir = ${propel.output.dir}/config
propel.phpconf.dir = ${propel.output.dir}/config
propel.addGenericAccessors = true
有任何想法吗?
解决方法:
我发现我必须解决同样的问题才能解决
propel.runtime.conf.file=runtime-config.xml
在build.properties文件中.
之后,它运行完美.
标签:propel,phing,orm,php 来源: https://codeday.me/bug/20191108/2004676.html