buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Roth (JIRA)" <>
Subject [jira] [Created] (BUILDR-676) Java::Command:java rejects :dir option
Date Thu, 26 Sep 2013 04:06:02 GMT
John Roth created BUILDR-676:

             Summary: Java::Command:java rejects :dir option
                 Key: BUILDR-676
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.4.12
            Reporter: John Roth

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 } )

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:

View raw message