org.commonjava.maven.galley.model.Transfer.getFullPath()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.commonjava.maven.galley.model.Transfer.getFullPath()方法的一些代码示例,展示了Transfer.getFullPath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transfer.getFullPath()方法的具体详情如下:
包路径:org.commonjava.maven.galley.model.Transfer
类名称:Transfer
方法名:getFullPath

Transfer.getFullPath介绍

暂无

代码示例

代码示例来源:origin: org.commonjava.aprox/aprox-promote-common

@Override
public String getFullPath()
{
  return delegate.getFullPath();
}

代码示例来源:origin: org.commonjava.aprox/aprox-core

protected void clearMergedFile( final Group group, final String path )
  throws AproxWorkflowException
{
  // delete so it'll be recomputed.
  final Transfer target = fileManager.getStorageReference( group, path );
  try
  {
    logger.debug( "Deleting merged file: {}", target );
    target.delete();
    helper.deleteChecksumsAndMergeInfo( group, path );
  }
  catch ( final IOException e )
  {
    throw new AproxWorkflowException(
    "Failed to delete generated file (to allow re-generation on demand: {}. Error: {}", e,
                     target.getFullPath(), e.getMessage() );
  }
}

代码示例来源:origin: org.commonjava.aprox/aprox-core

public void onStoreDeletion( @Observes final AbstractStoreDeleteEvent event )
{
  for ( final Map.Entry<ArtifactStore, Transfer> storeRoot : event.getStoreRoots()
                                  .entrySet() )
  {
    final StoreKey key = storeRoot.getKey()
                   .getKey();
    final Transfer dir = storeRoot.getValue();
    if ( dir.exists() && dir.isDirectory() )
    {
      try
      {
        logger.info( "[STORE REMOVED; DELETE] {}", dir.getFullPath() );
        dir.delete();
        scheduleManager.cancelAll( new StoreKeyMatcher( key, ScheduleManager.CONTENT_JOB_TYPE ) );
      }
      catch ( final IOException e )
      {
        logger.error( String.format( "Failed to delete storage for deleted artifact store: %s (dir: %s). Error: %s",
                       key, dir, e.getMessage() ), e );
      }
      catch ( final AproxSchedulerException e )
      {
        logger.error( String.format( "Failed to cancel file expirations for deleted artifact store: {} (dir: {}). Error: {}",
                       key, dir, e.getMessage() ), e );
      }
    }
  }
}

代码示例来源:origin: org.commonjava.maven.galley/galley-transport-httpclient

@Override
public OutputStream decorateWrite( final OutputStream stream, final Transfer transfer, final TransferOperation op, final EventMetadata metadata )
    throws IOException
{
  final Location loc = transfer.getLocation();
  final boolean allowsSnapshots = loc.allowsSnapshots();
  final boolean allowsReleases = loc.allowsReleases();
  if ( loc instanceof HttpLocation && ( !allowsSnapshots || !allowsReleases )
      && transfer.getFullPath().endsWith( "maven-metadata.xml" ) )
  {
    return new MetadataFilteringOutputStream( stream, allowsSnapshots, allowsReleases, transfer );
  }
  else
  {
    return stream;
  }
}

代码示例来源:origin: org.commonjava.indy/indy-core

logger.trace( "Checking {} (exists? {}; file: {})", transfer, transfer != null && transfer.exists(), transfer == null ? "NONE" : transfer.getFullPath() );
if ( transfer != null && !transfer.exists() && ( op == DOWNLOAD || op == LISTING ) )

代码示例来源:origin: org.commonjava.maven.galley/galley-core

logger.info( "Delete empty folder, {}", childRef.getFullPath() );

相关文章