public static void main ( String [ ] args ) { try { Arguments arguments = new Arguments ( args ) ; File root = new File ( arguments . next ( "content" ) ) ; if ( ! root . isDirectory ( ) ) { root = new File ( "." ) ; } String rootPath = root . getCanonicalPath ( ) ; String sip = arguments . next ( "build/files.zip" ) ; new FileArchiver ( ) . run ( rootPath , sip ) ; } catch ( IOException e ) { e . printStackTrace ( System . out ) ; System . exit ( 1 ) ; } }
Build a SIP archive from all files in a given directory tree .