I have never done it, but looking at the API of Copy, I would do it this way :
"Matt Koss" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > Let's say I use sth. like this : > > java.io.File srcDir = new java.io.File( archiveDirName ); > java.io.File destDir = new java.io.File( myPath ); > > FileSet fs = new FileSet(); > fs.setDir( srcDir ); > FilenameSelector fns = new FilenameSelector(); > fns.setName("**/*"); > fs.addFilename( fns ); > fs.setExcludes( FILE_ARCHIVE_NAME ); > > > Copy copyTask = (Copy) project.createTask( "copy" ); > copyTask.addFileset( fs ); > copyTask.setTodir( destDir ); > copyTask.setIncludeEmptyDirs( true ); CustomMapper myMapper = new CustomMapper(); myMapper.setProject(project); myMapper.setXYZ(some_custom_attribute); ... myMapper = copyTask.createMapper(); copyTask.execute(); > > > I would like to ad a definition of the mapper after FileNameSelector / FileSet > setup. > > > Cheers > > Matt > > -- > Matt Koss > > e-mail : [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
