本文整理了Java中org.commonjava.maven.galley.model.Transfer.getChild()
方法的一些代码示例,展示了Transfer.getChild()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transfer.getChild()
方法的具体详情如下:
包路径:org.commonjava.maven.galley.model.Transfer
类名称:Transfer
方法名:getChild
暂无
代码示例来源:origin: org.commonjava.aprox/aprox-promote-common
@Override
public Transfer getChild( String file )
{
return readOnlyWrapper( delegate.getChild( file ) );
}
代码示例来源:origin: org.commonjava.maven.galley/galley-api
public Transfer getSibling( final String named )
{
if ( resource.isRoot() )
{
return null;
}
return getParent().getChild( named );
}
代码示例来源:origin: org.commonjava.maven.galley/galley-transport-httpclient
metaTxfr = target.getChild( HttpExchangeMetadata.FILE_EXTENSION );
代码示例来源:origin: org.commonjava.maven.galley/galley-transport-httpclient
metaTxfr = target.getChild( HttpExchangeMetadata.FILE_EXTENSION );
代码示例来源:origin: org.commonjava.aprox/aprox-core
private void recurseAndDelete( final Transfer txfr )
{
try
{
final String[] list = txfr.list();
if ( list == null )
{
return;
}
for ( final String fname : list )
{
final Transfer child = txfr.getChild( fname );
if ( child.isDirectory() )
{
recurseAndDelete( child );
}
else
{
child.delete( true );
}
}
}
catch ( final IOException e )
{
logger.error( String.format( "Failed to list files for deletion under: %s. Reason: %s", txfr,
e.getMessage() ), e );
}
}
代码示例来源:origin: org.commonjava.indy/indy-core
Transfer t = next.getChild( filename );
if ( t.isDirectory() )
代码示例来源:origin: org.commonjava.indy/indy-core
private void recurseListing( final Transfer transfer, final List<Transfer> result )
throws IndyWorkflowException
{
if ( transfer.isDirectory() )
{
try
{
final String[] children = transfer.list();
for ( final String child : children )
{
final Transfer childTransfer = transfer.getChild( child );
recurseListing( childTransfer, result );
}
}
catch ( final IOException e )
{
throw new IndyWorkflowException( "Failed to list children of: %s. Reason: %s", e, transfer,
e.getMessage() );
}
}
else if ( transfer.exists() )
{
result.add( transfer );
}
}
代码示例来源:origin: org.commonjava.aprox/aprox-core
private void recurseListing( final Transfer transfer, final List<Transfer> result )
throws AproxWorkflowException
{
if ( transfer.isDirectory() )
{
try
{
final String[] children = transfer.list();
for ( final String child : children )
{
final Transfer childTransfer = transfer.getChild( child );
recurseListing( childTransfer, result );
}
}
catch ( final IOException e )
{
throw new AproxWorkflowException( "Failed to list children of: %s. Reason: %s", e, transfer,
e.getMessage() );
}
}
else if ( transfer.exists() )
{
result.add( transfer );
}
}
代码示例来源:origin: org.commonjava.indy/indy-core
private void doRescan( final Transfer item )
{
if ( !item.exists() )
{
return;
}
if ( item.isDirectory() )
{
try
{
final String[] listing = item.list();
for ( final String sub : listing )
{
doRescan( item.getChild( sub ) );
}
}
catch ( final IOException e )
{
logger.error( "Failed to list local contents: {}. Reason: {}", e, item, e.getMessage() );
}
}
fileEventManager.fire( new FileAccessEvent( item, eventMetadata ) );
}
代码示例来源:origin: org.commonjava.aprox/aprox-core
private void doRescan( final Transfer item )
{
if ( !item.exists() )
{
return;
}
if ( item.isDirectory() )
{
try
{
final String[] listing = item.list();
for ( final String sub : listing )
{
doRescan( item.getChild( sub ) );
}
}
catch ( final IOException e )
{
logger.error( "Failed to list local contents: {}. Reason: {}", e, item, e.getMessage() );
}
}
fileEventManager.fire( new FileAccessEvent( item, eventMetadata ) );
}
代码示例来源:origin: org.commonjava.maven.galley/galley-core
if ( !doDelete( item.getChild( sub ), eventMetadata ) )
内容来源于网络,如有侵权,请联系作者删除!