/** * Method clone. * * @return PluginExecution */ public PluginExecution clone() { try { PluginExecution copy = (PluginExecution) super.clone(); if ( this.goals != null ) { copy.goals = new java.util.ArrayList<String>(); copy.goals.addAll( this.goals ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- PluginExecution clone()
/** * Method clone. * * @return ReportSet */ public ReportSet clone() { try { ReportSet copy = (ReportSet) super.clone(); if ( this.reports != null ) { copy.reports = new java.util.ArrayList<String>(); copy.reports.addAll( this.reports ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- ReportSet clone()
/** * Method clone. * * @return ReportPlugin */ public ReportPlugin clone() { try { ReportPlugin copy = (ReportPlugin) super.clone(); if ( this.reportSets != null ) { copy.reportSets = new java.util.ArrayList<ReportSet>(); for ( ReportSet item : this.reportSets ) { copy.reportSets.add( ( (ReportSet) item).clone() ); } } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- ReportPlugin clone()
Plugin copy = (Plugin) super.clone();
/** * Method clone. * * @return ReportSet */ public ReportSet clone() { try { ReportSet copy = (ReportSet) super.clone(); if ( this.reports != null ) { copy.reports = new java.util.ArrayList<String>(); copy.reports.addAll( this.reports ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- ReportSet clone()
/** * Method clone. * * @return PluginExecution */ public PluginExecution clone() { try { PluginExecution copy = (PluginExecution) super.clone(); if ( this.goals != null ) { copy.goals = new java.util.ArrayList<String>(); copy.goals.addAll( this.goals ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- PluginExecution clone()
/** * Method clone. * * @return ReportPlugin */ public ReportPlugin clone() { try { ReportPlugin copy = (ReportPlugin) super.clone(); if ( this.reportSets != null ) { copy.reportSets = new java.util.ArrayList<ReportSet>(); for ( ReportSet item : this.reportSets ) { copy.reportSets.add( ( (ReportSet) item).clone() ); } } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- ReportPlugin clone()
Plugin copy = (Plugin) super.clone();
@SuppressWarnings("unchecked") public <T> List<T> getParameterList(final String parameter, @SuppressWarnings("unused") final Class<T> asType) throws CoreException { ConfigurationContainer executionClone = execution.clone(); Xpp3Dom configuration = (Xpp3Dom) executionClone.getConfiguration(); configuration = configuration != null ? configuration.getChild(parameter) : null; if (configuration != null && configuration.getChildCount() > 0) { configuration.setAttribute("default-value", ""); } final List<T> list = maven.getMojoParameterValue(mavenProject, parameter, List.class, mojoExecution.getPlugin(), executionClone, mojoExecution.getGoal(), monitor); if (list == null) { return Collections.emptyList(); } return list; }