Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 60410 invoked from network); 17 Feb 2005 15:16:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Feb 2005 15:16:20 -0000 Received: (qmail 25032 invoked by uid 500); 17 Feb 2005 15:16:18 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 24988 invoked by uid 500); 17 Feb 2005 15:16:18 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 24973 invoked by uid 99); 17 Feb 2005 15:16:18 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Feb 2005 07:16:17 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j1HFGELE007760 for ; Thu, 17 Feb 2005 16:16:14 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j1HFGEuk007758; Thu, 17 Feb 2005 16:16:14 +0100 Date: Thu, 17 Feb 2005 16:16:14 +0100 Message-Id: <200502171516.j1HFGEuk007758@ajax.apache.org> From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 33622] New: - Compiler dies with [javac] javac: invalid flag: -source 1.4 X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33622 Summary: Compiler dies with [javac] javac: invalid flag: -source 1.4 Product: Ant Version: 1.6.2 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: ant@sourceillustrated.com I'm using jdk 1.5 but need to compile my classes with the -source 1.4 option to javac. I have my target configured as: ----------------------------------------------------- ----------------------------------------------------- Running ant gives me the following output: ----------------------------------------------------- build.product: [copy] Copying 11 files to /tmp/firefoxdownloads/xplanner_0.6.2/xplanner/build/classes/product [javac] Compiling 242 source files to /tmp/firefoxdownloads/xplanner_0.6.2/xplanner/build/classes/product [javac] javac: invalid flag: -source 1.4 [javac] Usage: javac [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source} Generate only some debugging info [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath Specify where to find user class files [javac] -cp Specify where to find user class files [javac] -sourcepath Specify where to find input source files [javac] -bootclasspath Override location of bootstrap class files [javac] -extdirs Override location of installed extensions [javac] -endorseddirs Override location of endorsed standards path [javac] -d Specify where to place generated class files [javac] -encoding Specify character encoding used by source files [javac] -source Provide source compatibility with specified release [javac] -target Generate class files for specific VM version [javac] -version Version information [javac] -help Print a synopsis of standard options [javac] -X Print a synopsis of nonstandard options [javac] -J Pass directly to the runtime system ----------------------------------------------------- This is a valid javac flag, and it works fine from the command line. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org