Examples of Expand


Examples of org.apache.maven.util.Expand

                if ( exists )
                {
                    FileUtils.deleteDirectory( unzipDir );
                }

                Expand unzipper = new Expand();
                unzipper.setSrc( jarFile );
                unzipper.setDest( unzipDir );
                unzipper.execute();
            }
            catch ( IOException e )
            {
                throw new MavenException( "Unable to extract plugin: " + jarFile, e );
            }
View Full Code Here

Examples of org.apache.maven.util.Expand

                if ( exists )
                {
                    FileUtils.deleteDirectory( unzipDir );
                }

                Expand unzipper = new Expand();
                unzipper.setSrc( jarFile );
                unzipper.setDest( unzipDir );
                unzipper.execute();
            }
            catch ( IOException e )
            {
                throw new MavenException( "Unable to extract plugin: " + jarFile, e );
            }
View Full Code Here

Examples of org.apache.tomcat.task.Expand

    if( ! appDir.exists() ) {
        // no check if war file is "newer" than directory
        // To update you need to "remove" the context first!!!
        appDir.mkdirs();
        // Expand war file
        Expand expand=new Expand();
        expand.setSrc( home + "/webapps/" + name );
        expand.setDest( home + "/webapps/" + fname);
        try {
      expand.execute();
        } catch( IOException ex) {
      ex.printStackTrace();
      // do what ?
        }
    }
View Full Code Here

Examples of org.apache.tomcat.task.Expand

    if( ! appDir.exists() ) {
        // no check if war file is "newer" than directory
        // To update you need to "remove" the context first!!!
        appDir.mkdirs();
        // Expand war file
        Expand expand=new Expand();
        expand.setSrc( home + "/webapps/" + name );
        expand.setDest( home + "/webapps/" + fname);
        try {
      expand.execute();
        } catch( IOException ex) {
      ex.printStackTrace();
      // do what ?
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        PatternSet patternSet = new PatternSet();
        patternSet.setProject(project);
        patternSet.setIncludes("**/*");
        patternSet.setExcludes("**/*.class");
        for (int i = 0; i < paths.length; i++) {
          Expand unzip = new Expand();
          unzip.setProject(project);
          unzip.setTaskName(taskName);
          unzip.setDest(destDir);
          unzip.setSrc(new File(paths[i]));
          unzip.addPatternset(patternSet);
          unzip.execute();
        }
      }
    }
    if ((null != sourceRootCopyFilter) && (null != sourceRoots)) {
      String[] paths = sourceRoots.list();
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        if (!installMarker.exists()) {
            log.info("Installing assembly...");

            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        // delete the contents so that old files won't interfere with new files
        Util.deleteRecursive(destDir);

        try {
            Expand e = new Expand();
            e.setProject(new Project());
            e.setTaskType("unzip");
            e.setSrc(archive);
            e.setDest(destDir);
            e.execute();
        } catch (BuildException x) {
            throw new IOException2("Failed to expand " + archive,x);
        }

        try {
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        if (!installMarker.exists()) {
            log.info("Installing assembly...");

            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        if (!installMarker.exists()) {
            log.info("Installing assembly...");

            FileUtils.forceMkdir(geronimoHome);
           
            Expand unzip = (Expand)createTask("unzip");
            unzip.setSrc(assemblyArchive);
            unzip.setDest(installDirectory.getCanonicalFile());
            unzip.execute();

            // Make scripts executable, since Java unzip ignores perms
            Chmod chmod = (Chmod)createTask("chmod");
            chmod.setPerm("ugo+rx");
            chmod.setDir(geronimoHome);
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Expand

        try
        {
            err.clear();
            out.clear();

            Expand expand = new Expand();
            expand.setProject(project);
            expand.setSrc(new File(src));
            expand.setDest(new File(dest));
            expand.execute();

            if (err.toString().length() > 0)
            {
                return false;
            }
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.