public static <T> BuildAction<Collection<T>> compositeModelQuery(Class<T> model) { if (Platform.inDevelopmentMode()) { return ideFriendlyCompositeModelQuery(model); } else { return new CompositeModelQuery<>(model); } }
public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException { String[] cp= super.getClasspath(configuration); ITestKind kind= getTestRunnerKind(configuration); List junitEntries = new ClasspathLocalizer(Platform.inDevelopmentMode()).localizeClasspath(kind); String[] classPath= new String[cp.length + junitEntries.size()]; Object[] jea= junitEntries.toArray(); System.arraycopy(cp, 0, classPath, 0, cp.length); System.arraycopy(jea, 0, classPath, cp.length, jea.length); return classPath; }
private static void extensionToClassPath(RutaIdeUIPlugin d, Collection<String> result, IExtension[] extensions) throws CoreException { for (IExtension each : extensions) { String namespaceIdentifier = each.getNamespaceIdentifier(); try { if (!Platform.inDevelopmentMode()) { result.add(d.pluginIdToJarPath(namespaceIdentifier)); } else { result.add(d.pluginIdToJarPath(namespaceIdentifier) + "target/classes"); result.add(d.pluginIdToJarPath(namespaceIdentifier) + "bin"); } } catch (IOException e) { throw new CoreException(new Status(IStatus.ERROR, RutaIdeUIPlugin.PLUGIN_ID, IStatus.OK, "Failed to extend classpath with " + namespaceIdentifier + "!", e)); } } }
@Override public String[][] getClasspathAndModulepath(ILaunchConfiguration configuration) throws CoreException { String[][] cpmp= super.getClasspathAndModulepath(configuration); String[] cp= cpmp[0]; ITestKind kind= getTestRunnerKind(configuration); List<String> junitEntries= new ClasspathLocalizer(Platform.inDevelopmentMode()).localizeClasspath(kind); String[] classPath= new String[cp.length + junitEntries.size()]; Object[] jea= junitEntries.toArray(); System.arraycopy(cp, 0, classPath, 0, cp.length); System.arraycopy(jea, 0, classPath, cp.length, jea.length); cpmp[0]= classPath; return cpmp; }
String property = System.getProperty(PROP_VM); if (property == null) { if (!Platform.inDevelopmentMode()) {
/** * @deprecated The call to * {@link JUnitLaunchConfigurationDelegate#getClasspath(ILaunchConfiguration) * getClasspath(ILaunchConfiguration)} in * {@link JUnitLaunchConfigurationDelegate#launch(ILaunchConfiguration, String, ILaunch, IProgressMonitor) * launch(...)} has been replaced with the call to * {@link JUnitLaunchConfigurationDelegate#getClasspathAndModulepath(ILaunchConfiguration) * getClasspathAndModulepath(ILaunchConfiguration)}. * */ @Override @Deprecated public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException { String[] cp= super.getClasspath(configuration); ITestKind kind= getTestRunnerKind(configuration); List<String> junitEntries = new ClasspathLocalizer(Platform.inDevelopmentMode()).localizeClasspath(kind); String[] classPath= new String[cp.length + junitEntries.size()]; Object[] jea= junitEntries.toArray(); System.arraycopy(cp, 0, classPath, 0, cp.length); System.arraycopy(jea, 0, classPath, cp.length, jea.length); return classPath; }
/** * Has no effect, and always returns with {@code false} if the JDT LS has been * started from the source either in debug or development mode. If the * {@code CLIENT_HOST} and {@code CLIENT_PORT} environment variables are set and * the {@link JDTEnvironmentUtils#SOCKET_STREAM_DEBUG socket.stream.debug} is * set to {@code true}, the the server will start with plain socket connection * and will wait until the client connects. */ public static boolean inSocketStreamDebugMode() { return Boolean.parseBoolean(Environment.get(SOCKET_STREAM_DEBUG, "false")) && (Platform.inDebugMode() || Platform.inDevelopmentMode()) && getClientHost() != null && getClientPort() != null; }
if (!Platform.inDevelopmentMode()) { if (!Platform.inDevelopmentMode()) { if (bundle != null) { Enumeration<?> jarEnum = bundle.findEntries("/", "uimaj-core*.jar", Platform.inDevelopmentMode()); while (jarEnum != null && jarEnum.hasMoreElements()) { URL element = (URL) jarEnum.nextElement(); Enumeration<?> jarEnum = bundle.findEntries("/", "*.jar", Platform.inDevelopmentMode()); while (jarEnum != null && jarEnum.hasMoreElements()) { URL element = (URL) jarEnum.nextElement();
public static void addVariable(JETEmitter jetEmitter, String variableName, String pluginID) throws JETException URL classpathURL = bundle != null && Platform.inDevelopmentMode() ? bundle.getEntry(".classpath") : null;
public static void addVariable(JETEmitter jetEmitter, String variableName, String pluginID) throws JETException URL classpathURL = bundle != null && Platform.inDevelopmentMode() ? bundle.getEntry(".classpath") : null;
if (Platform.inDevelopmentMode()) { File location = new File(model.getInstallLocation()); if (location.isDirectory()) {
try { JUnitRuntimeClasspathEntry x= new JUnitRuntimeClasspathEntry("org.junit.platform.launcher", null); //$NON-NLS-1$ String entryString= new ClasspathLocalizer(Platform.inDevelopmentMode()).entryString(x); int length= classpath.length; System.arraycopy(classpath, 0, classpath= new String[length + 1], 0, length);