[
https://issues.apache.org/jira/browse/BUILDR-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Donald closed BUILDR-676.
-------------------------------
Resolution: Fixed
Assignee: Peter Donald
Fix applied in r1527119.
Thanks!
> Java::Command:java rejects :dir option
> --------------------------------------
>
> Key: BUILDR-676
> URL: https://issues.apache.org/jira/browse/BUILDR-676
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.12
> Reporter: John Roth
> Assignee: Peter Donald
>
> Supplying the :dir option results in "ArgumentError : no such option: dir"
> This contradicts the documentation and the intent of subsequnt code ("if
> options[:dir]...")
> Probably fix by just adding ":dir" to the arguments to rake_check_options.
> Plus a test...
> Example buildfile
> define 'app' do
> define 'subproject' do
> // want to run this in the subproject directory.
> task runSomething do |task|
> Java::Commands::java( ["org.example.SomeApp", "anOption"],
> { :classpath => path, :dir =>
> project.base_dir } )
> end
> end
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira