Class SunRmic

All Implemented Interfaces:
RmicAdapter

public class SunRmic extends DefaultRmicAdapter
The implementation of the rmic for SUN's JDK.
Since:
Ant 1.4
  • Field Details

    • RMIC_CLASSNAME

      public static final String RMIC_CLASSNAME
      name of the class
      See Also:
    • COMPILER_NAME

      public static final String COMPILER_NAME
      the name of this adapter for users to select
      See Also:
    • RMIC_EXECUTABLE

      public static final String RMIC_EXECUTABLE
      name of the executable
      See Also:
    • ERROR_NO_RMIC_ON_CLASSPATH

      public static final String ERROR_NO_RMIC_ON_CLASSPATH
      Error message to use with the sun rmic is not the classpath.
      See Also:
    • ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9

      public static final String ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9
      See Also:
    • ERROR_RMIC_FAILED

      public static final String ERROR_RMIC_FAILED
      Error message to use when there is an error starting the sun rmic compiler
      See Also:
  • Constructor Details

    • SunRmic

      public SunRmic()
  • Method Details

    • execute

      public boolean execute() throws BuildException
      Run the rmic compiler.
      Returns:
      true if the compilation succeeded
      Throws:
      BuildException - on error
    • preprocessCompilerArgs

      protected String[] preprocessCompilerArgs(String[] compilerArgs)
      Strip out all -J args from the command list.
      Overrides:
      preprocessCompilerArgs in class DefaultRmicAdapter
      Parameters:
      compilerArgs - the original compiler arguments
      Returns:
      the filtered set.