Tabnine Logo
ArchiveUtil.getTokens
Code IndexAdd Tabnine to your IDE (free)

How to use
getTokens
method
in
org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil

Best Java code snippets using org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getTokens (Showing top 5 results out of 315)

origin: org.eclipse/org.eclipse.jst.j2ee.core

public static String[] getTokens(String aString) {
  return getTokens(aString, null);
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * @see com.ibm.etools.archive.ArchiveManifest
 */
public java.lang.String[] getClassPathTokenized() {
  String classPath = getClassPath();
  if (classPath == null)
    return new String[0];
  return org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil.getTokens(classPath);
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * Parse the manifest class path and the extra class path, and instantiate a URL classloader,
 * with a parent of the archiveClassLoader
 */
protected ClassLoader getClassPathClassLoader(ClassLoader parentCl) {
  List classPathComponents = new ArrayList();
  if (getManifest() != null)
    classPathComponents.addAll(Arrays.asList(getManifest().getClassPathTokenized()));
  String extraCp = getExtraClasspath();
  if (extraCp != null)
    classPathComponents.addAll(Arrays.asList(ArchiveUtil.getTokens(extraCp, ";")));//$NON-NLS-1$
  java.net.URL[] urlArray = ArchiveUtil.toLocalURLs(classPathComponents, getRootForRelativeDependentJars());
  return new java.net.URLClassLoader(urlArray, parentCl);
}
origin: org.eclipse/org.eclipse.jst.j2ee

public IStatus execute(IProgressMonitor monitor, IAdaptable adaptable) throws ExecutionException {
  IFile file = (IFile)model.getProperty(UpdateManifestDataModelProperties.MANIFEST_FILE);
  
  String classPathValue = model.getStringProperty(UpdateManifestDataModelProperties.JAR_LIST_TEXT_UI);
  try {
    ArchiveManifest mf = J2EEProjectUtilities.readManifest(file);
    
    if (mf == null)
      mf = new ArchiveManifestImpl();
    mf.addVersionIfNecessary();
    if (model.getBooleanProperty(UpdateManifestDataModelProperties.MERGE)) {
      mf.mergeClassPath(ArchiveUtil.getTokens(classPathValue));
    } else {
      mf.setClassPath(classPathValue);
    }
    if (model.isPropertySet(UpdateManifestDataModelProperties.MAIN_CLASS)) {
      mf.setMainClass(model.getStringProperty(UpdateManifestDataModelProperties.MAIN_CLASS));
    }
    J2EEProjectUtilities.writeManifest(file, mf);
  } catch (java.io.IOException ex) {
    throw new ExecutionException(ex.getMessage(),ex);
  }
  return OK_STATUS;
}
origin: org.eclipse/org.eclipse.jst.j2ee.ui

    mf.setClassPath(classPathValue);
  else
    mf.mergeClassPath(ArchiveUtil.getTokens(classPathValue));
  J2EEProjectUtilities.writeManifest(p, mf);
} catch (java.io.IOException ex) {
org.eclipse.jst.j2ee.commonarchivecore.internal.utilArchiveUtilgetTokens

Popular methods of ArchiveUtil

  • deriveEARRelativeURI
    Leverage the java.io.File apis to resolve things like "./xxx" and "../xxx" into uris of entries in t
  • classNameToJavaUri
  • classNameToUri
  • classUriToJavaUri
    For a given uri of a .class file, derive the uri of the .java file; takes into consideration inner c
  • copy
    Copy all the data from the input stream to the output stream up until the first end of file characte
  • concatUri
    Concatenates the two strings with a separator, if necessary
  • createTempDirectory
  • createTempFile
  • delete
    deletes a file from the file system; for directories, recurse the subdirectories and delete them as
  • getArchive
    For the given resource, return the owning module file; for example, retrieve the EJBJarFile that own
  • getFastSpecVersion
  • getFileNameExtension
    Return "" if there is no extension
  • getFastSpecVersion,
  • getFileNameExtension,
  • getFileNameParent,
  • getFileNameTail,
  • getJ2EE13PublicAndSystemIdFor,
  • getModuleFile,
  • getModuleFileTypeName,
  • getModuleFileUsingAltDD,
  • getOSUri

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now