private String getDevProperties() { if (fDevProperties == null) { fDevProperties = ClasspathHelper.getDevEntriesProperties(fBuildTempLocation + "/dev.properties", false); //$NON-NLS-1$ } return fDevProperties; }
public static Dictionary getDevDictionary(IPluginModelBase model) { if (model.getUnderlyingResource() == null) return null; String id = model.getPluginBase().getId(); if (id == null || id.trim().length() == 0) return null; IPath[] paths = getDevPaths(model, false, null); String entry = writeEntry(paths); Hashtable map = new Hashtable(2); map.put("@ignoredot@", "true"); //$NON-NLS-1$ //$NON-NLS-2$ map.put(id, entry.length() > 0 ? entry : "bin"); //$NON-NLS-1$ return map; }
IPluginModelBase model = (IPluginModelBase)iter.next(); if (model.getUnderlyingResource() != null) { String entry = writeEntry(getDevPaths(model, true, map)); if (entry.length() > 0) properties.put(model.getPluginBase().getId(), entry); return getDevEntries(true);
try { if (project.hasNature(JavaCore.NATURE_ID)) { Map<IPath, ArrayList<IPath>> classpathMap = getClasspathMap(project, checkExcluded, false); IFile file = PDEProject.getBuildProperties(project); IPath filePath = file.getLocation(); else { if (libraries.length == 0) { IPath[] paths = findLibrary(DOT, project, classpathMap, build); if (paths.length == 0) { addPath(result, project, paths[j]); } else { for (int i = 0; i < libraries.length; i++) { IPath[] paths = findLibrary(libraries[i].getName(), project, classpathMap, build); if (paths.length == 0 && !libraries[i].getName().equals(DOT)) { paths = findLibraryFromFragments(libraries[i].getName(), model, checkExcluded, pluginsMap); addPath(result, project, paths[j]); ListIterator<IPath> li = list.listIterator(); while (li.hasNext()) addPath(result, project, li.next());
try { IProject project = frags[i].getUnderlyingResource().getProject(); Map<IPath, ArrayList<IPath>> classpathMap = getClasspathMap(project, checkExcluded, true); IFile file = PDEProject.getBuildProperties(project); IBuild build = null; build = bModel.getBuild(); IPath[] paths = findLibrary(libName, project, classpathMap, build); if (paths.length > 0) return postfixFragmentAnnotation(paths);
try { IProject project = frags[i].getUnderlyingResource().getProject(); Map classpathMap = getClasspathMap(project, checkExcluded, false, true); IFile file = project.getFile("build.properties"); //$NON-NLS-1$ IBuild build = null; build = bModel.getBuild(); IPath[] paths = findLibrary(libName, project, classpathMap, build); if (paths.length > 0) return paths;
private static Map<IPath, ArrayList<IPath>> getClasspathMap(IProject project, boolean checkExcluded, boolean absolutePaths) throws JavaModelException { List<Path> excluded = getFoldersToExclude(project, checkExcluded); IJavaProject jProject = JavaCore.create(project); HashMap<IPath, ArrayList<IPath>> map = new HashMap<>();
if (id == null) continue; String entry = writeEntry(getDevPaths(models[i], checkExcluded, null)); if (entry.length() > 0) properties.put(id, entry); return getDevEntries(checkExcluded);
try { if (project.hasNature(JavaCore.NATURE_ID)) { Map classpathMap = getClasspathMap(project, checkExcluded, !base.getId().equals("org.eclipse.osgi"), false); //$NON-NLS-1$ IFile file = project.getFile("build.properties"); //$NON-NLS-1$ boolean searchBuild = file.exists(); else { if (libraries.length == 0) { IPath[] paths = findLibrary(DOT, project, classpathMap, build); for (int j = 0; j < paths.length; j++) addPath(result, project, paths[j]); } else { for (int i = 0; i < libraries.length;i++) { IPath[] paths = findLibrary(libraries[i].getName(), project, classpathMap, build); if (paths.length == 0 && !libraries[i].getName().equals(DOT)) { paths = findLibraryFromFragments(libraries[i].getName(), model, checkExcluded, pluginsMap); addPath(result, project, paths[j]); ListIterator li = list.listIterator(); while (li.hasNext()) addPath(result, project, (IPath)li.next());
private static Map getClasspathMap(IProject project, boolean checkExcluded, boolean onlyJarsIfLinked, boolean absolutePaths) throws JavaModelException { List excluded = getFoldersToExclude(project, checkExcluded); IJavaProject jProject = JavaCore.create(project); HashMap map = new HashMap();
private String getDevProperties() { if (fDevProperties == null) { fDevProperties = ClasspathHelper.getDevEntriesProperties(fBuildTempLocation + "/dev.properties", false); //$NON-NLS-1$ } return fDevProperties; }
IPluginModelBase model = (IPluginModelBase) iter.next(); if (model.getUnderlyingResource() != null) { String entry = writeEntry(getDevPaths(model, true, map)); if (entry.length() > 0) { String id = model.getPluginBase().getId(); return getDevEntries(true);
public static Dictionary<String, String> getDevDictionary(IPluginModelBase model) { if (model.getUnderlyingResource() == null) return null; String id = model.getPluginBase().getId(); if (id == null || id.trim().length() == 0) return null; IPath[] paths = getDevPaths(model, false, null); String entry = writeEntry(paths); Hashtable<String, String> map = new Hashtable<>(2); map.put("@ignoredot@", "true"); //$NON-NLS-1$ //$NON-NLS-2$ map.put(id, entry.length() > 0 ? entry : "bin"); //$NON-NLS-1$ return map; }
private String getDevProperties() { if (fDevProperties == null) { fDevProperties = ClasspathHelper.getDevEntriesProperties(fBuildTempLocation + "/dev.properties", false); //$NON-NLS-1$ } return fDevProperties; }
if (id == null) continue; String entry = writeEntry(getDevPaths(models[i], checkExcluded, null)); if (entry.length() > 0) { String currentValue = (String) properties.get(id); return getDevEntries(checkExcluded);
public static String getDevEntries(boolean checkExcluded) { IPluginModelBase[] models = PluginRegistry.getWorkspaceModels(); ArrayList list = new ArrayList(); for (int i = 0; i < models.length; i++) { String id = models[i].getPluginBase().getId(); if (id == null || id.trim().length() == 0) continue; IPath[] paths = getDevPaths(models[i], checkExcluded, null); for (int j = 0; j < paths.length; j++) { list.add(paths[j]); } } String entry = writeEntry((IPath[])list.toArray(new IPath[list.size()])); return entry.length() > 0 ? entry : "bin"; //$NON-NLS-1$ }
public String[] getProgramArguments(ILaunchConfiguration configuration) throws CoreException { ArrayList programArgs = new ArrayList(); programArgs.add("-dev"); //$NON-NLS-1$ programArgs.add(ClasspathHelper.getDevEntriesProperties(getConfigDir(configuration).toString() + "/dev.properties", fAllBundles)); //$NON-NLS-1$ saveConfigurationFile(configuration); programArgs.add("-configuration"); //$NON-NLS-1$ programArgs.add("file:" + new Path(getConfigDir(configuration).getPath()).addTrailingSeparator().toString()); //$NON-NLS-1$ String[] args = super.getProgramArguments(configuration); for (int i = 0; i < args.length; i++) { programArgs.add(args[i]); } return (String[]) programArgs.toArray(new String[programArgs.size()]); }
private static String getDevEntries(boolean checkExcluded) { IPluginModelBase[] models = PluginRegistry.getWorkspaceModels(); ArrayList<IPath> list = new ArrayList<>(); for (int i = 0; i < models.length; i++) { String id = models[i].getPluginBase().getId(); if (id == null || id.trim().length() == 0) continue; IPath[] paths = getDevPaths(models[i], checkExcluded, null); for (int j = 0; j < paths.length; j++) { list.add(paths[j]); } } String entry = writeEntry(list.toArray(new IPath[list.size()])); return entry.length() > 0 ? entry : "bin"; //$NON-NLS-1$ }
@Override public String[] getProgramArguments(ILaunchConfiguration configuration) throws CoreException { ArrayList<String> programArgs = new ArrayList<>(); programArgs.add("-dev"); //$NON-NLS-1$ programArgs.add(ClasspathHelper.getDevEntriesProperties(getConfigDir(configuration).toString() + "/dev.properties", fAllBundles)); //$NON-NLS-1$ saveConfigurationFile(configuration); programArgs.add("-configuration"); //$NON-NLS-1$ programArgs.add("file:" + new Path(getConfigDir(configuration).getPath()).addTrailingSeparator().toString()); //$NON-NLS-1$ String[] args = super.getProgramArguments(configuration); for (String arg : args) { programArgs.add(arg); } return programArgs.toArray(new String[programArgs.size()]); }
programArgs.add(ClasspathHelper.getDevEntriesProperties(getConfigDir(configuration).toString() + "/dev.properties", true)); //$NON-NLS-1$ } else { String productID = LaunchConfigurationHelper.getProductID(configuration); programArgs.add(ClasspathHelper.getDevEntriesProperties(getConfigDir(configuration).toString() + "/dev.properties", fAllBundles)); //$NON-NLS-1$