Package org.apache.tools.ant.util

Examples of org.apache.tools.ant.util.FileUtils.copyFile()


            new File(confDir, "web.xml"));

        // deploy the web-app by copying the WAR file into the webapps
        // directory
        File webappsDir = createDirectory(getTmpDir(), "webapps");
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(webappsDir, getDeployableFile().getFile().getName()),
            null, true);
       
        // Copy user-provided configuration files into the temporary conf/
        // container directory.
View Full Code Here


        if (getServerXml() != null)
        {
            FileUtils fileUtils = FileUtils.newFileUtils();
            try
            {
                fileUtils.copyFile(getServerXml(),
                    new File(theConfDir, "server.xml"));
            }
            catch (IOException ioe)
            {
                throw new BuildException("Could not copy " + getServerXml()
View Full Code Here

        File testDomainDir = createDirectory(this.tmpDir, "testdomain");

        if (this.configXml != null)
        {
            fileUtils.copyFile(this.configXml,
                new File(testDomainDir, "config.xml"));
        }
        else
        {
            ResourceUtils.copyResource(getProject(),
View Full Code Here

        copy.execute();
           
        // Deploy the web-app by copying the WAR file into the webapps
        // directory
        File deployDir = new File(theCustomServerDir, "/deploy");
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(deployDir, getDeployableFile().getFile().getName()),
            null, true);
    }

    /**
 
View Full Code Here

        FilterChain filterChain = createFilterChain();

        // Copy configuration files into the temporary container directory
        if (this.resinConf != null)
        {
            fileUtils.copyFile(this.resinConf,
                new File(theInstallDir, "resin.conf"));
        }
        else
        {
            ResourceUtils.copyResource(getProject(),
View Full Code Here

        // Deploy the web-app by copying the WAR file into the webapps
        // directory
        if (getDeployableFile() != null)
        {
            File webappsDir = createDirectory(theInstallDir, "webapps");
            fileUtils.copyFile(getDeployableFile().getFile(),
                new File(webappsDir, getDeployableFile().getFile().getName()),
                null, true);
        }
       
        // Add preparation steps specific to a given container version
View Full Code Here

        File testDomainDir = createDirectory(this.tmpDir, "testdomain");

        if (this.configXml != null)
        {
            fileUtils.copyFile(this.configXml,
                new File(testDomainDir, "config.xml"));
        }
        else
        {
            ResourceUtils.copyResource(getProject(),
View Full Code Here

        if (!file.exists()) {
            throw new CruiseControlException("target file " + file.getAbsolutePath() + " does not exist");
        }
        FileUtils utils = FileUtils.newFileUtils();
        try {
            utils.copyFile(file, new File(uniqueDest, file.getName()));
        } catch (IOException e) {
            throw new CruiseControlException(e);
        }
    }
View Full Code Here

        if (!file.exists()) {
            throw new CruiseControlException("target file " + file.getAbsolutePath() + " does not exist");
        }
        FileUtils utils = FileUtils.newFileUtils();
        try {
            utils.copyFile(file, new File(uniqueDest, file.getName()));
        } catch (IOException e) {
            throw new CruiseControlException(e);
        }
    }
View Full Code Here

                            newSources[j].substring(0, newSources[j].length() - extLen) +
                            ".java";
                                                              
                        File srcFile = new File(srcDir, newSources[j]);
                        File dstFile = new File(_genDir, toName);
                        fileUtils.copyFile(srcFile, dstFile, null, true, true);
                        newCompileList[compileList.length + j] = dstFile;
                    }
                }
                catch (IOException ioe)
                {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.