本文整理了Java中org.eclipse.jetty.util.IO.copyDir()
方法的一些代码示例,展示了IO.copyDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IO.copyDir()
方法的具体详情如下:
包路径:org.eclipse.jetty.util.IO
类名称:IO
方法名:copyDir
暂无
代码示例来源:origin: org.eclipse.jetty/jetty-util
@Override
public void copyTo(File destination) throws IOException
{
if (isDirectory())
{
IO.copyDir(this.path.toFile(),destination);
}
else
{
Files.copy(this.path,destination.toPath());
}
}
代码示例来源:origin: org.eclipse.jetty/jetty-util
/** Copy files or directories
* @param from the file to copy
* @param to the destination to copy to
* @throws IOException if unable to copy
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: org.eclipse.jetty/jetty-util
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: Nextdoor/bender
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
/** Copy files or directories
* @param from
* @param to
* @throws IOException
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: jenkinsci/winstone
/** Copy files or directories
* @param from the file to copy
* @param to the destination to copy to
* @throws IOException if unable to copy
*/
public static void copy(File from,File to) throws IOException
{
if (from.isDirectory())
copyDir(from,to);
else
copyFile(from,to);
}
代码示例来源:origin: jenkinsci/winstone
@Override
public void copyTo(File destination) throws IOException
{
if (isDirectory())
{
IO.copyDir(this.path.toFile(),destination);
}
else
{
Files.copy(this.path,destination.toPath());
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
代码示例来源:origin: jenkinsci/winstone
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
代码示例来源:origin: Nextdoor/bender
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
@Override
public void copyTo(File destination)
throws IOException
{
if (isDirectory())
{
IO.copyDir(getFile(),destination);
}
else
{
if (destination.exists())
throw new IllegalArgumentException(destination+" exists");
IO.copy(getFile(),destination);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!