Package org.apache.tools.ant.types

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


        {
            // Clean up stuff previously put in the temporary directory
            Delete delete = (Delete) createAntTask("delete");
            FileSet fileSet = new FileSet();
            fileSet.setDir(tmpDir);
            fileSet.createInclude().setName("**/*");
            delete.addFileset(fileSet);
            delete.setIncludeEmptyDirs(true);
            delete.execute();
        }
        // make sure we're returning a directory
View Full Code Here


        // invoke the main class
        Java java = createJavaForShutDown();
        Path classpath = java.createClasspath();
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("*.jar");
        classpath.addFileset(fileSet);
        java.setClassname("com.evermind.client.orion.OrionConsoleAdmin");
        java.createArg().setValue("ormi://localhost:23791/");
        java.createArg().setValue("admin");
        java.createArg().setValue("password");
View Full Code Here

        // invoke the main class
        Java java = createJavaForStartUp();
        Path classpath = java.createClasspath();
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("*.jar");
        classpath.addFileset(fileSet);
        try
        {
            classpath.createPathElement().setLocation(getToolsJar());
        }
View Full Code Here

            classpath.createPathElement().setLocation(
                ResourceUtils.getResourceLocation("/"
                    + ResinRun.class.getName().replace('.', '/') + ".class"));
            FileSet fileSet = new FileSet();
            fileSet.setDir(this.dir);
            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(tmpDir, "resin.conf"));
View Full Code Here

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

                copyTask.setOverwrite( resource.isFiltering() );
                FileSet fileSet = new FileSet();
                fileSet.setDir( directory );
                if ( resource.getIncludes().isEmpty() )
                {
                    PatternSet.NameEntry entry = fileSet.createInclude();
                    entry.setName( "**/**" );
                }
                // add includes
                for ( Iterator incIter = resource.getIncludes().iterator(); incIter.hasNext(); )
                {
View Full Code Here

                }
                // add includes
                for ( Iterator incIter = resource.getIncludes().iterator(); incIter.hasNext(); )
                {
                    String include = (String) incIter.next();
                    PatternSet.NameEntry entry = fileSet.createInclude();
                    entry.setName( include );
                }
                // add excludes
                for ( Iterator incIter = resource.getExcludes().iterator(); incIter.hasNext(); )
                {
View Full Code Here

                ne.setName("**/*");
            } else {
              CacheManager cache = getCacheManager();
                for (Iterator iter = paths.iterator(); iter.hasNext();) {
                  Artifact a = (Artifact)iter.next();
                    NameEntry ne = fileset.createInclude();
                    ne.setName(cache.getArchivePathInCache(a, cache.getSavedArtifactOrigin(a)));
                }
            }
        } catch (Exception ex) {
            throw new BuildException("impossible to build ivy cache fileset: "+ex, ex);
View Full Code Here

        {
            // Clean up stuff previously put in the temporary directory
            Delete delete = (Delete) createAntTask("delete");
            FileSet fileSet = new FileSet();
            fileSet.setDir(tmpDir);
            fileSet.createInclude().setName("**/*");
            delete.addFileset(fileSet);
            delete.setIncludeEmptyDirs(true);
            delete.execute();
        }
        // make sure we're returning a directory
View Full Code Here

        // invoke the main class
        Java java = createJavaForShutDown();
        Path classpath = java.createClasspath();
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("*.jar");
        classpath.addFileset(fileSet);
        java.setClassname("com.evermind.client.orion.OrionConsoleAdmin");
        java.createArg().setValue("ormi://localhost:23791/");
        java.createArg().setValue("admin");
        java.createArg().setValue("password");
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.