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 E41F1D1C7 for ; Sat, 20 Oct 2012 11:42:32 +0000 (UTC) Received: (qmail 40889 invoked by uid 500); 20 Oct 2012 11:42:32 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 40831 invoked by uid 500); 20 Oct 2012 11:42:30 -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 40810 invoked by uid 99); 20 Oct 2012 11:42:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 11:42:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2012 11:42:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A310323888FE for ; Sat, 20 Oct 2012 11:41:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1400422 - /buildr/trunk/lib/buildr/java/commands.rb Date: Sat, 20 Oct 2012 11:41:45 -0000 To: commits@buildr.apache.org From: donaldp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121020114145.A310323888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: donaldp Date: Sat Oct 20 11:41:45 2012 New Revision: 1400422 URL: http://svn.apache.org/viewvc?rev=1400422&view=rev Log: Fix the matching of strings on windows to use regex Modified: buildr/trunk/lib/buildr/java/commands.rb Modified: buildr/trunk/lib/buildr/java/commands.rb URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/commands.rb?rev=1400422&r1=1400421&r2=1400422&view=diff ============================================================================== --- buildr/trunk/lib/buildr/java/commands.rb (original) +++ buildr/trunk/lib/buildr/java/commands.rb Sat Oct 20 11:41:45 2012 @@ -62,7 +62,7 @@ module Java # If our cmd line is longer, we create a batch file and execute it instead. if Util.win_os? && cmd_args.map(&:inspect).join(' ').size > 2048 # remove '-classpath' and the classpath itself from the cmd line. - cp_i = cmd_args.index{|x| x.starts_with('-classpath')} + cp_i = cmd_args.index{|x| x.to_s =~ /^-classpath/} 2.times do cmd_args.delete_at cp_i unless cp_i.nil? end