protected void assembleArguments ( ) throws MojoExecutionException { if ( XhasMember ) { ajcOptions . add ( "-XhasMember" ) ; } // Add classpath ajcOptions . add ( "-classpath" ) ; ajcOptions . add ( AjcHelper . createClassPath ( project , null , getClasspathDirectories ( ) ) ) ; // Add boot classpath if ( null != bootclasspath ) { ajcOptions . add ( "-bootclasspath" ) ; ajcOptions . add ( bootclasspath ) ; } if ( null != Xjoinpoints ) { ajcOptions . add ( "-Xjoinpoints:" + Xjoinpoints ) ; } // Add warn option if ( null != warn ) { ajcOptions . add ( "-warn:" + warn ) ; } if ( null != proc ) { ajcOptions . add ( "-proc:" + proc ) ; } if ( Xset != null && ! Xset . isEmpty ( ) ) { StringBuilder sb = new StringBuilder ( "-Xset:" ) ; for ( Map . Entry < String , String > param : Xset . entrySet ( ) ) { sb . append ( param . getKey ( ) ) ; sb . append ( "=" ) ; sb . append ( param . getValue ( ) ) ; sb . append ( ' ' ) ; } ajcOptions . add ( sb . substring ( 0 , sb . length ( ) - 1 ) ) ; } // Add artifacts or directories to weave String joinedWeaveDirectories = null ; if ( weaveDirectories != null ) { joinedWeaveDirectories = StringUtils . join ( weaveDirectories , File . pathSeparator ) ; } addModulesArgument ( "-inpath" , ajcOptions , weaveDependencies , joinedWeaveDirectories , "dependencies and/or directories to weave" ) ; // Add library artifacts addModulesArgument ( "-aspectpath" , ajcOptions , aspectLibraries , getAdditionalAspectPaths ( ) , "an aspect library" ) ; // Add xmlConfigured option and argument if ( null != xmlConfigured ) { ajcOptions . add ( "-xmlConfigured" ) ; ajcOptions . add ( xmlConfigured . getAbsolutePath ( ) ) ; } // add target dir argument ajcOptions . add ( "-d" ) ; ajcOptions . add ( getOutputDirectory ( ) . getAbsolutePath ( ) ) ; ajcOptions . add ( "-s" ) ; ajcOptions . add ( getGeneratedSourcesDirectory ( ) . getAbsolutePath ( ) ) ; // Add all the files to be included in the build, if ( null != ajdtBuildDefFile ) { resolvedIncludes = AjcHelper . getBuildFilesForAjdtFile ( ajdtBuildDefFile , basedir ) ; } else { resolvedIncludes = getIncludedSources ( ) ; } ajcOptions . addAll ( resolvedIncludes ) ; }
Assembles a complete ajc compiler arguments list .