branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

Allow using japid commands from outside of the application directory #49

Closed gslowikowski closed 12 years ago

gslowikowski commented 12 years ago

Because relative paths are used in JapidCommands class there is no possibility to invoke Japid commands on an application when current directory is different from application's directory.

For example you can execute:

play start path_to_an_application

but you cannot:

play japid:regen path_to_an_application

The side effect of this pull request is in console logs. Absolute paths are logged instead of relative ones. The logging is not consistent, when cleaning relative paths are logged, when generating java classed - absolute ones. This could be improved.

branaway commented 12 years ago

later commits fixed a few issues with this pull request.