Hi Trond, Thanks for your help!
For a start, I'm running OSX (not windoze). OK, it seems that I have successfully installed the cucmber-java gem....I think. I couldn't get the jruby -S rake gem step to work from the cucumber-java directory. If I did this, all I get is * README.txt is missing or in the wrong format for auto-intuiting. run `sow blah` and look at its text files ** History.txt is missing or in the wrong format for auto-intuiting. run `sow blah` and look at its text files rake aborted! Don't know how to build task 'lib/cucumber-java-0.0.2.jar' (See full trace by running task with --trace) It seems that I can install the cucumber-java gem by just doing jruby -S gem install cucumber-java So I definitely have cucumber-java gem installed. I assume that now I should be able to run the examples. But, if I go to the examples/simple/features directory, and run $ jruby -S cucumber features no such file to load -- cucumber/pico_container Failed to load ./support/env.rb (LoadError) /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:81:in `require_files' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:75:in `each' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:75:in `require_files' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:34:in `execute!' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:20:in `execute' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/cucumber:8 /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/cucumber:19:in `load' /Users/dev/tools/jruby-1.1.4/bin/cucumber:19 So I then added the directory with cucumber/pico_container.rb in it to the classpath. try again, and now get no such file to load -- cucumber-java-0.0.2 Failed to load ./support/env.rb (LoadError) /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:81:in `require_files' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:75:in `each' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:75:in `require_files' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:34:in `execute!' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/../lib/cucumber/cli/main.rb:20:in `execute' /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/cucumber:8 /Users/dev/tools/jruby-1.1.4/lib/ruby/gems/1.8/gems/cucumber-0.3.5/bin/cucumber:19:in `load' /Users/dev/tools/jruby-1.1.4/bin/cucumber:19 So, I guess I have again missed something.... Cheers, Raymond Barlow 2009/5/18 Trond Marius Øvstetun <tr...@ovstetun.no> > > On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow <rbar...@raymanoz.com>wrote: > >> OK, that seemed to help a bit. That installed a bunch of stuff, and then I >> did the mvn clean package in the examples directory--which built the example >> jar. >> >> So I guess my next step would be to >> cucumber features >> in the featuers directory of the simple example? >> >> I tried this a got an error about pico_container. So I thought that maybe >> I hadn't setup correctly. >> >> So, back to the start. >> >> did >> jruby -S gem install hoe --no-rdoc --no-ri >> and that worked fine. >> >> The next step listed on the cucumber-java >> page<http://github.com/aslakhellesoy/cucumber_java/tree/master>is to >> jruby -S rake gem >> >> when I do this, I get this error: >> (in /Users/rbarlow/Development/tools/cucumber_java) >> rake aborted! >> Don't know how to build task 'gem' >> > > The task you are referring to should be run from the cucumber-java > subproject, not the root project. > I have had problems running the rake tasks using Windows (both cygwin and > the regular cmd-tool) and had to edit the Rakefile manually for my > environment. > After installing your own gem using jruby -S gem install pkg/cucumber... > you can run mvn cucumber:features from each of the example-projects. > > >> >> (See full trace by running task with --trace) >> >> Am I perhaps in the wrong directory when I do this? >> >> >> >> Sorry, just feeling my way around at the moment. >> >> >> Cheers! >> Raymond Barlow >> 2009/5/16 aslak hellesoy <aslak.helle...@gmail.com> >> >> > Hi all, >>> > >>> > Does anyone have an example of how to get the cucumber-java simple >>> example >>> > running? I would like to use cucumber-java but cannot figure out how. >>> > >>> > I've gem installed cucumber and cucumber-java. When I run mvn clean >>> package >>> > in the simple directory, I get this error: >>> > >>> > 19:41:48 agentdh-2:~/Development/tools/cucumber_java/examples/simple >>> > rbarlow$ mvn clean package >>> > Using Java version: 1.5 >>> > [INFO] Scanning for projects... >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Building Cucumber Simple Example >>> > [INFO] task-segment: [clean, package] >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > Downloading: >>> > >>> http://repo1.maven.org/maven2/cucumber/cucumber-java-parent/0.0.2/cucumber-java-parent-0.0.2.pom >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [ERROR] BUILD ERROR >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Failed to resolve artifact. >>> > >>> > GroupId: cucumber >>> > ArtifactId: cucumber-java-parent >>> > Version: 0.0.2 >>> > >>> > Reason: Unable to download the artifact from any repository >>> > >>> > cucumber:cucumber-java-parent:pom:0.0.2 >>> > >>> > from the specified remote repositories: >>> > central (http://repo1.maven.org/maven2) >>> > >>> > >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] For more information, run Maven with the -e switch >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > [INFO] Total time: 1 second >>> > [INFO] Finished at: Sat May 16 19:41:52 BST 2009 >>> > [INFO] Final Memory: 1M/3M >>> > [INFO] >>> > >>> ------------------------------------------------------------------------ >>> > >>> > Any suggestions? Or does anyone have an equivalent ant script? >>> > >>> >>> Try mvn install from the root folder first. >>> >>> Aslak >>> >>> > Cheers, >>> > Raymond Barlow >>> > >>> > _______________________________________________ >>> > rspec-users mailing list >>> > rspec-users@rubyforge.org >>> > http://rubyforge.org/mailman/listinfo/rspec-users >>> > >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >> >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > > > > -- > TronD > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users