Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.Copy.execute()


    File baseDir=new File(project.getBaseDir(),outPut);
    //���Ƶ�����Ŀ¼
    classSet.setDir(baseDir);
    classSet.setIncludes("**/*.*");
    copy.addFileset(classSet);
    copy.execute();
    return bundelName;
  }
  /***
   *
   * @param module
View Full Code Here


    Copy copy = new Copy();
    copy.setProject(prj);
    copy.setFile(new File(resource));
    File destDir = new File(destination).getParentFile();
    copy.setTodir(destDir);
    copy.execute();
  }

  /***
   * Ŀ¼����
   * @param resource
View Full Code Here

      FileSet fileSet = new FileSet();
      fileSet.setDir(new File(source[0]));
      fileSet.setIncludes(source[1]);
      copy.addFileset(fileSet);
    }
    copy.execute();
  }

  /***
   * ɾ���ļ�
   *
 
View Full Code Here

    } else {
        fileSet.setFile(file);
    }
    task.addFileset(fileSet);
      }
      task.execute();
  } catch (BuildException e) {
      throw new IOException(e);
  }
    }
View Full Code Here

            copy.setTodir(theConfDir);
            for (Iterator i = this.confFileSets.iterator(); i.hasNext();)
            {
                copy.addFileset((FileSet) i.next());
            }
            copy.execute();
        }
    }

}
View Full Code Here

                anonFs.setIncludes(m_includePattern);
            }
            anonFs.setDir(new File(dir));
            copy.addFileset(anonFs);
        }
        copy.execute();
    }

}
View Full Code Here

            copy.addFileset(anonFs);

        }

        copy.execute();

    }


View Full Code Here

            copy.setTodir(theConfDir);
            for (Iterator i = this.confFileSets.iterator(); i.hasNext();)
            {
                copy.addFileset((FileSet) i.next());
            }
            copy.execute();
        }
    }

}
View Full Code Here

        //CactusPlugin.log(jspRedirectorURL.getPath());
        File jspRedirector = new File(jspRedirectorURL.getPath());
        FileSet fileSet = new FileSet();
        fileSet.setFile(jspRedirector);
        copy.addFileset(fileSet);
        copy.execute();
    }

    /**
     * copies files from a directory to another directory
     * @param theSourceDir directory to copy files from
View Full Code Here

        copy.setProject(antProject);
        copy.setTodir(theTargetDir);
        FileSet fileSet = new FileSet();
        fileSet.setDir(theSourceDir);
        copy.addFileset(fileSet);
        copy.execute();
    }

    /**
     * @return the path name element of the web application directory
     */
 
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.