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 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." ); }
if ( this.deployment.getLicenseFile () != null && !this.deployment.getLicenseFile ().isEmpty () ) licenseFile = nodeDir.getProject ().getFile ( new Path ( this.deployment.getLicenseFile () ) ).getLocation ().toFile (); wixBuilder.setUseFirewall ( this.deployment.isEnableFirewall () ); wixBuilder.setUseUserInterface ( this.deployment.isEnableUserInterface () ); wixBuilder.setVersion ( this.deployment.getVersion () ); wixBuilder.setManufacturer ( this.deployment.getManufacturer () ); wixBuilder.setUpgradeCode ( this.deployment.getUpgradeCode () ); if ( this.deployment.isEnableFirewall () ) if ( this.deployment.isEnableUserInterface () ) final AntWixBuilder antBuilder = new AntWixBuilder ( String.format ( "%s_%s.msi", packageName, this.deployment.getVersion () ), platform, findPlatform (), wixExt, enableSubst ); //$NON-NLS-1$ createApplications ( nodeDir.getLocation ().toFile (), antBuilder, wixBuilder );
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { String label = ( (MsiDeploymentMechanism)object ).getVersion (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_MsiDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$ } else { styledLabel.append ( getString ( "_UI_MsiDeploymentMechanism_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$ } return styledLabel; }
if ( this.deployment.getLicenseFile () != null && !this.deployment.getLicenseFile ().isEmpty () ) licenseFile = nodeDir.getProject ().getFile ( new Path ( this.deployment.getLicenseFile () ) ).getLocation ().toFile (); wixBuilder.setUseFirewall ( this.deployment.isEnableFirewall () ); wixBuilder.setUseUserInterface ( this.deployment.isEnableUserInterface () ); wixBuilder.setVersion ( this.deployment.getVersion () ); wixBuilder.setManufacturer ( this.deployment.getManufacturer () ); wixBuilder.setUpgradeCode ( this.deployment.getUpgradeCode () ); if ( this.deployment.isEnableFirewall () ) if ( this.deployment.isEnableUserInterface () ) final AntWixBuilder antBuilder = new AntWixBuilder ( String.format ( "%s_%s.msi", packageName, this.deployment.getVersion () ), platform, findPlatform (), wixExt, enableSubst ); //$NON-NLS-1$ createApplications ( nodeDir.getLocation ().toFile (), antBuilder, wixBuilder );
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 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 () ) ); } }