Examples of PublishException


Examples of org.apache.pluto.util.publish.PublishException

            if(LOG.isDebugEnabled()) {
                LOG.debug("Response Details: \n"+response);
            }
        }
        catch(HttpException he) {
            throw new PublishException("Unable to publish. "+he.getMessage(), he);
        }
        catch(IOException io) {
            throw new PublishException("Unable to publish. "+io.getMessage(), io);
        }
    }
View Full Code Here

Examples of org.gradle.api.artifacts.PublishException

    public void run() {
        try {
            publish();
        } catch (Exception e) {
            throw new PublishException(String.format("Failed to publish publication '%s' to repository '%s'", publication.getName(), repository.getName()), e);
        }
    }
View Full Code Here

Examples of org.gradle.api.artifacts.PublishException

        File artifactFile = artifact.getFile();
        if (artifactFile.exists()) {
            return true;
        }
        if (!isSigningArtifact(artifact.getArtifactName())) {
            throw new PublishException(String.format("Cannot publish artifact '%s' (%s) as it does not exist.", artifact.getId(), artifactFile));
        }
        return false;
    }
View Full Code Here

Examples of org.gradle.api.artifacts.PublishException

        List<PublicationAwareRepository> publishRepositories = collect(getRepositories(), Transformers.cast(PublicationAwareRepository.class));

        try {
            artifactPublisher.publish(publishRepositories, module, configuration, descriptorDestination);
        } catch (Exception e) {
            throw new PublishException(String.format("Could not publish configuration '%s'", configuration.getName()), e);
        }
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.extensions.pentaho.repository.util.PublishException

          if (result == HttpStatus.SC_MOVED_TEMPORARILY ||
              result == HttpStatus.SC_FORBIDDEN ||
              result == HttpStatus.SC_UNAUTHORIZED)
          {
            // notify the world that the login data is no longer valid
            throw new PublishException(PublishException.ERROR_INVALID_USERNAME_OR_PASSWORD);
          }
          else
          {
            throw new PublishException(PublishException.ERROR_FAILED, result);
          }
        }

        final byte[] responseBody = method.getResponseBody();
        final ResourceManager manager = new ResourceManager();
View Full Code Here

Examples of org.pentaho.reporting.designer.extensions.pentaho.repository.util.PublishException

   
    try {
      final int result = client.executeMethod(reservedCharactersMethod);
      if (!checkResult(result))
      {
        throw new PublishException(1);
      }
      PublishUtil.setReservedChars(reservedCharactersMethod.getResponseBodyAsString());
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
   
    try {
      final int result = client.executeMethod(reservedCharactersDisplayMethod);
      if (!checkResult(result))
      {
        throw new PublishException(1);
      }
      PublishUtil.setReservedCharsDisplay(reservedCharactersDisplayMethod.getResponseBodyAsString());
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.pentaho.reporting.designer.extensions.pentaho.repository.util.PublishException

          if (result == HttpStatus.SC_MOVED_TEMPORARILY ||
              result == HttpStatus.SC_FORBIDDEN ||
              result == HttpStatus.SC_UNAUTHORIZED)
          {
            // notify the world that the login data is no longer valid
            throw new PublishException(PublishException.ERROR_INVALID_USERNAME_OR_PASSWORD);
          }
          else
          {
            throw new PublishException(PublishException.ERROR_FAILED, result);
          }
        }

        final byte[] responseBody = method.getResponseBody();
        final ResourceManager manager = new ResourceManager();
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.