code: private void addSource() {
  
      	// TODO this should be shared between here and IDLReader
      	File generatedSources = new File(getBaseDir(), generatedSourceDir);
  
          this.getProject().addCompileSourceRoot( generatedSources.getAbsolutePath() );
          this.getLog().debug( "Source directory " + generatedSources + " added." );
  	}
docs: Add the generated-sources directory to the classpath.
  <p>
  This one-liner is nicked from build-helper-maven-plugin v1.4, AddSourceMojo.java.