|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.aspectj.AjcHelper
public class AjcHelper
A helper class for creating classpaths for the compilers and report mojos
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_EXCLUDES
|
static java.lang.String |
DEFAULT_INCLUDES
|
Constructor Summary | |
---|---|
AjcHelper()
|
Method Summary | |
---|---|
static java.lang.String |
createClassPath(org.apache.maven.project.MavenProject project,
java.util.List pluginArtifacts,
java.util.List outDirs)
Constructs AspectJ compiler classpath string |
protected static java.lang.String |
getAsCsv(java.lang.String[] strings)
Convert a string array to a comma seperated list |
static java.util.Set |
getBuildFilesForAjdtFile(java.lang.String ajdtBuildDefFile,
java.io.File basedir)
Based on a AJDT build properties file resolves the combination of all include and exclude statements and returns a set of all the files to be compiled and weaved. |
static java.util.Set |
getBuildFilesForSourceDirs(java.util.List sourceDirs,
java.lang.String[] includes,
java.lang.String[] excludes)
Based on a set of sourcedirs, apply include and exclude statements and returns a set of all the files to be compiled and weaved. |
static java.util.List |
readBuildConfigFile(java.lang.String fileName,
java.io.File outputDir)
Reads a buld config file, and retuns the List of all compiler arguments. |
protected static java.util.Set |
resolveIncludeExcludeString(java.lang.String input,
java.io.File basedir)
Helper method to find all .java or .aj files spesified by the includeString. |
static void |
writeBuildConfigToFile(java.util.List arguments,
java.lang.String fileName,
java.io.File outputDir)
Creates a file that can be used as input to the ajc compiler using the -argdfile flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_INCLUDES
public static final java.lang.String DEFAULT_EXCLUDES
Constructor Detail |
---|
public AjcHelper()
Method Detail |
---|
public static java.lang.String createClassPath(org.apache.maven.project.MavenProject project, java.util.List pluginArtifacts, java.util.List outDirs)
public static java.util.Set getBuildFilesForAjdtFile(java.lang.String ajdtBuildDefFile, java.io.File basedir) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static java.util.Set getBuildFilesForSourceDirs(java.util.List sourceDirs, java.lang.String[] includes, java.lang.String[] excludes) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static void writeBuildConfigToFile(java.util.List arguments, java.lang.String fileName, java.io.File outputDir) throws java.io.IOException
arguments
- All arguments passed to ajc in this runfileName
- the filename of the argfileoutputDir
- the build output area.
java.io.IOException
public static java.util.List readBuildConfigFile(java.lang.String fileName, java.io.File outputDir) throws java.io.IOException
fileName
- the filename of the argfileoutputDir
- the build output area
java.io.IOException
protected static java.lang.String getAsCsv(java.lang.String[] strings)
strings
-
protected static java.util.Set resolveIncludeExcludeString(java.lang.String input, java.io.File basedir) throws org.apache.maven.plugin.MojoExecutionException
src/main/java/ src/main/java src/main/java/com/project/AClass.java src/main/java/com/project/AnAspect.aj src/main/java/com/project/AnAspect.java
includeList
-
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |