protected void mergeSite_Id( Site target, Site source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getId(); if ( src != null ) { if ( sourceDominant || target.getId() == null ) { target.setId( src ); target.setLocation( "id", source.getLocation( "id" ) ); } } }
public static Site cloneSite( Site src ) { if ( src == null ) { return null; } Site result = new Site(); result.setId( src.getId() ); result.setName( src.getName() ); result.setUrl( src.getUrl() ); return result; }
site.setId( interpolatedTrimmed( parser.nextText(), "id" ) );
site.setId( interpolatedTrimmed( parser.nextText(), "id" ) );
site.setId( parentDistMgmt.getSite().getId() );
site.setId( parentDistMgmt.getSite().getId() );
site.setId( getTrimmedValue( value ) );
/** * Set a unique identifier for a deployment location. This is * used to match the site to configuration in the * <code>settings.xml</code> file, for example. * * @param id */ public FluentSiteBuilder withId(String id) { site.setId(id); return this; }
@Override protected Site determineDeploySite() throws MojoExecutionException { Site staging = new Site(); staging.setId( "stagingLocal" ); final File outputDirectory = determineStagingDirectory(); getLog().info( "Using this base directory for staging: " + outputDirectory ); // Safety if ( !outputDirectory.exists() ) { outputDirectory.mkdirs(); } staging.setUrl( "file://" + outputDirectory.getAbsolutePath() ); return staging; }
protected void mergeSite_Id( Site target, Site source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getId(); if ( src != null ) { if ( sourceDominant || target.getId() == null ) { target.setId( src ); target.setLocation( "id", source.getLocation( "id" ) ); } } }
@Override protected Site determineDeploySite() throws MojoExecutionException { Site top = new Site(); top.setId( stagingRepoId() ); getLog().info( "Using this server ID for stage deploy: " + top.getId() ); String stagingURL = determineStageDeploySiteURL(); getLog().info( "Using this base URL for stage deploy: " + stagingURL ); top.setUrl( stagingURL ); return top; }
site.setId( "integration-test.output" ); site.setUrl( tmpUrl );
site.setId( "integration-test.output" ); site.setUrl( tmpUrl );
site.setId( getTrimmedValue( parser.nextText() ) );
site.setId("website"); changed = true;
site.setId( getTrimmedValue( parser.nextText() ) );