[jboss-cvs] JBossAS SVN: r64460 - projects/aop/trunk/maven-jbossaop-plugin/src/main/java/org/jboss/maven/plugins.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Aug 5 19:01:20 EDT 2007


Author: stalep
Date: 2007-08-05 19:01:20 -0400 (Sun, 05 Aug 2007)
New Revision: 64460

Modified:
   projects/aop/trunk/maven-jbossaop-plugin/src/main/java/org/jboss/maven/plugins/JBossAOPCMojo.java
Log:
[JBAOP-448] Added support for -aopclasspath, and maven debug message

Modified: projects/aop/trunk/maven-jbossaop-plugin/src/main/java/org/jboss/maven/plugins/JBossAOPCMojo.java
===================================================================
--- projects/aop/trunk/maven-jbossaop-plugin/src/main/java/org/jboss/maven/plugins/JBossAOPCMojo.java	2007-08-04 11:54:31 UTC (rev 64459)
+++ projects/aop/trunk/maven-jbossaop-plugin/src/main/java/org/jboss/maven/plugins/JBossAOPCMojo.java	2007-08-05 23:01:20 UTC (rev 64460)
@@ -119,7 +119,7 @@
     * 
     * @parameter expression="${compilerClassPath}" default-value=""
     */
-   private String compilerClasspath;
+   private String compilerClassPath;
 
    /**
     * @parameter default-value="${project.compileDependencies}"
@@ -185,6 +185,9 @@
       if(hasReport())
          cl.addArguments(new String[] { "-report"});
       
+      if(getAopClassPath() != null && getAopClassPath().length() > 0)
+         cl.addArguments(new String[] { "-aopclasspath", getAopClassPath()});
+      
       cl.addArguments(new String[] { "-aoppath", getAoppath()});
       
       if(includes != null && includes.length > 0)
@@ -209,6 +212,10 @@
             cl.addArguments(new String[] { project.getBuild().getOutputDirectory()});
       }
 
+      if(getLog().isDebugEnabled()) 
+      { 
+         getLog().debug("Executing aopc: "+cl.toString()); 
+      }
       return cl;
    }
 
@@ -227,7 +234,6 @@
       }
       catch (CommandLineException e)
       {
-         // TODO Auto-generated catch block
          e.printStackTrace();
       }
    }
@@ -261,9 +267,9 @@
       return classPath;
    }
 
-   private String getCompilerClasspath()
+   private String getCompilerClassPath()
    {
-      return compilerClasspath;
+      return compilerClassPath;
    }
 
    private boolean isVerbose()
@@ -285,6 +291,11 @@
    {
       return report;
    }
+   
+   private String getAopClassPath()
+   {
+      return aopClassPath;
+   }
 
    protected boolean isTest()
    {




More information about the jboss-cvs-commits mailing list