tecgraf.javautils.ant.taskdefs
Class TecSourceFileScanner
java.lang.Object
tecgraf.javautils.ant.taskdefs.TecSourceFileScanner
- All Implemented Interfaces:
- org.apache.tools.ant.types.ResourceFactory
public class TecSourceFileScanner
- extends Object
- implements org.apache.tools.ant.types.ResourceFactory
Essa classe foi criada com o único propósito de dar suporte à uma
implementação alternativa padrão da task : o comportamento original,
de restringir à compilação apenas às classes desatualizadas, é substituída
aqui; todos os arquivos-fonte do diretório de origem são compilados nesta
versão.
A presenta classe dá suporte à classe TecJavac (alteração da Javac).
Dois métodos, além do construtor, sofreram alteração: restrict e
restrictAsFiles.
- Version:
- 1.0 $ - @date: 2003/07/30 11:43:59 $
- Author:
- Leonardo Abreu de Barros $
|
Field Summary |
protected org.apache.tools.ant.Task |
task
|
|
Method Summary |
org.apache.tools.ant.types.Resource |
getResource(String name)
returns resource information for a file at destination |
String[] |
restrict(String[] files,
File srcDir,
File destDir,
org.apache.tools.ant.util.FileNameMapper mapper)
Esse e o próximo método foram alterados. |
File[] |
restrictAsFiles(String[] files,
File srcDir,
File destDir,
org.apache.tools.ant.util.FileNameMapper mapper)
Esse método também foi alterado, já que não há mais necessidade do mapper
ANTIGA IMPLEMENTAÇÃO:
Convinience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
task
protected org.apache.tools.ant.Task task
TecSourceFileScanner
public TecSourceFileScanner(org.apache.tools.ant.Task task)
- Construtor.
- Parameters:
task - The task we should log messages through
restrict
public String[] restrict(String[] files,
File srcDir,
File destDir,
org.apache.tools.ant.util.FileNameMapper mapper)
- Esse e o próximo método foram alterados. Ao invés de restringir a lista
de arquivos, ele retorna todos os arquivos-fonte.
ANTIGA IMPLEMENTAÇÃO:
Restrict the given set of files to those that are newer than
their corresponding target files.
- Parameters:
files - the original set of filessrcDir - all files are relative to this directorydestDir - target files live here. if null file names
returned by the mapper are assumed to be absolute.mapper - knows how to construct a target file names from
source file names.
- Returns:
- a lista com o nome dos arquivos
restrictAsFiles
public File[] restrictAsFiles(String[] files,
File srcDir,
File destDir,
org.apache.tools.ant.util.FileNameMapper mapper)
- Esse método também foi alterado, já que não há mais necessidade do mapper
ANTIGA IMPLEMENTAÇÃO:
Convinience layer on top of restrict that returns the source
files as File objects (containing absolute paths if srcDir is
absolute).
- Parameters:
files - the original set of filessrcDir - all files are relative to this directorydestDir - target files live here. if null file names
returned by the mapper are assumed to be absolute.mapper - knows how to construct a target file names from
source file names.
- Returns:
- o array com os descritores dos arquivos
getResource
public org.apache.tools.ant.types.Resource getResource(String name)
- returns resource information for a file at destination
- Specified by:
getResource in interface org.apache.tools.ant.types.ResourceFactory
- Parameters:
name - relative path of file at destination
- Returns:
- data concerning a file whose relative path to destDir is name
- Since:
- Ant 1.5.2
Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.