Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 030E99253 for ; Thu, 8 Mar 2012 19:40:33 +0000 (UTC) Received: (qmail 75842 invoked by uid 500); 8 Mar 2012 19:40:32 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 75814 invoked by uid 500); 8 Mar 2012 19:40:32 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 75806 invoked by uid 99); 8 Mar 2012 19:40:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 19:40:32 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rteabeault@rallydev.com designates 74.125.149.153 as permitted sender) Received: from [74.125.149.153] (HELO na3sys009aog125.obsmtp.com) (74.125.149.153) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 19:40:25 +0000 Received: from mail-gx0-f182.google.com ([209.85.161.182]) (using TLSv1) by na3sys009aob125.postini.com ([74.125.148.12]) with SMTP ID DSNKT1kLFNu2yzcPAVVXu95BtRvThgYu3Bmj@postini.com; Thu, 08 Mar 2012 11:40:04 PST Received: by ggnk4 with SMTP id k4so673769ggn.27 for ; Thu, 08 Mar 2012 11:40:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.171.67 with SMTP id as3mr8466302igc.61.1331235603568; Thu, 08 Mar 2012 11:40:03 -0800 (PST) Received: by 10.42.226.68 with HTTP; Thu, 8 Mar 2012 11:40:03 -0800 (PST) Date: Thu, 8 Mar 2012 12:40:03 -0700 Message-ID: Subject: Run task - Should the resources be on the classpath? From: Russ Teabeault To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=e89a8f234ce743587804bac07148 X-Gm-Message-State: ALoCoQkBl04VN/bLvmGS0pm2Ybnyd/Cj/92Wfb7SczYV6QsgDC/a6YYhGXOCYaFo6N3fPMB3q/Jk X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f234ce743587804bac07148 Content-Type: text/plain; charset=ISO-8859-1 If you look at the source code for the JavaRunner def run(task) fail "Missing :main option" unless task.options[:main] cp = project.compile.dependencies + [project.path_to(:target, :classes)] + task.classpath Java::Commands.java(task.options[:main], { :properties => jrebel_props(project).merge(task.options[:properties] || {}), :classpath => cp, :java_args => jrebel_args + (task.options[:java_args] || []) }) end You see that it automatically adds the projects compile dependencies and the target/classes directory to the classpath. Should it also not add target/resources to classpath? Thanks, Russell Teabeault --e89a8f234ce743587804bac07148--