Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 497B010429 for ; Thu, 26 Sep 2013 04:06:18 +0000 (UTC) Received: (qmail 27886 invoked by uid 500); 26 Sep 2013 04:06:17 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 27709 invoked by uid 500); 26 Sep 2013 04:06:06 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 27618 invoked by uid 500); 26 Sep 2013 04:06:04 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 27604 invoked by uid 99); 26 Sep 2013 04:06:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 04:06:02 +0000 Date: Thu, 26 Sep 2013 04:06:02 +0000 (UTC) From: "John Roth (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (BUILDR-676) Java::Command:java rejects :dir option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 John Roth created BUILDR-676: -------------------------------- Summary: 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 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