Class AspectJRuntime


  • public class AspectJRuntime
    extends java.lang.Object
    See Also:
    GroovyRuntime
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FileCollection inferAspectjClasspath​(FileCollection classpath)
      Searches the specified class path for AspectJ Jars (aspectjrt, aspectjweaver) and returns a corresponding class path for executing AspectJ tools such as the ajc compiler.
      • Methods inherited from class java.lang.Object

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

      • AspectJRuntime

        public AspectJRuntime​(Project project)
    • Method Detail

      • inferAspectjClasspath

        public FileCollection inferAspectjClasspath​(FileCollection classpath)
        Searches the specified class path for AspectJ Jars (aspectjrt, aspectjweaver) and returns a corresponding class path for executing AspectJ tools such as the ajc compiler. The tool versions will match those of the AspectJ Jars found.

        The returned class path may be empty, or may fail to resolve when asked for its contents.

        Parameters:
        classpath - a class path containing AspectJ Jars
        Returns:
        a corresponding class path for executing AspectJ tools such as the AspectJ compiler
        See Also:
        GroovyRuntime.inferGroovyClasspath(Iterable)