简体   繁体   中英

Error using propel, it can't find build-propel.xml

When trying to create a build using propel-gen (propel v 1.4) I get:

[phing] Error reading project file [wrapped: Unable to open /path/to/project/build-propel.xml for reading: ]

I can't find a reference to this file in the propel documentation.

Definitely a problem with the latest phing.

You should try :

$ pear uninstall -n phing/phing
$ pear install phing/phing-2.3.3

I realised that it was looking for files which are located in the propel/generator directory, but was using the current working directory as the base directory (I have propel-gen symlinked to /usr/bin so I can run it from anywhere).

The (kind of crappy) solution is just to cd into the propel/generator directory and run the build from there, so it uses that directory as the base path.

What version of Phing are your using? (Run phing -v to find out). Phing 2.4.x, the latest version, seems to break backwards compatibility , but it works with Phing 2.3.x, so try to downgrade to that version for now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM