Examples of ArtifactLocation


Examples of adept.artifact.models.ArtifactLocation

  @Override
  public ArtifactDownloadResult call() throws Exception {
    if (artifact.locations.size() != 1)
      throw new Exception("Locations different from 1 is not currently implemented and we got: " + artifact); // TODO:
                                                                                                              // implement!
    ArtifactLocation location = artifact.locations.iterator().next();
    URL url = location.getURL();
    int retries = 0;
    ArtifactDownloadResult result = null;
    while (result == null) {
      FileOutputStream fos = null;
      InputStream is = null;
View Full Code Here

Examples of adept.artifact.models.ArtifactLocation

        size = parser.getValueAsInt();
      } else if (fieldName.equals("locations")) {
        locations = new HashSet<ArtifactLocation>();
        assert (parser.getCurrentToken() == JsonToken.START_ARRAY);
        while (parser.nextToken() != JsonToken.END_ARRAY) {
          locations.add(new ArtifactLocation(parser.getValueAsString()));
        }
      } else if (fieldName.equals("attributes")) {
        attributes = new HashSet<ArtifactAttribute>();
        assert (parser.getCurrentToken() == JsonToken.START_ARRAY);
        while (parser.nextToken() != JsonToken.END_ARRAY) {
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.