Ejemplo n.º 1
0
 /**
  * The classpath to use when loading the compiler implementation if it is not a built-in one.
  *
  * @since Ant 1.8.0
  */
 public Path createCompilerClasspath() {
   return facade.getImplementationClasspath(getProject());
 }
Ejemplo n.º 2
0
 /**
  * Get the additional implementation specific command line arguments.
  *
  * @return array of command line arguments, guaranteed to be non-null.
  * @since Ant 1.5
  */
 public String[] getCurrentCompilerArgs() {
   getCompiler();
   return facade.getArgs();
 }
Ejemplo n.º 3
0
 /**
  * get the name of the current compiler
  *
  * @return the name of the compiler
  * @since Ant 1.5
  */
 public String getCompiler() {
   facade.setMagicValue(getProject().getProperty("build.rmic"));
   return facade.getImplementation();
 }
Ejemplo n.º 4
0
 /**
  * Adds an implementation specific command line argument.
  *
  * @return an object to be configured with a command line argument
  * @since Ant 1.5
  */
 public ImplementationSpecificArgument createCompilerArg() {
   ImplementationSpecificArgument arg = new ImplementationSpecificArgument();
   facade.addImplementationArgument(arg);
   return arg;
 }
Ejemplo n.º 5
0
 /**
  * Sets the compiler implementation to use; optional, defaults to the value of the <code>
  * build.rmic</code> property, or failing that, default compiler for the current VM
  *
  * @param compiler the compiler implementation to use
  * @since Ant 1.5
  */
 public void setCompiler(String compiler) {
   if (compiler.length() > 0) {
     facade.setImplementation(compiler);
   }
 }