mwaylabs / Espresso

The-M-Projects build tools using node.js.
www.the-m-project.org
Other
84 stars 28 forks source link

"Fix" the project generator (espresso init) #32

Closed 4z3 closed 12 years ago

4z3 commented 12 years ago

Making The-M-Project a Git submodule triggered a bug in the project generator (espresso init) that caused an exception to be thrown when the source directory (i.e. frameworks/The-M-Projects) has more directories than the target directory (i.e. the generated directory) and thus source files get copied to non-existing directories.

The core problem is that the target directory structure is hard-coded in the project generator and thus already "knows" how The-M-Project's directory structure looks like.

This commit simply ignores any failed attempt to copy over a file and works "good enough".

In the (not so) long term we'd like to have more dynamic project generator, I guess... ^_^