Author: ningjiang
Date: Mon Dec 12 04:16:28 2011
New Revision: 1213139

URL: http://svn.apache.org/viewvc?rev=1213139&view=rev
Log:
CXF-3972 Fixed the rt-javascript build error

Modified:
    
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java

Modified: 
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java?rev=1213139&r1=1213138&r2=1213139&view=diff
==============================================================================
--- 
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
 (original)
+++ 
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
 Mon Dec 12 04:16:28 2011
@@ -238,6 +238,13 @@ public abstract class AbstractCodegenMoh
             classLoaderSwitcher.restoreClassLoader();
         }
 
+        // add the generated source into compile source
+        if (project != null && getGeneratedSourceRoot() != null && 
getGeneratedSourceRoot().exists()) {
+            
project.addCompileSourceRoot(getGeneratedSourceRoot().getAbsolutePath());
+        }
+        if (project != null && getGeneratedTestRoot() != null && 
getGeneratedTestRoot().exists()) {
+            
project.addTestCompileSourceRoot(getGeneratedTestRoot().getAbsolutePath());
+        }
 
         System.gc();
     }


Reply via email to