Robin Barnes
Robin Barnes

Reputation: 13541

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.

Upvotes: 0

Views: 1495

Answers (3)

bpizzi
bpizzi

Reputation: 31

Definitely a problem with the latest phing.

You should try :

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

Upvotes: 3

Robin Barnes
Robin Barnes

Reputation: 13541

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.

Upvotes: 1

Jan Fabry
Jan Fabry

Reputation: 7361

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.

Upvotes: 0

Related Questions