public void setScm( Scm scm ) { getModel().setScm( scm ); }
public void setScm( Scm scm ) { getModel().setScm( scm ); }
protected void mergeModel_Scm( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { Scm src = source.getScm(); if ( src != null ) { Scm tgt = target.getScm(); if ( tgt == null ) { tgt = new Scm(); tgt.setTag( null ); target.setScm( tgt ); } mergeScm( tgt, src, sourceDominant, context ); } }
private void assembleScmInheritance( Model child, Model parent, String childPathAdjustment, boolean appendPaths ) { if ( parent.getScm() != null ) { Scm parentScm = parent.getScm(); Scm childScm = child.getScm(); if ( childScm == null ) { childScm = new Scm(); child.setScm( childScm ); } if ( StringUtils.isEmpty( childScm.getConnection() ) && !StringUtils.isEmpty( parentScm.getConnection() ) ) { childScm.setConnection( appendPath( parentScm.getConnection(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) { childScm .setDeveloperConnection( appendPath( parentScm.getDeveloperConnection(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } if ( StringUtils.isEmpty( childScm.getUrl() ) && !StringUtils.isEmpty( parentScm.getUrl() ) ) { childScm.setUrl( appendPath( parentScm.getUrl(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } } }
private void assembleScmInheritance( Model child, Model parent, String childPathAdjustment, boolean appendPaths ) { if ( parent.getScm() != null ) { Scm parentScm = parent.getScm(); Scm childScm = child.getScm(); if ( childScm == null ) { childScm = new Scm(); child.setScm( childScm ); } if ( StringUtils.isEmpty( childScm.getConnection() ) && !StringUtils.isEmpty( parentScm.getConnection() ) ) { childScm.setConnection( appendPath( parentScm.getConnection(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } if ( StringUtils.isEmpty( childScm.getDeveloperConnection() ) && !StringUtils.isEmpty( parentScm.getDeveloperConnection() ) ) { childScm .setDeveloperConnection( appendPath( parentScm.getDeveloperConnection(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } if ( StringUtils.isEmpty( childScm.getUrl() ) && !StringUtils.isEmpty( parentScm.getUrl() ) ) { childScm.setUrl( appendPath( parentScm.getUrl(), child.getArtifactId(), childPathAdjustment, appendPaths ) ); } } }
model.setScm( parseScm( parser, strict ) );
model.setScm( parseScm( parser, strict, source ) );
result.setProfiles( cloneList( src.getProfiles(), PROFILE_CLONER ) ); result.setScm( cloneScm( src.getScm() ) ); result.setUrl( src.getUrl() ); result.setVersion( src.getVersion() );
@Override public void set( Model model, Scm value ) { model.setScm( value ); }; };
@Override public void setScm(Scm scm) { delegate.setScm(scm); }
/** * Set specification for the SCM used by the project, such as * CVS, Subversion, etc. * * @param scm */ public FluentModelBuilder withScm(Scm scm) { model.setScm(scm); return this; }
model.setScm( parseScm( parser, strict ) );
scm.setUrl(this.scm.getUrl()); model.setScm(scm);
protected void mergeModel_Scm( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { Scm src = source.getScm(); if ( src != null ) { Scm tgt = target.getScm(); if ( tgt == null ) { tgt = new Scm(); tgt.setTag( null ); target.setScm( tgt ); } mergeScm( tgt, src, sourceDominant, context ); } }
modelTarget.setScm( scmRoot );
modelTarget.setScm( scmTarget );
/** * * @param model */ private static void setScmDevUrl(Model model){ model.setScm(new Scm()); model.getScm().setConnection(Constants.OPEN_LIBERTY_SCM_CONNECTION); model.getScm().setDeveloperConnection(Constants.OPEN_LIBERTY_SCM_CONNECTION); model.getScm().setUrl(Constants.OPEN_LIBRETY_SCM_URL); model.getScm().setTag(Constants.OPEN_LIBERTY_SCM_TAG); model.setUrl(Constants.OPEN_LIBERTY_URL); Developer dev = new Developer(); dev.setId(Constants.DEV_ID); dev.setName(Constants.DEV_NAME); dev.setEmail(Constants.DEV_EMAIL); List<Developer> developers = new ArrayList<Developer>(); developers.add(dev); model.setDevelopers(developers); }
model.setLicenses( project.getLicenses() ); model.setDevelopers( project.getDevelopers() ); model.setScm( project.getScm() ); Build build = new Build(); model.setBuild( build );
modelTarget.setScm( null );
model.setScm( translateScm( v3Model ) ); model.setUrl( v3Model.getUrl() );