private Set<String> makeDependencies ( final Set<String> additional ) { final Set<String> dependencies = new HashSet<> (); dependencies.add ( "org.eclipse.scada" ); if ( needP2 () ) { dependencies.add ( "org.eclipse.scada.p2" ); //$NON-NLS-1$ } dependencies.add ( "org.eclipse.scada.deploy.p2-incubation" ); dependencies.addAll ( this.deploy.getAdditionalDependencies () ); dependencies.addAll ( additional ); final StartupHandler sh = getStartupHandler (); if ( sh != null ) { dependencies.addAll ( sh.getAdditionalPackageDependencies () ); } return dependencies; }
private String makeMultiScreenScript () { if ( this.deploy.isMultiUserScreen () ) { return "test -f ~eclipsescada/.screenrc && echo \"multiuser on\nacladd root\" > ~eclipsescada/.screenrc"; } else { return ""; } }
final String version = makeVersion ( this.deploy.getChanges () ); final String qualifier = makeRelease (); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$ replacements.put ( "qualifier", qualifier ); //$NON-NLS-1$ replacements.put ( "changeLog", makeChangeLog ( this.deploy.getChanges () ) ); //$NON-NLS-1$ replacements.put ( "start.apps", createStartApps () ); //$NON-NLS-1$ replacements.put ( "stop.apps", createStopApps () ); //$NON-NLS-1$ replacements.put ( "create.apps", makeCreate ( this.deploy ) ); //$NON-NLS-1$ replacements.put ( "license", this.deploy.getLicense () ); //$NON-NLS-1$ replacements.put ( "multiuserScreen", this.deploy.isMultiUserScreen () ? "1" : "0" );
Files.createDirectories ( outputDir ); final String version = makeVersion ( this.deploy.getChanges () ); final String qualifier = makeRelease (); final String nodeName = this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName (); pinfo.setLicense ( this.deploy.getLicense () ); pinfo.setSummary ( String.format ( "Eclipse NeoSCADA Configuration for \"%s\"", nodeName ) ); pinfo.setDescription ( String.format ( "This is the configuration package for node \"%s\".", nodeName ) ); pinfo.setPackager ( String.format ( "%s <%s>", this.deploy.getMaintainer ().getName (), this.deploy.getMaintainer ().getEmail () ) ); pinfo.setGroup ( "Application/System" ); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", nodeName ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$ replacements.put ( "qualifier", qualifier ); //$NON-NLS-1$ replacements.put ( "changeLog", makeChangeLog ( this.deploy.getChanges () ) ); //$NON-NLS-1$
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { StartupMechanism labelValue = ( (RedhatDeploymentMechanism)object ).getStartupMechanism (); String label = labelValue == null ? null : labelValue.toString (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_RedhatDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_RedhatDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
final String version = makeVersion ( this.deploy.getChanges () ); final String qualifier = makeRelease (); replacements.put ( "authorName", this.deploy.getMaintainer ().getName () ); //$NON-NLS-1$ replacements.put ( "authorEmail", this.deploy.getMaintainer ().getEmail () ); //$NON-NLS-1$ replacements.put ( "nodeName", this.applicationNode.getName () == null ? this.applicationNode.getHostName () : this.applicationNode.getName () ); //$NON-NLS-1$ replacements.put ( "version", version ); //$NON-NLS-1$ replacements.put ( "qualifier", qualifier ); //$NON-NLS-1$ replacements.put ( "changeLog", makeChangeLog ( this.deploy.getChanges () ) ); //$NON-NLS-1$ replacements.put ( "start.apps", createStartApps () ); //$NON-NLS-1$ replacements.put ( "stop.apps", createStopApps () ); //$NON-NLS-1$ replacements.put ( "create.apps", makeCreate ( this.deploy ) ); //$NON-NLS-1$ replacements.put ( "license", this.deploy.getLicense () ); //$NON-NLS-1$ replacements.put ( "multiuserScreen", this.deploy.isMultiUserScreen () ? "1" : "0" );
private String makeDependencies ( final Set<String> additional ) { final Set<String> dependencies = new HashSet<> (); dependencies.add ( "org.eclipse.scada" ); if ( needP2 () ) { dependencies.add ( "org.eclipse.scada.p2" ); //$NON-NLS-1$ } dependencies.add ( "org.eclipse.scada.deploy.p2-incubation" ); dependencies.addAll ( this.deploy.getAdditionalDependencies () ); dependencies.addAll ( additional ); final StartupHandler sh = getStartupHandler (); if ( sh != null ) { dependencies.addAll ( sh.getAdditionalPackageDependencies () ); } final Set<String> result = new HashSet<> (); for ( final String dep : dependencies ) { result.add ( "Requires: " + dep ); } return StringHelper.join ( result, "\n" ); }
private String makeDependencies ( final Set<String> additional ) { final Set<String> dependencies = new HashSet<> (); dependencies.add ( "org.eclipse.scada" ); if ( needP2 () ) { dependencies.add ( "org.eclipse.scada.p2" ); //$NON-NLS-1$ } dependencies.add ( "org.eclipse.scada.deploy.p2-incubation" ); dependencies.addAll ( this.deploy.getAdditionalDependencies () ); dependencies.addAll ( additional ); final StartupHandler sh = getStartupHandler (); if ( sh != null ) { dependencies.addAll ( sh.getAdditionalPackageDependencies () ); } final Set<String> result = new HashSet<> (); for ( final String dep : dependencies ) { result.add ( "Requires: " + dep ); } return StringHelper.join ( result, "\n" ); }