Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 19802 invoked from network); 5 Mar 2008 18:42:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 18:42:50 -0000 Received: (qmail 9776 invoked by uid 500); 5 Mar 2008 18:42:46 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 9758 invoked by uid 500); 5 Mar 2008 18:42:46 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 9749 invoked by uid 99); 5 Mar 2008 18:42:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 10:42:46 -0800 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of arkin@intalio.com does not designate 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 18:42:11 +0000 Received: by fg-out-1718.google.com with SMTP id 22so1625812fge.26 for ; Wed, 05 Mar 2008 10:42:20 -0800 (PST) Received: by 10.86.73.17 with SMTP id v17mr3356848fga.37.1204742539803; Wed, 05 Mar 2008 10:42:19 -0800 (PST) Received: by 10.86.100.18 with HTTP; Wed, 5 Mar 2008 10:42:19 -0800 (PST) Message-ID: <3de5d7d20803051042l37861f9cif21ef79d48d91c59@mail.gmail.com> Date: Wed, 5 Mar 2008 10:42:19 -0800 From: "Assaf Arkin" To: buildr-user@incubator.apache.org Subject: Re: javac's -cp flag (a buildr compilation bug?) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1640_27982388.1204742539814" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1640_27982388.1204742539814 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/5/08, Caleb Powell wrote: > > Hi, > > I was using buildr (1.2.1) to compile code in an existing Maven project. > The > compile task failed because the Java compiler (Sun JDK1.4.2_13 on Windows= ) > does not accept the > '-cp' alias. From what I can tell, the '-cp' alias was not introduced > until > the 1.5 compiler. Here was the output where JAVA_HOME was set to the Sun > 1.4.2_13 JDK; > > Compiling 403 source files in pharmacy-core:compile > javac: invalid flag: -cp > Usage: javac > where possible options include: > -g Generate all debugging info > -g:none Generate no debugging info > -g:{lines,vars,source} Generate only some debugging info > -nowarn Generate no warnings > -verbose Output messages about what the compiler is > doing > -deprecation Output source locations where deprecated APIs > are used > -classpath Specify where to find user class files > -sourcepath Specify where to find input source files > -bootclasspath Override location of bootstrap class files > -extdirs Override location of installed extensions > -d Specify where to place generated class files > -encoding Specify character encoding used by source > files > -source Provide source compatibility with specified > release > -target Generate class files for specific VM version > -help Print a synopsis of standard options > > rake aborted! > > Assuming that buildr should be compatible with the 1.4.x JDK's (is this > assumption wrong), than I think this qualifies as a bug (which could be > easily addressed by using 'classpath'). > > In the meantime, is there any workaround to this issue (short of using th= e > 1.5 JDK)? > > Cheers! Newer versions of Buildr invoke the Java compiler through RJB, so they're not affected but this and also run the build substantially faster. Assaf -- > Caleb > > "I do not know which makes a man more conservative=97to know nothing but = the > present, or nothing but the past." > - John Maynard Keynes > ------=_Part_1640_27982388.1204742539814--