<< Back to previous view

[QB-1678] Ruby Rake builder sets Build Properties incorrectly
Created: 18/Jun/13  Updated: 19/Jun/13

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 5.0.22
Fix Version/s: 5.0.25

Type: Bug Priority: Minor
Reporter: Alexey Shumkin Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Server Information
System Date and Time 2013-06-18 11:30:29
Operating System Linux 2.6.33.7-co-0.7.9, i386
JVM OpenJDK Client VM 1.6.0_20, Sun Microsystems Inc.
QuickBuild Version 5.0.22 - Thu May 30 09:54:46 MSK 2013


 Description   
I'm trying to migrate from building by Want to Rake (Want is an analog of Ant for building Delphi projects; It "understands" the same Ant's options, so I use a build step of type Ant)
I've added a build step of type Rake. In it's properties I've set "Build Properties" (pairs like <property>=<value>)
When this step is run it executes Ruby Rake (on a Windows node):
rake.bat -D<property1>=<value1> -D<property2>=<value2>.... blah-blah --rakefile <rakefile> <task1> <task2>...

but Ruby Rake does not "understand" such a notation of properties.
It handles notation
rake <property>=<value> ... --rakefile <rakefile> <tasks...>
(without -D switch)

P.S. Internally rake sets these defined properties to environment variables so we can partly "workaround" such a behaviour by setting Environment Variables, but conception is broken.
P.P.S Also, one could override Rake's behaviour with command line options but -D option is reserved by Rake:
rake --help
...
Options are ...
...
    -D, --describe [PATTERN] Describe the tasks (matching optional PATTERN), then exit.
...

 Comments   
Comment by Alexey Shumkin [ 19/Jun/13 01:24 PM ]
Confirmed fixed
Generated at Wed May 15 18:53:13 UTC 2024 using JIRA 189.