Package org.apache.tools.ant.util

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


                            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


        createDirectory(tmpDir, "application-deployments");

        // Orion log directory
        createDirectory(tmpDir, "log");
              
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(appDir, getDeployableFile().getFile().getName()),
            null, true);
    }

}
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

            File testRunnerDest = new File(coreDir, "TestRunner.hta");
            // custom user-extensions
            File userExt = this.configuration.getUserExtensions();
            if (userExt != null) {
                File selUserExt = new File(coreDir, "scripts/user-extensions.js");
                f.copyFile(userExt, selUserExt, null, true);
            }
            f.copyFile(selRunnerSrc, selRunnerDest);
            f.copyFile(testRunnerSrc, testRunnerDest);
            writeSessionExtensionJs(coreDir);
        } catch (IOException e) {
View Full Code Here

            File userExt = this.configuration.getUserExtensions();
            if (userExt != null) {
                File selUserExt = new File(coreDir, "scripts/user-extensions.js");
                f.copyFile(userExt, selUserExt, null, true);
            }
            f.copyFile(selRunnerSrc, selRunnerDest);
            f.copyFile(testRunnerSrc, testRunnerDest);
            writeSessionExtensionJs(coreDir);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

            if (userExt != null) {
                File selUserExt = new File(coreDir, "scripts/user-extensions.js");
                f.copyFile(userExt, selUserExt, null, true);
            }
            f.copyFile(selRunnerSrc, selRunnerDest);
            f.copyFile(testRunnerSrc, testRunnerDest);
            writeSessionExtensionJs(coreDir);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        }
       
        ResourceUtils.copyResource(getProject(),
            RESOURCE_PATH + theResourcePrefix + "/tomcat-users.xml",
            new File(confDir, "tomcat-users.xml"));
        fileUtils.copyFile(new File(getDir(), "conf/web.xml"),
            new File(confDir, "web.xml"));
       
        // Copy user-provided configuration files into the temporary container
        // directory
View Full Code Here

        copyConfFiles(confDir);
          
        // deploy the web-app by copying the WAR file into the webapps
        // directory
        File webappsDir = createDirectory(tmpDir, "webapps");
        fileUtils.copyFile(getDeployableFile().getFile(),
            new File(webappsDir, getDeployableFile().getFile().getName()),
            null, true);
    }

}
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

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.