net.sf.debianmaven.utils.FileCopy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of debian-maven-plugin Show documentation
Show all versions of debian-maven-plugin Show documentation
This plugin helps building DEB packages from Maven projects.
The packages can be used in DEB-based operating systems such
as Debian and Ubuntu. The plugin uses external Debian tools
to do the actual packaging.
Fork of: http://debian-maven.sourceforge.net
The newest version!
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/*
* FileCopy.java
* Copyright (C) 2019 University of Waikato, Hamilton, NZ
*/
package net.sf.debianmaven.utils;
import org.apache.maven.plugin.logging.Log;
import java.io.IOException;
import java.nio.file.Path;
/**
* Interface for schemes that can copy files.
*/
public interface FileCopy
{
/**
* Sets the log to use.
* @param log the log
*/
public void setLog(Log log);
/**
* Returns the log in use.
* @return the log
*/
public Log getLog();
/**
* Copies input file to output file.
*
* @param input the input file
* @param output the output file
* @throws IOException if copying fails
*/
public void copy(Path input, Path output) throws IOException;
}