You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/06/21 17:07:26 UTC

[jira] Commented: (HARMONY-4253) [jdktools][samsa] samsa wrapper does not handle -J options

    [ https://issues.apache.org/jira/browse/HARMONY-4253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506929 ] 

Ivan Popov commented on HARMONY-4253:
-------------------------------------

This problem is solved in patch for HARMONY-4190. With this patch all tools wrappers support -J option. For example:

> jdk\bin\javac -J-Xint -J-showversion -version
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r549380, (Jun 21 2007), Windows/ia32/msvc 1310, debug build
http://harmony.apache.org
Eclipse Java Compiler 0.755, 3.3.0 milestone-7, Copyright IBM Corp 2000, 2007. All rights reserved.


> [jdktools][samsa] samsa wrapper does not handle -J options
> ----------------------------------------------------------
>
>                 Key: HARMONY-4253
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4253
>             Project: Harmony
>          Issue Type: Improvement
>          Components: JDK
>         Environment: Windows, Linux, harmony-jdk-r548946
>            Reporter: Ivan Popov
>
> In Harmony samsa wrapper is uses as a universal wrapper for jdk tools written in java. Most of these tools allow to use option -J to pass any options to underlaying JVM process. Here is example for Sun JDK:
> > %SUN_JDK%\bin\javac -version
> javac 1.5.0_06
> javac: no source files
> Usage: javac <options> <source files>
> 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 <path>          Specify where to find user class files
>   -cp <path>                 Specify where to find user class files
>   -sourcepath <path>         Specify where to find input source files
>   -bootclasspath <path>      Override location of bootstrap class files
>   -extdirs <dirs>            Override location of installed extensions
>   -endorseddirs <dirs>       Override location of endorsed standards path
>   -d <directory>             Specify where to place generated class files
>   -encoding <encoding>       Specify character encoding used by source files
>   -source <release>          Provide source compatibility with specified release
>   -target <release>          Generate class files for specific VM version
>   -version                   Version information
>   -help                      Print a synopsis of standard options
>   -X                         Print a synopsis of nonstandard options
>   -J<flag>                   Pass <flag> directly to the runtime system
> > %SUN_JDK%\bin\javac -J-showversion -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> javac 1.5.0_06
> javac: no source files
> Usage: javac <options> <source files>
> 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 <path>          Specify where to find user class files
>   -cp <path>                 Specify where to find user class files
>   -sourcepath <path>         Specify where to find input source files
>   -bootclasspath <path>      Override location of bootstrap class files
>   -extdirs <dirs>            Override location of installed extensions
>   -endorseddirs <dirs>       Override location of endorsed standards path
>   -d <directory>             Specify where to place generated class files
>   -encoding <encoding>       Specify character encoding used by source files
>   -source <release>          Provide source compatibility with specified release
>   -target <release>          Generate class files for specific VM version
>   -version                   Version information
>   -help                      Print a synopsis of standard options
>   -X                         Print a synopsis of nonstandard options
>   -J<flag>                   Pass <flag> directly to the runtime system
> For Harmony JDK tools using -J does not take any effect:
> > %HY_JDK%\bin\javac -version
> Eclipse Java Compiler 0.755, 3.3.0 milestone-7, Copyright IBM Corp 2000, 2007. All rights reserved.
> > %HY_JDK%\bin\javac -J-showversion -version
> Eclipse Java Compiler 0.755, 3.3.0 milestone-7, Copyright IBM Corp 2000, 2007. All rights reserved.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.