samples/sample-2-content/src/main/java/com/opentext/ia/sdk/sample/assemble/FileArchiver.java
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);
    }
  }
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.
@param args The command line args:<ol>
<li>The path to the directory to be archived. The default value is the current directory.</li>
<li>The path to the SIP archive to be built. The default value is <code>build/files.zip</code></li>
</ol>