Examples of SimplePath


Examples of net.sourceforge.javautil.common.io.impl.SimplePath

    } else {
      return null;
    }
   
    try {
      return this.getClassSource(reference, setup.root.getDirectory(new SimplePath(target)));
    } catch (VirtualArtifactNotFoundException e) {
      return null;
    } finally {
     
    }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

      .append( reference.getVersion().toVersionString() )
      .toString();
  }

  public IVirtualPath createPackagePath(IClassPackageReference reference) {
    return new SimplePath( CollectionUtil.push(reference.getGroupId().split("\\."),
      reference.getArtifactId(), reference.getVersion().toVersionString()) );
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

    return new SimplePath( CollectionUtil.push(reference.getGroupId().split("\\."),
      reference.getArtifactId(), reference.getVersion().toVersionString()) );
  }

  public IVirtualPath createArtifactPath(IClassArtifactReference reference) {
    return new SimplePath( CollectionUtil.push(reference.getGroupId().split("\\."), reference.getArtifactId() ));
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

  /**
   * @param repositoryName The repository name
   * @return True if the repository exists, otherwise false
   */
  public static boolean isExistsRepository (String repositoryName) {
    return VirtualArtifactSystem.get(MEMORY_REPOSITORY_VAS, true).isExists(new SimplePath(repositoryName));
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

   * @param repositoryName The repository name
   * @param name The name of the jar
   * @return True if the jar exists in the specified repository, otherwise false
   */
  public static boolean isExistsJar (String repositoryName, String name) {
    return VirtualArtifactSystem.get(MEMORY_REPOSITORY_VAS, true).isExists(new SimplePath(repositoryName + "/" + name));
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

      ZipEntry entry = null;
      do {
        entry = input.getNextEntry();
        if (entry != null) {
          if (entry.getName().endsWith("/")) {
            directory.createDirectory(new SimplePath(entry.getName()));
          } else
            directory.createFile(new SimplePath(entry.getName()), IOUtil.read(input, null, false));
        }
      } while (entry != null);
    } catch (IOException e) {
      throw ThrowableManagerRegistry.caught(e);
    } finally {
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

    return this.hasParentPackage(info.getPackageName());
  }

  @Override public boolean hasParentPackage(String packageName) {
    try {
      return directory.getArtifact(new SimplePath(packageName, "\\.")) instanceof IVirtualDirectory;
    } catch (VirtualArtifactNotFoundException e) {
      return false;
    }
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

 
  private IVirtualArtifact getPathedArtifact (String path) { return directory.getArtifact(this.getPath(path)); }
 
  private IVirtualArtifact getArtifact (ClassSearchInfo info) { return directory.getArtifact(this.getPath(info.getClassPath())); }
 
  private IVirtualPath getPath (String path) { return new SimplePath(path, pathSeparator); }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SimplePath

 
  @Override public URL getResource(String resourceName) {
    URL url = super.getResource(resourceName);
    if (url == null) {
      try {
        url = libDirectory.getArtifact(new SimplePath(resourceName)).getURL();
      } catch (VirtualArtifactNotFoundException e) {
        return null;
      }
    }
    return url;
View Full Code Here

Examples of org.pietschy.wizard.models.SimplePath

  /**
   * Build up the wizard's path.
   * @return the wizard's path
   */
  private Path buildPath() {
    SimplePath path = new SimplePath();
    // Selection of data set, table name, etc.
    path.addStep(new DbDataStep());
    // database connection settings
    path.addStep(new DbPropertiesStep());

    return path;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.