Package net.sourceforge.javautil.classloader.resolver

Examples of net.sourceforge.javautil.classloader.resolver.ClassPackageException


    return this.toArtifactString();
  }
 
  public void write (OutputStream output) throws JAXBException {
    if (this.input == null) {
      throw new ClassPackageException(this, "Cannot write out simulated POM files");
    }
   
    try {
      IOUtil.transfer(input.getInputStream(), output);
    } catch (IOException e) {
      throw new ClassPackageException(this, "Could not write out original source");
    }
  }
View Full Code Here


      String prefix = this.createFilenamePrefix(descriptor);
     
      IVirtualFile imported = packageDir.getFile(remote.getName().replaceAll("[:/]+", "-") + "remote-" + prefix + ".pom", true);
      ((ProjectObjectModel) descriptor).write(imported.getOutputStream());
    } catch (VirtualArtifactNotFoundException e) {
      throw new ClassPackageException(descriptor, "Could not import remote descriptor", e);
    } catch (IOException e) {
      throw new ClassPackageException(descriptor, "Could not import remote descriptor", e);
    } catch (JAXBException e) {
      throw new ClassPackageException(descriptor, "Could not import remote descriptor", e);
    }
  }
View Full Code Here

   */
  protected void handleInvalidChecksum (IVirtualDirectory versionDirectory, IClassPackageReference reference, URL url) {
    log.warning(reference + " download did not pass checksum validation: " + url);
   
    versionDirectory.remove();
    throw new ClassPackageException(reference, "Checksum invalid");
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.classloader.resolver.ClassPackageException

Copyright © 2018 www.massapicom. 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.