Package org.apache.tools.ant.types

Examples of org.apache.tools.ant.types.FileSet.createInclude()


                            FileList.FileName sourcesFile = new FileList.FileName();
                            sourcesFile.setName( sourcesFilename );

                            sourcesFileList.addConfiguredFile( sourcesFile );

                            sourcesFileSet.createInclude().setName( sourcesFilename );
                        }
                        catch ( ArtifactResolutionException e )
                        {
                            throw new BuildException( "Unable to resolve artifact: " + e.getMessage(), e );
                        }
View Full Code Here


            classpath.createPathElement().setLocation(
                ResourceUtils.getResourceLocation("/"
                + ResinRun.class.getName().replace('.', '/') + ".class"));
            FileSet fileSet = new FileSet();
            fileSet.setDir(getDir());
            fileSet.createInclude().setName("lib/*.jar");
            classpath.addFileset(fileSet);
            java.setClassname(ResinRun.class.getName());
            java.createArg().setValue("-start");
            java.createArg().setValue("-conf");
            java.createArg().setFile(new File(installDir, "resin.conf"));
View Full Code Here

        classpath.createPathElement().setLocation(
            ResourceUtils.getResourceLocation("/"
                + ResinRun.class.getName().replace('.', '/') + ".class"));
        FileSet fileSet = new FileSet();
        fileSet.setDir(getDir());
        fileSet.createInclude().setName("lib/*.jar");
        classpath.addFileset(fileSet);
        java.setClassname(ResinRun.class.getName());
        java.createArg().setValue("-stop");
        java.execute();
    }
View Full Code Here

            }
            if (rc instanceof FileSet) {
                FileSet fs = (FileSet) rc;
                if (!fs.hasPatterns() && !fs.hasSelectors()) {
                    FileSet fs2 = (FileSet) fs.clone();
                    fs2.createInclude().setName("**/*.java");
                    if (includeNoSourcePackages) {
                        fs2.createInclude().setName("**/package.html");
                    }
                    rc = fs2;
                }
View Full Code Here

                FileSet fs = (FileSet) rc;
                if (!fs.hasPatterns() && !fs.hasSelectors()) {
                    FileSet fs2 = (FileSet) fs.clone();
                    fs2.createInclude().setName("**/*.java");
                    if (includeNoSourcePackages) {
                        fs2.createInclude().setName("**/package.html");
                    }
                    rc = fs2;
                }
            }
            for (Resource r : rc) {
View Full Code Here

        Enumeration e = fileSets.elements();
        while (e.hasMoreElements()) {
            FileSet fs = (FileSet) e.nextElement();
            if (!fs.hasPatterns() && !fs.hasSelectors()) {
                fs = (FileSet) fs.clone();
                fs.createInclude().setName("**/*.java");
                if (includeNoSourcePackages) {
                    fs.createInclude().setName("**/package.html");
                }
            }
            File baseDir = fs.getDir(getProject());
View Full Code Here

            FileSet fs = (FileSet) e.nextElement();
            if (!fs.hasPatterns() && !fs.hasSelectors()) {
                fs = (FileSet) fs.clone();
                fs.createInclude().setName("**/*.java");
                if (includeNoSourcePackages) {
                    fs.createInclude().setName("**/package.html");
                }
            }
            File baseDir = fs.getDir(getProject());
            DirectoryScanner ds = fs.getDirectoryScanner(getProject());
            String[] files = ds.getIncludedFiles();
View Full Code Here

            }
            if (rc instanceof FileSet) {
                FileSet fs = (FileSet) rc;
                if (!fs.hasPatterns() && !fs.hasSelectors()) {
                    fs = (FileSet) fs.clone();
                    fs.createInclude().setName("**/*.java");
                    if (includeNoSourcePackages) {
                        fs.createInclude().setName("**/package.html");
                    }
                }
            }
View Full Code Here

                FileSet fs = (FileSet) rc;
                if (!fs.hasPatterns() && !fs.hasSelectors()) {
                    fs = (FileSet) fs.clone();
                    fs.createInclude().setName("**/*.java");
                    if (includeNoSourcePackages) {
                        fs.createInclude().setName("**/package.html");
                    }
                }
            }
            Iterator iter = rc.iterator();
            while (iter.hasNext()) {
View Full Code Here

    target.setName("junitreport");
    project.addTarget(target);

    FileSet fs = new FileSet();
    fs.setDir(new File("../"+CutlassConfig.XML_TEST_RESULTS_DIR));
    fs.createInclude().setName("TEST-*.xml");
    XMLResultAggregator aggregator = new XMLResultAggregator();
    aggregator.setProject(project);
    aggregator.addFileSet(fs);
    aggregator.setTodir(new File("../"+CutlassConfig.XML_TEST_RESULTS_DIR));
   
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.