import java.io.*;
import java.util.*;
import java.util.jar.*;
import java.util.regex.*;
import org.apache.maven.plugin.clean.*;

try
{
    File targetDir = new File( basedir, "target" );
    File link = new File( targetDir, "link" );
    File target = new File( targetDir, "link-target.txt" );

    System.out.println( "Creating symlink " + link + " -> " + target );
    if ( !Utils.createSymlink( target, link ) || !link.exists() )
    {
        System.out.println( "FAILURE, platform does not support symlinks, skipping test." );
    }

    System.out.println( "Deleting symlink target " + target );
    target.delete();
}
catch( Throwable t )
{
    t.printStackTrace();
    return false;
}

return true;
