@Override public void process ( final Module module, final Collection<ApplicationModule> modules, final EquinoxBase app, final org.eclipse.scada.configuration.world.osgi.EquinoxApplication implApp ) { final GenericVMSettings s = (GenericVMSettings)module; final Profile p = Profiles.createOrGetCustomizationProfile ( implApp ); p.getJvmArguments ().addAll ( s.getArguments () ); }
@Override public void process ( final Module module, final Collection<ApplicationModule> modules, final EquinoxBase app, final org.eclipse.scada.configuration.world.osgi.EquinoxApplication implApp ) { final OracleVMSettings s = (OracleVMSettings)module; final Profile p = Profiles.createOrGetCustomizationProfile ( implApp ); if ( s.getInitialHeapSize () != null && !s.getInitialHeapSize ().isEmpty () ) { p.getJvmArguments ().add ( "-Xms" + s.getInitialHeapSize () ); } if ( s.getMaximumHeapSize () != null && !s.getMaximumHeapSize ().isEmpty () ) { p.getJvmArguments ().add ( "-Xmx" + s.getMaximumHeapSize () ); } }
static void mergeIntoProfile ( final Profile source, final Profile target ) { target.getInstallationUnits ().addAll ( source.getInstallationUnits () ); target.getJvmArguments ().addAll ( source.getJvmArguments () ); target.getArguments ().addAll ( source.getArguments () ); target.getNotes ().addAll ( source.getNotes () ); target.getSetbsl ().addAll ( EcoreUtil.copyAll ( source.getSetbsl () ) ); target.getStart ().addAll ( EcoreUtil.copyAll ( source.getStart () ) ); target.getProperty ().addAll ( EcoreUtil.copyAll ( source.getProperty () ) ); // merge sub profiles for ( final SubProfile subProfile : source.getProfile () ) { mergeSubProfile ( subProfile, findTargetSubProfile ( subProfile.getName (), target ) ); } }
static void mergeIntoProfile ( final Profile source, final Profile target ) { target.getInstallationUnits ().addAll ( source.getInstallationUnits () ); target.getJvmArguments ().addAll ( source.getJvmArguments () ); target.getArguments ().addAll ( source.getArguments () ); target.getNotes ().addAll ( source.getNotes () ); target.getSetbsl ().addAll ( EcoreUtil.copyAll ( source.getSetbsl () ) ); target.getStart ().addAll ( EcoreUtil.copyAll ( source.getStart () ) ); target.getProperty ().addAll ( EcoreUtil.copyAll ( source.getProperty () ) ); // merge sub profiles for ( final SubProfile subProfile : source.getProfile () ) { mergeSubProfile ( subProfile, findTargetSubProfile ( subProfile.getName (), target ) ); } }
cfg.stopMethod = "stop"; //$NON-NLS-1$ cfg.properties = p; cfg.jvmArgs = profile.getJvmArguments (); cfg.startArguments = profile.getArguments () != null ? profile.getArguments ().toArray ( new String[profile.getArguments ().size ()] ) : null; cfg.classpath = String.format ( "[INSTALLDIR]\\apps\\%1$s\\daemon.jar;[INSTALLDIR]\\apps\\%1$s\\osgi.jar", eas.getName () ); //$NON-NLS-1$
cfg.stopMethod = "stop"; //$NON-NLS-1$ cfg.properties = p; cfg.jvmArgs = profile.getJvmArguments (); cfg.startArguments = profile.getArguments () != null ? profile.getArguments ().toArray ( new String[profile.getArguments ().size ()] ) : null; cfg.classpath = String.format ( "[INSTALLDIR]\\apps\\%1$s\\daemon.jar;[INSTALLDIR]\\apps\\%1$s\\osgi.jar", eas.getName () ); //$NON-NLS-1$