ozone core API

org.ozoneDB.tools.OPP.compiler
Class ExternalJavaCompiler

java.lang.Object
  extended byorg.ozoneDB.tools.OPP.compiler.AbstractJavaCompiler
      extended byorg.ozoneDB.tools.OPP.compiler.ExternalJavaCompiler
All Implemented Interfaces:
JavaCompiler

public class ExternalJavaCompiler
extends AbstractJavaCompiler

Compiles resolver by starting an externalcompiler process.


Field Summary
private  java.lang.String compilerCommand
           
 
Fields inherited from class org.ozoneDB.tools.OPP.compiler.AbstractJavaCompiler
 
Constructor Summary
ExternalJavaCompiler(java.lang.String compilerCommand)
           
 
Method Summary
 void compile(java.util.Collection classes)
          Compiles the classes passed as strings in the classes parameter.
private  java.lang.String streamToString(java.io.InputStream stream)
           
 
Methods inherited from class org.ozoneDB.tools.OPP.compiler.AbstractJavaCompiler
getArguments, getArguments, getClasspath, getOutputPath, getSourcePath, isDebug, isDeprecation, isNoWarn, isOptimize, setClasspath, setDebug, setDeprecation, setNoWarn, setOptimize, setOutputPath, setSourcePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compilerCommand

private java.lang.String compilerCommand
Constructor Detail

ExternalJavaCompiler

public ExternalJavaCompiler(java.lang.String compilerCommand)
Parameters:
compilerCommand - The command to run the compiler..
Method Detail

compile

public void compile(java.util.Collection classes)
             throws CompilerException
Compiles the classes passed as strings in the classes parameter.

Parameters:
classes - The classes to compile
Throws:
CompilerException

streamToString

private java.lang.String streamToString(java.io.InputStream stream)

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.