Class AspectJRuntime

    • 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)