Is the jar not considered also an option? This seems more readable, in my opinion. Wonder what your thoughts.
```
opts << '-jar' << File.basename(solr_jar)
command += opts
```