You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/02/17 16:16:14 UTC
DO NOT REPLY [Bug 33622] New: -
Compiler dies with [javac] javac: invalid flag: -source 1.4
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33622>.
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:
-----------------------------------------------------
<javac destdir="${product.classes}" nowarn="on" debug="${java.debug}">
<compilerarg value="-source 1.4"/>
<classpath>
<fileset dir="../lib">
<patternset refid="compile.libs"/>
</fileset>
</classpath>
<src path="src"/>
</javac>
-----------------------------------------------------
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 <options> <source files>
[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 <path> Specify where to find user class files
[javac] -cp <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source files
[javac] -bootclasspath <path> Override location of bootstrap class files
[javac] -extdirs <dirs> Override location of installed extensions
[javac] -endorseddirs <dirs> Override location of endorsed standards
path
[javac] -d <directory> Specify where to place generated class
files
[javac] -encoding <encoding> Specify character encoding used by
source files
[javac] -source <release> Provide source compatibility with
specified release
[javac] -target <release> 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<flag> Pass <flag> 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