static Properties cloneStaticProps() { synchronized (statics) { if (statics.isEmpty()) { // not yet initialized // Now a misnomer, but available to activate profiles only during NB project parse: statics.setProperty("netbeans.execution", "true"); // NOI18N EmbedderFactory.fillEnvVars(statics); statics.putAll(excludeNetBeansProperties(System.getProperties())); } Properties toRet = new Properties(); toRet.putAll(statics); return toRet; } }
req.setSystemProperties(fillEnvVars(props)); File userSettingsPath = MavenEmbedder.DEFAULT_USER_SETTINGS_FILE; File globalSettingsPath = InstalledFileLocator.getDefault().locate("maven2/settings.xml", null, false); //NOI18N
req.setSystemProperties(fillEnvVars(props));