private String makeMultiScreenScript () { if ( this.deploy.isMultiUserScreen () ) { return "test -f ~eclipsescada/.screenrc && echo \"multiuser on\nacladd root\" > ~eclipsescada/.screenrc"; } else { return ""; } }
private P2Platform findPlatform () { if ( this.deployment.getLocalPlatform () != null ) { return this.deployment.getLocalPlatform (); } if ( this.deployment.getSharedPlatform () != null ) { return this.deployment.getSharedPlatform (); } throw new IllegalStateException ( "MSI deployment has not P2 target platform assigned. Use either local or shared platform." ); }
private String makeVersion ( final List<ChangeEntry> changes ) { String version = null; Date date = null; for ( final ChangeEntry entry : changes ) { if ( date == null || date.before ( entry.getDate () ) ) { date = entry.getDate (); version = entry.getVersion (); } } return version == null ? "0.0.0" : version; //$NON-NLS-1$ } }
/** * Get the startup mechanism to use * * @param defaultStartupMechanism * the default if none is set * @return the startup mechanism, or the default */ private StartupMechanism getStartupMechanism ( final StartupMechanism defaultStartupMechanism ) { if ( this.deploy.getStartupMechanism () == null || this.deploy.getStartupMechanism () == StartupMechanism.DEFAULT ) { final String type = OperatingSystemDescriptors.getProperty ( this.deploy.getOperatingSystem (), "startup", defaultStartupMechanism.name () ); return StartupMechanism.valueOf ( type ); } else { return this.deploy.getStartupMechanism (); } }
private String findVersion () { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( this.deploy.getChanges () ); if ( sortedChanges.isEmpty () ) { throw new IllegalStateException ( String.format ( "No change record found" ) ); } Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); return sortedChanges.get ( 0 ).getVersion (); }
@Override public void visit ( final DebianDeploymentMechanism item ) throws Exception { item.getAdditionalDependencies ().add ( dependecy ); } } );
private MsiPlatform convertPlatform () { switch ( this.deployment.getArchitecture () ) { case I386: return MsiPlatform.WIN32; case AMD64: return MsiPlatform.WIN64; default: throw new IllegalStateException ( String.format ( "Architecture %s is not supported.", this.deployment.getArchitecture () ) ); } }
/** * Returns the '<em><b>Fallback Mapping Mode</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param name the name. * @return the matching enumerator or <code>null</code>. * @generated */ public static FallbackMappingMode getByName ( String name ) { for ( int i = 0; i < VALUES_ARRAY.length; ++i ) { FallbackMappingMode result = VALUES_ARRAY[i]; if ( result.getName ().equals ( name ) ) { return result; } } return null; }
/** * Returns the '<em><b>Startup Mechanism</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param name the name. * @return the matching enumerator or <code>null</code>. * @generated */ public static StartupMechanism getByName ( String name ) { for ( int i = 0; i < VALUES_ARRAY.length; ++i ) { StartupMechanism result = VALUES_ARRAY[i]; if ( result.getName ().equals ( name ) ) { return result; } } return null; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StartupMechanism createStartupMechanismFromString ( EDataType eDataType, String initialValue ) { StartupMechanism result = StartupMechanism.get ( initialValue ); if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName () + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Architecture createArchitectureFromString ( EDataType eDataType, String initialValue ) { Architecture result = Architecture.get ( initialValue ); if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName () + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public FallbackMappingMode createFallbackMappingModeFromString ( EDataType eDataType, String initialValue ) { FallbackMappingMode result = FallbackMappingMode.get ( initialValue ); if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName () + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return result; }
/** * Get the startup mechanism to use * * @param defaultStartupMechanism * the default if none is set * @return the startup mechanism, or the default */ private StartupMechanism getStartupMechanism ( final StartupMechanism defaultStartupMechanism ) { if ( this.deploy.getStartupMechanism () == null || this.deploy.getStartupMechanism () == StartupMechanism.DEFAULT ) { final String type = OperatingSystemDescriptors.getProperty ( this.deploy.getOperatingSystem (), "startup", defaultStartupMechanism.name () ); return StartupMechanism.valueOf ( type ); } else { return this.deploy.getStartupMechanism (); } }
private String makeVersion ( final List<ChangeEntry> changes ) { String version = null; Date date = null; for ( final ChangeEntry entry : changes ) { if ( date == null || date.before ( entry.getDate () ) ) { date = entry.getDate (); version = entry.getVersion (); } } return version == null ? "0.0.0" : version; //$NON-NLS-1$ } }
private P2Platform findPlatform () { if ( this.deployment.getLocalPlatform () != null ) { return this.deployment.getLocalPlatform (); } if ( this.deployment.getSharedPlatform () != null ) { return this.deployment.getSharedPlatform (); } throw new IllegalStateException ( "MSI deployment has not P2 target platform assigned. Use either local or shared platform." ); }
private String findVersion () { final ArrayList<ChangeEntry> sortedChanges = new ArrayList<> ( this.deploy.getChanges () ); if ( sortedChanges.isEmpty () ) { throw new IllegalStateException ( String.format ( "No change record found" ) ); } Collections.sort ( sortedChanges, new ChangeEntryComparator ( true ) ); return sortedChanges.get ( 0 ).getVersion (); }
private MsiPlatform convertPlatform () { switch ( this.deployment.getArchitecture () ) { case I386: return MsiPlatform.WIN32; case AMD64: return MsiPlatform.WIN64; default: throw new IllegalStateException ( String.format ( "Architecture %s is not supported.", this.deployment.getArchitecture () ) ); } }
private String makeVersion ( final List<ChangeEntry> changes ) { String version = null; Date date = null; for ( final ChangeEntry entry : changes ) { if ( date == null || date.before ( entry.getDate () ) ) { date = entry.getDate (); version = entry.getVersion (); } } return version == null ? "0.0.0" : version; //$NON-NLS-1$ } }