View Javadoc

1   /*
2    * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package de.smartics.maven.issue.util; // NOPMD
17  
18  import java.io.File;
19  import java.io.IOException;
20  import java.io.Writer;
21  import java.util.List;
22  import java.util.Map;
23  import java.util.Properties;
24  import java.util.Set;
25  
26  import org.apache.maven.artifact.Artifact;
27  import org.apache.maven.artifact.DependencyResolutionRequiredException;
28  import org.apache.maven.artifact.factory.ArtifactFactory;
29  import org.apache.maven.artifact.repository.ArtifactRepository;
30  import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
31  import org.apache.maven.model.Build;
32  import org.apache.maven.model.CiManagement;
33  import org.apache.maven.model.Contributor;
34  import org.apache.maven.model.DependencyManagement;
35  import org.apache.maven.model.Developer;
36  import org.apache.maven.model.DistributionManagement;
37  import org.apache.maven.model.IssueManagement;
38  import org.apache.maven.model.License;
39  import org.apache.maven.model.MailingList;
40  import org.apache.maven.model.Model;
41  import org.apache.maven.model.Organization;
42  import org.apache.maven.model.Plugin;
43  import org.apache.maven.model.PluginManagement;
44  import org.apache.maven.model.Prerequisites;
45  import org.apache.maven.model.Reporting;
46  import org.apache.maven.model.Resource;
47  import org.apache.maven.model.Scm;
48  import org.apache.maven.project.MavenProject;
49  import org.apache.maven.project.ProjectBuilderConfiguration;
50  import org.apache.maven.project.artifact.InvalidDependencyVersionException;
51  import org.codehaus.plexus.logging.Logger;
52  import org.codehaus.plexus.util.xml.Xpp3Dom;
53  
54  import de.smartics.util.lang.StringFunction;
55  
56  /**
57   * A helper to normalize the description value.
58   */
59  public final class MavenProjectWrapper extends MavenProject
60  { // NOPMD
61    // ********************************* Fields *********************************
62  
63    // --- constants ------------------------------------------------------------
64  
65    // --- members --------------------------------------------------------------
66  
67    /**
68     * The Maven project being wrapped and fixed by this instance.
69     */
70    private final MavenProject wrapped;
71  
72    // ****************************** Initializer *******************************
73  
74    // ****************************** Constructors ******************************
75  
76    /**
77     * Constructor.
78     *
79     * @param wrapped the Maven project being wrapped and fixed by this instance.
80     */
81    public MavenProjectWrapper(final MavenProject wrapped)
82    {
83      this.wrapped = wrapped;
84    }
85  
86    // ****************************** Inner Classes *****************************
87  
88    // ********************************* Methods ********************************
89  
90    // --- init -----------------------------------------------------------------
91  
92    // --- get&set --------------------------------------------------------------
93  
94    // --- business -------------------------------------------------------------
95  
96    /**
97     * Returns the project description.
98     *
99     * @return the project description or <code>null</code> if a description is
100    *         not present.
101    */
102   @Override
103   public String getDescription()
104   {
105     final String description = wrapped.getDescription();
106     if (description != null)
107     {
108       final String normalizedDescription = StringFunction.strip(description);
109       return normalizedDescription;
110     }
111     else
112     {
113       return null;
114     }
115   }
116 
117   // CHECKSTYLE:OFF
118   @Override
119   public String getName()
120   {
121     final String name = wrapped.getName();
122     if (name != null)
123     {
124       final String normalizedName = StringFunction.strip(name);
125       return normalizedName;
126     }
127     else
128     {
129       return name;
130     }
131   }
132 
133   @Override
134   public String getModulePathAdjustment(final MavenProject moduleProject)
135     throws IOException
136   {
137     return wrapped.getModulePathAdjustment(moduleProject);
138   }
139 
140   @Override
141   public Artifact getArtifact()
142   {
143     return wrapped.getArtifact();
144   }
145 
146   @Override
147   public void setArtifact(final Artifact artifact)
148   {
149     wrapped.setArtifact(artifact);
150   }
151 
152   @Override
153   public Model getModel()
154   {
155     return wrapped.getModel();
156   }
157 
158   @Override
159   public MavenProject getParent()
160   {
161     return wrapped.getParent();
162   }
163 
164   @Override
165   public void setParent(final MavenProject parent)
166   {
167     wrapped.setParent(parent);
168   }
169 
170   @Override
171   @SuppressWarnings("rawtypes")
172   // NOPMD
173   public void setRemoteArtifactRepositories(
174       final List remoteArtifactRepositories)
175   {
176     wrapped.setRemoteArtifactRepositories(remoteArtifactRepositories);
177   }
178 
179   public List<?> getRemoteArtifactRepositories()
180   {
181     return wrapped.getRemoteArtifactRepositories();
182   }
183 
184   @Override
185   public boolean hasParent()
186   {
187     return wrapped.hasParent();
188   }
189 
190   @Override
191   public File getFile()
192   {
193     return wrapped.getFile();
194   }
195 
196   @Override
197   public void setFile(final File file)
198   {
199     wrapped.setFile(file);
200   }
201 
202   @Override
203   public void setBasedir(final File basedir)
204   {
205     wrapped.setBasedir(basedir);
206   }
207 
208   @Override
209   public File getBasedir()
210   {
211     return wrapped.getBasedir();
212   }
213 
214   @Override
215   @SuppressWarnings("rawtypes")
216   public void setDependencies(final List dependencies)
217   {
218     wrapped.setDependencies(dependencies);
219   }
220 
221   @Override
222   public List<?> getDependencies()
223   {
224     return wrapped.getDependencies();
225   }
226 
227   @Override
228   public DependencyManagement getDependencyManagement()
229   {
230     return wrapped.getDependencyManagement();
231   }
232 
233   @Override
234   public void addCompileSourceRoot(final String path)
235   {
236     wrapped.addCompileSourceRoot(path);
237   }
238 
239   @Override
240   public void addScriptSourceRoot(final String path)
241   {
242     wrapped.addScriptSourceRoot(path);
243   }
244 
245   @Override
246   public void addTestCompileSourceRoot(final String path)
247   {
248     wrapped.addTestCompileSourceRoot(path);
249   }
250 
251   @Override
252   public List<?> getCompileSourceRoots()
253   {
254     return wrapped.getCompileSourceRoots();
255   }
256 
257   @Override
258   public List<?> getScriptSourceRoots()
259   {
260     return wrapped.getScriptSourceRoots();
261   }
262 
263   @Override
264   public List<?> getTestCompileSourceRoots()
265   {
266     return wrapped.getTestCompileSourceRoots();
267   }
268 
269   @Override
270   public List<?> getCompileClasspathElements()
271     throws DependencyResolutionRequiredException
272   {
273     return wrapped.getCompileClasspathElements();
274   }
275 
276   @Override
277   public List<?> getCompileArtifacts()
278   {
279     return wrapped.getCompileArtifacts();
280   }
281 
282   @Override
283   public List<?> getCompileDependencies()
284   {
285     return wrapped.getCompileDependencies();
286   }
287 
288   @Override
289   public List<?> getTestClasspathElements()
290     throws DependencyResolutionRequiredException
291   {
292     return wrapped.getTestClasspathElements();
293   }
294 
295   @Override
296   public List<?> getTestArtifacts()
297   {
298     return wrapped.getTestArtifacts();
299   }
300 
301   @Override
302   public List<?> getTestDependencies()
303   {
304     return wrapped.getTestDependencies();
305   }
306 
307   @Override
308   public List<?> getRuntimeClasspathElements()
309     throws DependencyResolutionRequiredException
310   {
311     return wrapped.getRuntimeClasspathElements();
312   }
313 
314   @Override
315   public List<?> getRuntimeArtifacts()
316   {
317     return wrapped.getRuntimeArtifacts();
318   }
319 
320   @Override
321   public List<?> getRuntimeDependencies()
322   {
323     return wrapped.getRuntimeDependencies();
324   }
325 
326   @Override
327   public List<?> getSystemClasspathElements()
328     throws DependencyResolutionRequiredException
329   {
330     return wrapped.getSystemClasspathElements();
331   }
332 
333   @Override
334   public List<?> getSystemArtifacts()
335   {
336     return wrapped.getSystemArtifacts();
337   }
338 
339   @Override
340   public List<?> getSystemDependencies()
341   {
342     return wrapped.getSystemDependencies();
343   }
344 
345   @Override
346   public void setModelVersion(final String pomVersion)
347   {
348     wrapped.setModelVersion(pomVersion);
349   }
350 
351   @Override
352   public String getModelVersion()
353   {
354     return wrapped.getModelVersion();
355   }
356 
357   @Override
358   public String getId()
359   {
360     return wrapped.getId();
361   }
362 
363   @Override
364   public void setGroupId(final String groupId)
365   {
366     wrapped.setGroupId(groupId);
367   }
368 
369   @Override
370   public String getGroupId()
371   {
372     return wrapped.getGroupId();
373   }
374 
375   @Override
376   public void setArtifactId(final String artifactId)
377   {
378     wrapped.setArtifactId(artifactId);
379   }
380 
381   @Override
382   public String getArtifactId()
383   {
384     return wrapped.getArtifactId();
385   }
386 
387   @Override
388   public void setName(final String name)
389   {
390     wrapped.setName(name);
391   }
392 
393   @Override
394   public void setVersion(final String version)
395   {
396     wrapped.setVersion(version);
397   }
398 
399   @Override
400   public String getVersion()
401   {
402     return wrapped.getVersion();
403   }
404 
405   @Override
406   public String getPackaging()
407   {
408     return wrapped.getPackaging();
409   }
410 
411   @Override
412   public void setPackaging(final String packaging)
413   {
414     wrapped.setPackaging(packaging);
415   }
416 
417   @Override
418   public void setInceptionYear(final String inceptionYear)
419   {
420     wrapped.setInceptionYear(inceptionYear);
421   }
422 
423   @Override
424   public String getInceptionYear()
425   {
426     return wrapped.getInceptionYear();
427   }
428 
429   @Override
430   public void setUrl(final String url)
431   {
432     wrapped.setUrl(url);
433   }
434 
435   @Override
436   public String getUrl()
437   {
438     return wrapped.getUrl();
439   }
440 
441   @Override
442   public Prerequisites getPrerequisites()
443   {
444     return wrapped.getPrerequisites();
445   }
446 
447   @Override
448   public void setIssueManagement(final IssueManagement issueManagement)
449   {
450     wrapped.setIssueManagement(issueManagement);
451   }
452 
453   @Override
454   public CiManagement getCiManagement()
455   {
456     return wrapped.getCiManagement();
457   }
458 
459   @Override
460   public void setCiManagement(final CiManagement ciManagement)
461   {
462     wrapped.setCiManagement(ciManagement);
463   }
464 
465   @Override
466   public IssueManagement getIssueManagement()
467   {
468     return wrapped.getIssueManagement();
469   }
470 
471   @Override
472   public void setDistributionManagement(
473       final DistributionManagement distributionManagement)
474   {
475     wrapped.setDistributionManagement(distributionManagement);
476   }
477 
478   @Override
479   public DistributionManagement getDistributionManagement()
480   {
481     return wrapped.getDistributionManagement();
482   }
483 
484   @Override
485   public void setDescription(final String description)
486   {
487     wrapped.setDescription(description);
488   }
489 
490   @Override
491   public void setOrganization(final Organization organization)
492   {
493     wrapped.setOrganization(organization);
494   }
495 
496   @Override
497   public Organization getOrganization()
498   {
499     return wrapped.getOrganization();
500   }
501 
502   @Override
503   public void setScm(final Scm scm)
504   {
505     wrapped.setScm(scm);
506   }
507 
508   @Override
509   public Scm getScm()
510   {
511     return wrapped.getScm();
512   }
513 
514   @Override
515   @SuppressWarnings("rawtypes")
516   public void setMailingLists(final List mailingLists)
517   {
518     wrapped.setMailingLists(mailingLists);
519   }
520 
521   @Override
522   public List<?> getMailingLists()
523   {
524     return wrapped.getMailingLists();
525   }
526 
527   @Override
528   public void addMailingList(final MailingList mailingList)
529   {
530     wrapped.addMailingList(mailingList);
531   }
532 
533   @Override
534   @SuppressWarnings("rawtypes")
535   public void setDevelopers(final List developers)
536   {
537     wrapped.setDevelopers(developers);
538   }
539 
540   @Override
541   public List<?> getDevelopers()
542   {
543     return wrapped.getDevelopers();
544   }
545 
546   @Override
547   public void addDeveloper(final Developer developer)
548   {
549     wrapped.addDeveloper(developer);
550   }
551 
552   @Override
553   @SuppressWarnings("rawtypes")
554   public void setContributors(final List contributors)
555   {
556     wrapped.setContributors(contributors);
557   }
558 
559   @Override
560   public List<?> getContributors()
561   {
562     return wrapped.getContributors();
563   }
564 
565   @Override
566   public void addContributor(final Contributor contributor)
567   {
568     wrapped.addContributor(contributor);
569   }
570 
571   @Override
572   public void setBuild(final Build build)
573   {
574     wrapped.setBuild(build);
575   }
576 
577   @Override
578   public Build getBuild()
579   {
580     return wrapped.getBuild();
581   }
582 
583   @Override
584   public List<?> getResources()
585   {
586     return wrapped.getResources();
587   }
588 
589   @Override
590   public List<?> getTestResources()
591   {
592     return wrapped.getTestResources();
593   }
594 
595   @Override
596   public void addResource(final Resource resource)
597   {
598     wrapped.addResource(resource);
599   }
600 
601   @Override
602   public void addTestResource(final Resource testResource)
603   {
604     wrapped.addTestResource(testResource);
605   }
606 
607   @Override
608   public void setReporting(final Reporting reporting)
609   {
610     wrapped.setReporting(reporting);
611   }
612 
613   @Override
614   public Reporting getReporting()
615   {
616     return wrapped.getReporting();
617   }
618 
619   @Override
620   @SuppressWarnings("rawtypes")
621   public void setLicenses(final List licenses)
622   {
623     wrapped.setLicenses(licenses);
624   }
625 
626   @Override
627   public List<?> getLicenses()
628   {
629     return wrapped.getLicenses();
630   }
631 
632   @Override
633   public void addLicense(final License license)
634   {
635     wrapped.addLicense(license);
636   }
637 
638   @Override
639   @SuppressWarnings("rawtypes")
640   public void setArtifacts(final Set artifacts)
641   {
642     wrapped.setArtifacts(artifacts);
643   }
644 
645   @Override
646   @SuppressWarnings("rawtypes")
647   public Set getArtifacts()
648   {
649     return wrapped.getArtifacts();
650   }
651 
652   @Override
653   @SuppressWarnings("rawtypes")
654   public Map getArtifactMap()
655   {
656     return wrapped.getArtifactMap();
657   }
658 
659   @Override
660   @SuppressWarnings("rawtypes")
661   public void setPluginArtifacts(final Set pluginArtifacts)
662   {
663     wrapped.setPluginArtifacts(pluginArtifacts);
664   }
665 
666   @Override
667   @SuppressWarnings("rawtypes")
668   public Set getPluginArtifacts()
669   {
670     return wrapped.getPluginArtifacts();
671   }
672 
673   @Override
674   @SuppressWarnings("rawtypes")
675   public Map getPluginArtifactMap()
676   {
677     return wrapped.getPluginArtifactMap();
678   }
679 
680   @Override
681   @SuppressWarnings("rawtypes")
682   public void setReportArtifacts(final Set reportArtifacts)
683   {
684     wrapped.setReportArtifacts(reportArtifacts);
685   }
686 
687   @Override
688   @SuppressWarnings("rawtypes")
689   public Set getReportArtifacts()
690   {
691     return wrapped.getReportArtifacts();
692   }
693 
694   @Override
695   @SuppressWarnings("rawtypes")
696   public Map getReportArtifactMap()
697   {
698     return wrapped.getReportArtifactMap();
699   }
700 
701   @Override
702   @SuppressWarnings("rawtypes")
703   public void setExtensionArtifacts(final Set extensionArtifacts)
704   {
705     wrapped.setExtensionArtifacts(extensionArtifacts);
706   }
707 
708   @Override
709   @SuppressWarnings("rawtypes")
710   public Set getExtensionArtifacts()
711   {
712     return wrapped.getExtensionArtifacts();
713   }
714 
715   @Override
716   @SuppressWarnings("rawtypes")
717   public Map getExtensionArtifactMap()
718   {
719     return wrapped.getExtensionArtifactMap();
720   }
721 
722   @Override
723   public void setParentArtifact(final Artifact parentArtifact)
724   {
725     wrapped.setParentArtifact(parentArtifact);
726   }
727 
728   @Override
729   public Artifact getParentArtifact()
730   {
731     return wrapped.getParentArtifact();
732   }
733 
734   @Override
735   public List<?> getRepositories()
736   {
737     return wrapped.getRepositories();
738   }
739 
740   @Override
741   public List<?> getReportPlugins()
742   {
743     return wrapped.getReportPlugins();
744   }
745 
746   @Override
747   public List<?> getBuildPlugins()
748   {
749     return wrapped.getBuildPlugins();
750   }
751 
752   @Override
753   public List<?> getModules()
754   {
755     return wrapped.getModules();
756   }
757 
758   @Override
759   public PluginManagement getPluginManagement()
760   {
761     return wrapped.getPluginManagement();
762   }
763 
764   @Override
765   public void addPlugin(final Plugin plugin)
766   {
767     wrapped.addPlugin(plugin);
768   }
769 
770   @Override
771   public void injectPluginManagementInfo(final Plugin plugin)
772   {
773     wrapped.injectPluginManagementInfo(plugin);
774   }
775 
776   @Override
777   public List<?> getCollectedProjects()
778   {
779     return wrapped.getCollectedProjects();
780   }
781 
782   @Override
783   @SuppressWarnings("rawtypes")
784   public void setCollectedProjects(final List collectedProjects)
785   {
786     wrapped.setCollectedProjects(collectedProjects);
787   }
788 
789   @Override
790   @SuppressWarnings("rawtypes")
791   public void setPluginArtifactRepositories(
792       final List pluginArtifactRepositories)
793   {
794     wrapped.setPluginArtifactRepositories(pluginArtifactRepositories);
795   }
796 
797   @Override
798   public List<?> getPluginArtifactRepositories()
799   {
800     return wrapped.getPluginArtifactRepositories();
801   }
802 
803   @Override
804   public ArtifactRepository getDistributionManagementArtifactRepository()
805   {
806     return wrapped.getDistributionManagementArtifactRepository();
807   }
808 
809   @Override
810   public List<?> getPluginRepositories()
811   {
812     return wrapped.getPluginRepositories();
813   }
814 
815   @Override
816   @SuppressWarnings("rawtypes")
817   public void setActiveProfiles(final List activeProfiles)
818   {
819     wrapped.setActiveProfiles(activeProfiles);
820   }
821 
822   @Override
823   public List<?> getActiveProfiles()
824   {
825     return wrapped.getActiveProfiles();
826   }
827 
828   @Override
829   public void addAttachedArtifact(final Artifact artifact)
830   {
831     wrapped.addAttachedArtifact(artifact);
832   }
833 
834   @Override
835   public List<?> getAttachedArtifacts()
836   {
837     return wrapped.getAttachedArtifacts();
838   }
839 
840   @Override
841   public Xpp3Dom getGoalConfiguration(final String pluginGroupId,
842       final String pluginArtifactId, final String executionId,
843       final String goalId)
844   {
845     return wrapped.getGoalConfiguration(pluginGroupId, pluginArtifactId,
846         executionId, goalId);
847   }
848 
849   @Override
850   public Xpp3Dom getReportConfiguration(final String pluginGroupId,
851       final String pluginArtifactId, final String reportSetId)
852   {
853     return wrapped.getReportConfiguration(pluginGroupId, pluginArtifactId,
854         reportSetId);
855   }
856 
857   @Override
858   public MavenProject getExecutionProject()
859   {
860     return wrapped.getExecutionProject();
861   }
862 
863   @Override
864   public void setExecutionProject(final MavenProject executionProject)
865   {
866     wrapped.setExecutionProject(executionProject);
867   }
868 
869   @Override
870   public void writeModel(final Writer writer) throws IOException
871   {
872     wrapped.writeModel(writer);
873   }
874 
875   @Override
876   public void writeOriginalModel(final Writer writer) throws IOException
877   {
878     wrapped.writeOriginalModel(writer);
879   }
880 
881   @Override
882   @SuppressWarnings("rawtypes")
883   public Set getDependencyArtifacts()
884   {
885     return wrapped.getDependencyArtifacts();
886   }
887 
888   @Override
889   @SuppressWarnings("rawtypes")
890   public void setDependencyArtifacts(final Set dependencyArtifacts)
891   {
892     wrapped.setDependencyArtifacts(dependencyArtifacts);
893   }
894 
895   @Override
896   public void setReleaseArtifactRepository(
897       final ArtifactRepository releaseArtifactRepository)
898   {
899     wrapped.setReleaseArtifactRepository(releaseArtifactRepository);
900   }
901 
902   @Override
903   public void setSnapshotArtifactRepository(
904       final ArtifactRepository snapshotArtifactRepository)
905   {
906     wrapped.setSnapshotArtifactRepository(snapshotArtifactRepository);
907   }
908 
909   @Override
910   public void setOriginalModel(final Model originalModel)
911   {
912     wrapped.setOriginalModel(originalModel);
913   }
914 
915   @Override
916   public Model getOriginalModel()
917   {
918     return wrapped.getOriginalModel();
919   }
920 
921   @Override
922   @SuppressWarnings("rawtypes")
923   public void setManagedVersionMap(final Map map)
924   {
925     wrapped.setManagedVersionMap(map);
926   }
927 
928   @Override
929   @SuppressWarnings("rawtypes")
930   public Map getManagedVersionMap()
931   {
932     return wrapped.getManagedVersionMap();
933   }
934 
935   @Override
936   public boolean equals(final Object other)
937   {
938     return wrapped.equals(other);
939   }
940 
941   @Override
942   public int hashCode()
943   {
944     return wrapped.hashCode();
945   }
946 
947   @Override
948   public List<?> getBuildExtensions()
949   {
950     return wrapped.getBuildExtensions();
951   }
952 
953   @Override
954   @SuppressWarnings("rawtypes")
955   public Set createArtifacts(final ArtifactFactory artifactFactory,
956       final String inheritedScope, final ArtifactFilter dependencyFilter)
957     throws InvalidDependencyVersionException
958   {
959     return wrapped.createArtifacts(artifactFactory, inheritedScope,
960         dependencyFilter);
961   }
962 
963   @Override
964   public void addProjectReference(final MavenProject project)
965   {
966     wrapped.addProjectReference(project);
967   }
968 
969   @Override
970   @Deprecated
971   public void attachArtifact(final String type, final String classifier,
972       final File file)
973   {
974     wrapped.attachArtifact(type, classifier, file);
975   }
976 
977   @Override
978   public Properties getProperties()
979   {
980     return wrapped.getProperties();
981   }
982 
983   @Override
984   public List<?> getFilters()
985   {
986     return wrapped.getFilters();
987   }
988 
989   @Override
990   @SuppressWarnings("rawtypes")
991   public Map getProjectReferences()
992   {
993     return wrapped.getProjectReferences();
994   }
995 
996   @Override
997   public boolean isExecutionRoot()
998   {
999     return wrapped.isExecutionRoot();
1000   }
1001 
1002   @Override
1003   public void setExecutionRoot(final boolean executionRoot)
1004   {
1005     wrapped.setExecutionRoot(executionRoot);
1006   }
1007 
1008   @Override
1009   public String getDefaultGoal()
1010   {
1011     return wrapped.getDefaultGoal();
1012   }
1013 
1014   @Override
1015   public void resolveActiveArtifacts()
1016   {
1017     wrapped.resolveActiveArtifacts();
1018   }
1019 
1020   @Override
1021   public Artifact replaceWithActiveArtifact(final Artifact pluginArtifact)
1022   {
1023     return wrapped.replaceWithActiveArtifact(pluginArtifact);
1024   }
1025 
1026   @Override
1027   public String toString()
1028   {
1029     return wrapped.toString();
1030   }
1031 
1032   @Override
1033   public boolean isConcrete()
1034   {
1035     return wrapped.isConcrete();
1036   }
1037 
1038   @Override
1039   public void setConcrete(final boolean concrete)
1040   {
1041     wrapped.setConcrete(concrete);
1042   }
1043 
1044   @Override
1045   public Build getDynamicBuild()
1046   {
1047     return wrapped.getDynamicBuild();
1048   }
1049 
1050   @Override
1051   public Build getOriginalInterpolatedBuild()
1052   {
1053     return wrapped.getOriginalInterpolatedBuild();
1054   }
1055 
1056   public List<?> getDynamicCompileSourceRoots()
1057   {
1058     return wrapped.getDynamicCompileSourceRoots();
1059   }
1060 
1061   @Override
1062   public List<?> getOriginalInterpolatedCompileSourceRoots()
1063   {
1064     return wrapped.getOriginalInterpolatedCompileSourceRoots();
1065   }
1066 
1067   @Override
1068   public List<?> getDynamicTestCompileSourceRoots()
1069   {
1070     return wrapped.getDynamicTestCompileSourceRoots();
1071   }
1072 
1073   @Override
1074   public List<?> getOriginalInterpolatedTestCompileSourceRoots()
1075   {
1076     return wrapped.getOriginalInterpolatedTestCompileSourceRoots();
1077   }
1078 
1079   @Override
1080   public List<?> getDynamicScriptSourceRoots()
1081   {
1082     return wrapped.getDynamicScriptSourceRoots();
1083   }
1084 
1085   @Override
1086   public List<?> getOriginalInterpolatedScriptSourceRoots()
1087   {
1088     return wrapped.getOriginalInterpolatedScriptSourceRoots();
1089   }
1090 
1091   @Override
1092   public void clearRestorableRoots()
1093   {
1094     wrapped.clearRestorableRoots();
1095   }
1096 
1097   @Override
1098   public void clearRestorableBuild()
1099   {
1100     wrapped.clearRestorableBuild();
1101   }
1102 
1103   @Override
1104   @SuppressWarnings("rawtypes")
1105   public void preserveCompileSourceRoots(
1106       final List originalInterpolatedCompileSourceRoots) // NOPMD
1107   {
1108     wrapped.preserveCompileSourceRoots(originalInterpolatedCompileSourceRoots);
1109   }
1110 
1111   @Override
1112   @SuppressWarnings("rawtypes")
1113   public void preserveTestCompileSourceRoots(
1114       final List originalInterpolatedTestCompileSourceRoots)
1115   {
1116     wrapped
1117         .preserveTestCompileSourceRoots(originalInterpolatedTestCompileSourceRoots);
1118   }
1119 
1120   @Override
1121   @SuppressWarnings("rawtypes")
1122   public void preserveScriptSourceRoots(
1123       final List originalInterpolatedScriptSourceRoots) // NOPMD
1124   {
1125     wrapped.preserveScriptSourceRoots(originalInterpolatedScriptSourceRoots);
1126   }
1127 
1128   @Override
1129   public void preserveBuild(final Build originalInterpolatedBuild)
1130   {
1131     wrapped.preserveBuild(originalInterpolatedBuild);
1132   }
1133 
1134   @Override
1135   public Properties getPreservedProperties()
1136   {
1137     return wrapped.getPreservedProperties();
1138   }
1139 
1140   @Override
1141   public void preserveProperties()
1142   {
1143     wrapped.preserveProperties();
1144   }
1145 
1146   @Override
1147   public File getPreservedBasedir()
1148   {
1149     return wrapped.getPreservedBasedir();
1150   }
1151 
1152   @Override
1153   public void preserveBasedir()
1154   {
1155     wrapped.preserveBasedir();
1156   }
1157 
1158   @Override
1159   public void setLogger(final Logger logger)
1160   {
1161     wrapped.setLogger(logger);
1162   }
1163 
1164   @Override
1165   public ProjectBuilderConfiguration getProjectBuilderConfiguration()
1166   {
1167     return wrapped.getProjectBuilderConfiguration();
1168   }
1169 
1170   @Override
1171   public void setProjectBuilderConfiguration(
1172       final ProjectBuilderConfiguration projectBuilderConfiguration)
1173   {
1174     wrapped.setProjectBuilderConfiguration(projectBuilderConfiguration);
1175   }
1176 
1177   // CHECKSTYLE:ON
1178 
1179   // --- object basics --------------------------------------------------------
1180 
1181 }