This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185299 - [69cat][ruby][rake] Parameters to Rake tasks are passed incorrectly.
Summary: [69cat][ruby][rake] Parameters to Rake tasks are passed incorrectly.
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rake (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 05:24 UTC by esmithbss
Modified: 2010-05-03 07:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2010-04-30 05:24:57 UTC
Product Version = NetBeans IDE Dev (Build 201004260200)
Operating System = Linux version 2.6.32-21-generic running on i386
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When running or debugging a rake task which accepts parameters, the parameters are not filled in to the Rake task properly.

Given a rake task defined as:

  desc "A Task with parameters."
  task :task_with_parameter, :data_parameter, :needs => [:environment] do |t,args|
    data = args[:data_parameter]
    puts "Testing with #{data}"
  end

will output 

puts "Testing with data_parameter"

when called through the IDE and passing the parameter "ABC123.

The command that ends up in the log file is:

   "/usr/bin/rake RAILS_ENV=development -f /home/esmith/Development/Test/Rekefile task_with_parameters[data_parameter] ABC123"

which is incorrect

The proper command would be :

   "/usr/bin/rake RAILS_ENV=development -f /home/esmith/Development/Test/Rekefile task_with_parameters[ABC123]"
Comment 1 Quality Engineering 2010-05-01 05:18:24 UTC
Integrated into 'main-golden', will be available in build *201005010200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 2 Erno Mononen 2010-05-03 07:14:47 UTC
Thanks for the catch, should be fixed now in 425669cc1528.