code54 / buildversion-plugin

A maven plugin that extracts current build information from git projects
34 stars 9 forks source link

Compatibility with Windows #1

Closed trestletech closed 12 years ago

trestletech commented 12 years ago

(Thanks for the project -- it accomplishes just what I'm looking for from Linux).

I'm having a hard time getting the plugin to run successfully in Windows. If I run from the command line, I get the following error:

[ERROR] Failed to execute goal com.code54.mojo:buildversion-plugin:1.0.0:set-pro
perties (default) on project texasU: Execution default of goal com.code54.mojo:b
uildversion-plugin:1.0.0:set-properties failed: java.io.IOException: Cannot run
program "bash": CreateProcess error=2, The system cannot find the file specified

If I run from within Cygwin (where bash is available), I get a different error:

[ERROR] Failed to execute goal com.code54.mojo:buildversion-plugin:1.0.0:set-properties (default) on project texasU: Execution default of goal com.code54.mojo:buildversion-plugin:1.0.0:set-properties failed: For input string: "" -> [Help 1]

Do you have any ideas on a workaround for this? I was thrilled to get my app working with the features of your plugin, but Windows integration is a must for us. I'd normally take a stab at fixing it myself, but Clojure's completely new to me...

trestletech commented 12 years ago

Oops. Git wasn't on my PATH in either terminal Running it in Cygwin with Git on the path worked just fine.

Only possible improvement here would be a more informative "Git not on your path, you stupid user" error message. Sorry to bother you!