All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aragost.javahg.commands.ImportCommand Maven / Gradle / Ivy

package com.aragost.javahg.commands;

import java.io.File;
import java.io.IOException;

import com.aragost.javahg.Repository;
import com.aragost.javahg.commands.flags.ImportCommandFlags;
import com.aragost.javahg.internals.Utils;

public class ImportCommand extends ImportCommandFlags {

    public ImportCommand(Repository repository) {
        super(repository);
    }

    /**
     * Run hg import on the files.
     * 
     * @param files
     *            the input files
     * @throws IOException
     */
    public void execute(String... files) throws IOException {
        launchString(files);
    }

    /**
     * Run hg import on the files.
     * 
     * @param files
     *            the input files
     * @throws IOException
     */
    public void execute(File... files) throws IOException {
        launchString(Utils.fileArray2StringArray(files));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy