cowboyd/jenkins-plugin — Issue #10: 'jpi server' - fails on Windows
Author: klauern
Created: 2011-11-21 19:24:21+00:00
State: open

Following [instructions on the wiki][1], I tried running on windows:

```cmd
PS C:\mydocs\Ruby\jenkins-prototype-ruby-plugin> jruby -S bundle install
Using bundler (1.1.rc)
Using json (1.6.1)
Using jenkins-plugin-runtime (0.1.15)
Using jenkins-war (1.438)
Using rubyzip (0.9.4)
Using thor (0.14.6)
Using jenkins-plugin (0.1.16)
Using rack (1.3.5)
Using rack-protection (1.1.4)
Using tilt (1.3.3)
Using sinatra (1.3.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
PS C:\mydocs\Ruby\jenkins-prototype-ruby-plugin> jruby -S jpi
jpi - tools to create, build, develop and release Jenkins plugins

Usage: jpi command [arguments] [options]

Commands:
jpi help [COMMAND] # get help for COMMAND, or for jpi itself
jpi new NAME # create a new plugin called NAME
jpi generate [options] [arguments] # add new classes/templates and views t...
jpi build # build plugin into .hpi file suitable ...
jpi server # run a test server with plugin
jpi release # release to jenkins-ci.org
jpi version # show jpi version information

PS C:\mydocs\Ruby\jenkins-prototype-ruby-plugin> jruby -S jpi server
TypeError: can't convert Pathname into String
eval at org/jruby/RubyKernel.java:1093
load at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/specification.rb:109
find at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/specification.rb:119
find! at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-runtime-0.1.15/lib/jenkins/plugin/specification.rb:130
spec at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-0.1.16/lib/jenkins/plugin/cli.rb:61
server at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-0.1.16/lib/jenkins/plugin/cli.rb:33
__send__ at org/jruby/RubyBasicObject.java:1688
send at org/jruby/RubyKernel.java:2114
run at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:21
invoke_task at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118
dispatch at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor.rb:263
start at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389
(root) at C:/jruby-1.6.5/lib/ruby/gems/1.8/gems/jenkins-plugin-0.1.16/bin/jpi:5
load at org/jruby/RubyKernel.java:1073
(root) at C:/jruby-1.6.5/bin/jpi:19
PS C:\mydocs\Ruby\jenkins-prototype-ruby-plugin>
```

[1]: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+plugin+development+in+Ruby