FileDocCategorySizeDatePackage
SignedSelector.javaAPI DocApache Ant 1.702062Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.types.selectors

SignedSelector

public class SignedSelector extends org.apache.tools.ant.types.DataType implements FileSelector
Selector that chooses files based on whether they are signed or not.
since
1.7

Fields Summary
private org.apache.tools.ant.taskdefs.condition.IsSigned
isSigned
Constructors Summary
Methods Summary
public booleanisSelected(java.io.File basedir, java.lang.String filename, java.io.File file)
The heart of the matter. This is where the selector gets to decide on the inclusion of a file in a particular fileset.

param
basedir not used by this selector
param
filename not used by this selector
param
file path to file to be selected
return
whether the file should be selected or not

        if (file.isDirectory()) {
            return false; // Quick return: directories cannot be signed
        }
        isSigned.setProject(getProject());
        isSigned.setFile(file);
        return isSigned.eval();
    
public voidsetName(java.lang.String name)
The signature name to check jarfile for.

param
name signature to look for.


                      
        
        isSigned.setName(name);