Package com.redhat.rcm.maven.plugin.buildmetadata.scm

Examples of com.redhat.rcm.maven.plugin.buildmetadata.scm.ScmException


      {
        buildMetaDataProperties.setProperty(
            Constant.PROP_NAME_SCM_LOCALLY_MODIFIED_FILES, info.getFiles());
        if (scmAccessInfo.isFailIndicated())
        {
          throw new ScmException("Local Modifications detected ("
                                 + info.getFiles() + ").");
        }
      }
    }
    catch (final Exception e)
    {
      if (scmAccessInfo.isFailIndicated())
      {
        throw new ScmException(e);
      }
      else
      {
        buildMetaDataProperties.setProperty(
            Constant.PROP_NAME_SCM_LOCALLY_MODIFIED, "unknown");
View Full Code Here


        if (getLog().isDebugEnabled())
        {
          getLog().debug(message);
        }

        throw new ScmException(message);
      }
    }
    catch (final org.apache.maven.scm.ScmException e)
    {
      throw new ScmException(e);
    }
  }
View Full Code Here

          scmManager.getProviderByRepository(repository);
      return provider;
    }
    catch (final NoSuchScmProviderException e)
    {
      throw new ScmException("Cannot create SCM provider.", e);
    }
  }
View Full Code Here

        }
        return result;
    }
    catch (final org.apache.maven.scm.ScmException e)
    {
      throw new ScmException("Cannot fetch change log from repository.", e);
    }
  }
View Full Code Here

      {
        buildMetaDataProperties.setProperty(
            Constant.PROP_NAME_SCM_LOCALLY_MODIFIED_FILES, info.getFiles());
        if (scmAccessInfo.isFailIndicated())
        {
          throw new ScmException("Local Modifications detected ("
                                 + info.getFiles() + ").");
        }
      }
    }
    catch (final Exception e)
    {
      if (scmAccessInfo.isFailIndicated())
      {
        throw new ScmException(e);
      }
      else
      {
        buildMetaDataProperties.setProperty(
            Constant.PROP_NAME_SCM_LOCALLY_MODIFIED, "unknown");
View Full Code Here

        if (LOG.isDebugEnabled())
        {
          LOG.debug(message);
        }

        throw new ScmException(message);
      }
    }
    catch (final org.apache.maven.scm.ScmException e)
    {
      throw new ScmException(e);
    }
  }
View Full Code Here

          scmManager.getProviderByRepository(repository);
      return provider;
    }
    catch (final NoSuchScmProviderException e)
    {
      throw new ScmException("Cannot create SCM provider.", e);
    }
  }
View Full Code Here

      }
      return repository;
    }
    catch (final Exception e)
    {
      throw new ScmException("The SCM provider cannot be created.", e);
    }
  }
View Full Code Here

      }
      return result;
    }
    catch (final org.apache.maven.scm.ScmException e)
    {
      throw new ScmException("Cannot fetch change log from repository.", e);
    }
  }
View Full Code Here

      {
        process.waitFor();
        final int exitValue = process.exitValue();
        if (exitValue != 0)
        {
          throw new ScmException(
              "Cannot fetch remote version from repository (" + exitValue
                  + "): " + IOUtils.toString(process.getErrorStream()));
        }
        final String result = IOUtils.toString(process.getInputStream());
        final Revision revision = createRevision(result);
        return revision;
      }
      finally
      {
        process.destroy();
      }
    }
    catch (final Exception e)
    {
      throw new ScmException("Cannot fetch remote version from repository.", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.redhat.rcm.maven.plugin.buildmetadata.scm.ScmException

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.