dk.netarkivet.archive.tools
Class Upload

java.lang.Object
  extended by dk.netarkivet.archive.tools.Upload

public class Upload
extends java.lang.Object

A tool to force upload of given arc files into the ArcRepository found in settings.xml. All succesfully uploaded files are deleted locally. Usage: java dk.netarkivet.archive.tools.Upload file1 [file2 ...]


Constructor Summary
Upload()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Main method, uploads given arc files to the ArcRepository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Upload

public Upload()
Method Detail

main

public static void main(java.lang.String[] argv)
Main method, uploads given arc files to the ArcRepository. If some file does not exist or is not an arc file, the methods prints out an error and calls System.exit(). Successfully uploaded files are deleted locally. If some arc file cannot be uploaded, the method continues to upload the rest of the files and does not delete that file.

Parameters:
argv - A list of absolute paths to the arc files that should be uploaded.