当前位置: 首页>>代码示例>>Java>>正文


Java RecursiveDeleteVisitor类代码示例

本文整理汇总了Java中org.eclipse.scada.utils.io.RecursiveDeleteVisitor的典型用法代码示例。如果您正苦于以下问题:Java RecursiveDeleteVisitor类的具体用法?Java RecursiveDeleteVisitor怎么用?Java RecursiveDeleteVisitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RecursiveDeleteVisitor类属于org.eclipse.scada.utils.io包,在下文中一共展示了RecursiveDeleteVisitor类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: process

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@Override
protected AetherResult process ( final Context context, final ImportConfiguration cfg ) throws Exception
{
    final Path tmpDir = Files.createTempDirectory ( "aether" );

    try
    {
        return markExisting ( prepareDependencies ( tmpDir, cfg ), cfg, this.channelService );
    }
    catch ( final Exception e )
    {
        logger.warn ( "Failed to test", e );
        throw e;
    }
    finally
    {
        Files.walkFileTree ( tmpDir, new RecursiveDeleteVisitor () );
        Files.deleteIfExists ( tmpDir );
    }
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:21,代码来源:AetherResolver.java

示例2: process

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@Override
protected AetherResult process ( final Context context, final ImportConfiguration cfg ) throws Exception
{
    final Path tmpDir = Files.createTempDirectory ( "aether" );

    try
    {
        return preparePlain ( tmpDir, cfg );

    }
    catch ( final Exception e )
    {
        logger.warn ( "Failed to test", e );
        throw e;
    }
    finally
    {
        Files.walkFileTree ( tmpDir, new RecursiveDeleteVisitor () );
        Files.deleteIfExists ( tmpDir );
    }
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:22,代码来源:AetherTester.java

示例3: clear

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@Override
public void clear () throws IOException
{
    synchronized ( CacheStore.this )
    {
        // if we have a "next" dir
        if ( this.tmp != null )
        {
            // delete it
            Files.walkFileTree ( this.tmp, new RecursiveDeleteVisitor () );
        }

        // and ensure we always have one
        makeTemp ();
    }
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:17,代码来源:CacheStore.java

示例4: rollback

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@Override
public void rollback ()
{
    synchronized ( CacheStore.this )
    {
        markFinished ( this );

        if ( this.tmp == null )
        {
            return;
        }

        try
        {
            Files.walkFileTree ( this.tmp, new RecursiveDeleteVisitor () );
        }
        catch ( final IOException e )
        {
            throw new RuntimeException ( "Failed to roll back", e );
        }
    }
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:23,代码来源:CacheStore.java

示例5: setup

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@BeforeClass
public static void setup () throws IOException
{
    basePath = Paths.get ( ".", "target", "test" ).toAbsolutePath ();
    if ( Files.exists ( basePath ) )
    {
        Files.walkFileTree ( basePath, new RecursiveDeleteVisitor () );
    }
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:10,代码来源:BaseTest.java

示例6: setup

import org.eclipse.scada.utils.io.RecursiveDeleteVisitor; //导入依赖的package包/类
@BeforeClass
public static void setup () throws IOException
{
    basePath = Paths.get ( "tests" );

    if ( Files.exists ( basePath ) )
    {
        Files.walkFileTree ( basePath, new RecursiveDeleteVisitor () );
    }

    Files.createDirectories ( basePath );
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:13,代码来源:CacheStoreTest.java


注:本文中的org.eclipse.scada.utils.io.RecursiveDeleteVisitor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。