> +import java.io.File;
> +import java.io.FileInputStream;
> +import java.io.FileOutputStream;
> +import java.io.IOException;
> +
> +import static com.google.common.collect.Iterables.getLast;
> +
> +/**
> + * @author Andrea Turli
> + */
> +public class Archives {
> +
> +   public static File tar(File baseDir, String archivePath) throws 
> IOException {
> +      // Check that the directory is a directory, and get its contents
> +      if (!baseDir.isDirectory())
> +         throw new IllegalArgumentException("Compress: not a directory:  " + 
> baseDir);

Use `checkArgument` instead.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10838908

Reply via email to