Class BDIEnhancer

java.lang.Object
jadex.bdi.model.BDIEnhancer

public class BDIEnhancer extends Object
Helper class to enhance BDI classes at buildtime. Needs access the the BDI and dependent classes. Can be used as basis for custom build tool extensions (e.g. gradle task or maven plugin).
  • Constructor Details

    • BDIEnhancer

      public BDIEnhancer()
  • Method Details

    • enhanceBDIClasses

      public static void enhanceBDIClasses(String indir, String outdir)
      Enhance all BDI classes contained in a directory. If indir and outdir are the same (also outdir==null): - BDI classes are enhance in place and replace old classes. All other files are not changed. - Already enhanced BDI classes are detected and omitted. if outdir is different than indir: - BDI classes are enhanced and copied to the outdir. - All other files are copied without change to the outdir.
      Parameters:
      indir - The input directory (is recursivly scanned for BDI classes).
      outdir - The output directory (null for the same as indir).
    • main

      public static void main(String[] args) throws Exception
      Main for testing.
      Throws:
      Exception