Class AspectJCompileOptions
- java.lang.Object
-
- org.gradle.api.tasks.compile.AbstractOptions
-
- io.freefair.gradle.plugins.aspectj.AspectJCompileOptions
-
- All Implemented Interfaces:
Serializable
public class AspectJCompileOptions extends AbstractOptions
Compilation options to be passed to the AspectJ compiler.- See Also:
GroovyCompileOptions
,ScalaCompileOptions
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AspectJCompileOptions(ObjectFactory objectFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ConfigurableFileCollection
getAspectpath()
Weave binary aspects from jar files and directories on path into all sources.ConfigurableFileCollection
getBootclasspath()
Override location of VM's bootclasspath for purposes of evaluating types when compiling.List<String>
getCompilerArgs()
Any additional arguments to be passed to the compiler.List<CommandLineArgumentProvider>
getCompilerArgumentProviders()
Property<Boolean>
getCrossrefs()
Generate a build .ajsym file into the output directory.Property<String>
getEncoding()
Specify default source encoding format.ConfigurableFileCollection
getExtdirs()
Override location of VM's extension directories for purposes of evaluating types when compiling.AjcForkOptions
getForkOptions()
Options for running the compiler in a child process.ConfigurableFileCollection
getInpath()
Accept as source bytecode any .class files in the .jar files or directories on Path.RegularFileProperty
getOutjar()
Put output classes in zip file output.jar.Property<Boolean>
getOutxml()
Generate aop xml file for load-time weaving with default name (META-INF/aop-ajc.xml).RegularFileProperty
getOutxmlfile()
Generate aop.xml file for load-time weaving with custom name.ConfigurableFileCollection
getSourceroots()
Find and build all .java or .aj source files under any directory listed in DirPaths.Property<Boolean>
getVerbose()
Emit messages about accessed/processed compilation units.int
hashCode()
void
setCompilerArgs(List<String> compilerArgs)
Any additional arguments to be passed to the compiler.void
setCompilerArgumentProviders(List<CommandLineArgumentProvider> compilerArgumentProviders)
void
setForkOptions(AjcForkOptions forkOptions)
Options for running the compiler in a child process.String
toString()
-
Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions
define, excludeFromAntProperties, getAntPropertyName, getAntPropertyValue, optionMap
-
-
-
-
Constructor Detail
-
AspectJCompileOptions
public AspectJCompileOptions(ObjectFactory objectFactory)
-
-
Method Detail
-
getInpath
public ConfigurableFileCollection getInpath()
Accept as source bytecode any .class files in the .jar files or directories on Path. The output will include these classes, possibly as woven with any applicable aspects. Path is a single argument containing a list of paths to zip files or directories.
-
getAspectpath
public ConfigurableFileCollection getAspectpath()
Weave binary aspects from jar files and directories on path into all sources. The aspects should have been output by the same version of the compiler. When running the output classes, the run classpath should contain all aspectpath entries. Path, like classpath, is a single argument containing a list of paths to jar files.
-
getOutjar
public RegularFileProperty getOutjar()
Put output classes in zip file output.jar.
-
getOutxml
public Property<Boolean> getOutxml()
Generate aop xml file for load-time weaving with default name (META-INF/aop-ajc.xml).
-
getOutxmlfile
public RegularFileProperty getOutxmlfile()
Generate aop.xml file for load-time weaving with custom name.
-
getSourceroots
public ConfigurableFileCollection getSourceroots()
Find and build all .java or .aj source files under any directory listed in DirPaths. DirPaths, like classpath, is a single argument containing a list of paths to directories.
-
getCrossrefs
public Property<Boolean> getCrossrefs()
Generate a build .ajsym file into the output directory. Used for viewing crosscutting references by tools like the AspectJ Browser.
-
getBootclasspath
public ConfigurableFileCollection getBootclasspath()
Override location of VM's bootclasspath for purposes of evaluating types when compiling. Path is a single argument containing a list of paths to zip files or directories.
-
getExtdirs
public ConfigurableFileCollection getExtdirs()
Override location of VM's extension directories for purposes of evaluating types when compiling. Path is a single argument containing a list of paths to directories.
-
getVerbose
public Property<Boolean> getVerbose()
Emit messages about accessed/processed compilation units.
-
getCompilerArgs
public List<String> getCompilerArgs()
Any additional arguments to be passed to the compiler.
-
getCompilerArgumentProviders
public List<CommandLineArgumentProvider> getCompilerArgumentProviders()
-
getForkOptions
public AjcForkOptions getForkOptions()
Options for running the compiler in a child process.
-
setCompilerArgs
public void setCompilerArgs(List<String> compilerArgs)
Any additional arguments to be passed to the compiler.
-
setCompilerArgumentProviders
public void setCompilerArgumentProviders(List<CommandLineArgumentProvider> compilerArgumentProviders)
-
setForkOptions
public void setForkOptions(AjcForkOptions forkOptions)
Options for running the compiler in a child process.
-
canEqual
protected boolean canEqual(Object other)
-
-