Rake Task Runner and two parameters

View: New views
2 Messages — Rating Filter:   Alert me  

Rake Task Runner and two parameters

by Paul Rosen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

How do you pass two parameters to a rake task using rake task runner?

I tried putting:

param1=XXX param2=YYY

in the parameters input box but that just sets param1 to "XXX param2=YYY"

Thanks,
Paulie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Rake Task Runner and two parameters

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paul,

This indeed doesn't seem to work; not quite sure now why not - I
experimented with this a bit and the same command that the IDE runs
works as expected from the command line, but not when run from the IDE.
I'll have to take a deeper look at this (I filed
http://www.netbeans.org/issues/show_bug.cgi?id=174521, will fix for
6.8). Unfortunately I can't think of a convenient workaround for this
now; setting the params to Rake Arguments in Project Properties -> Run
helps, but then they will be passed to every task you run. Another way
is to set the params to ENV yourself. But as I said, clearly these
workarounds are far from ideal.

Cheers,
Erno

Paul Rosen wrote:

> Hi all,
>
> How do you pass two parameters to a rake task using rake task runner?
>
> I tried putting:
>
> param1=XXX param2=YYY
>
> in the parameters input box but that just sets param1 to "XXX param2=YYY"
>
> Thanks,
> Paulie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...