Class SimpleJDTCompiler


  • public class SimpleJDTCompiler
    extends java.lang.Object
    A convenience wrapper around the eclipse jdt Java compiler that accepts a source folder, an output and - most importantly - a class loader as class path (this is the way it should always have been!)
    Author:
    hb
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String UTF8  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleJDTCompiler​(java.io.File[] srcs, java.io.File outRoot, java.lang.ClassLoader classPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compile()  
      boolean isSuccesful()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleJDTCompiler

        public SimpleJDTCompiler​(java.io.File[] srcs,
                                 java.io.File outRoot,
                                 java.lang.ClassLoader classPath)
    • Method Detail

      • compile

        public boolean compile()
      • isSuccesful

        public boolean isSuccesful()