JPF 1.5.1

org.java.plugin.tools.ant
Class BaseJpfTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.java.plugin.tools.ant.BaseJpfTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer
Direct Known Subclasses:
CheckTask, DocTask, PackTask, PathTask, SingleFilePluginTask, SortTask, VersionUpdateTask

public abstract class BaseJpfTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Base class for some JPF related ant tasks.

Version:
$Id: BaseJpfTask.java,v 1.8 2007/03/03 17:16:26 ddimon Exp $

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
BaseJpfTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
           
protected  java.util.Set<java.lang.String> getBlackList()
           
protected  java.io.File[] getIncludedFiles()
           
protected  java.net.URL getManifestURL(java.io.File file)
           
protected  PathResolver getPathResolver()
           
protected  PluginRegistry getRegistry()
           
protected  boolean getVerbose()
           
protected  java.util.Set<java.lang.String> getWhiteList()
           
protected  void initRegistry(boolean usePathResolver)
           
protected  boolean isManifestAccepted(java.net.URL manifestUrl)
           
protected  java.util.Set<java.lang.String> loadList(java.io.File file)
           
 void setBaseDir(java.io.File aBaseDir)
           
 void setBlackList(java.io.File file)
           
 void setVerbose(boolean aVerbose)
           
 void setWhiteList(java.io.File file)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseJpfTask

public BaseJpfTask()
Method Detail

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Parameters:
set - the set of files to be registered as manifests

setBaseDir

public final void setBaseDir(java.io.File aBaseDir)
Parameters:
aBaseDir - base directory for manifest files

setVerbose

public final void setVerbose(boolean aVerbose)
Parameters:
aVerbose - true if detailed integrity check report required

setWhiteList

public final void setWhiteList(java.io.File file)
                        throws java.io.IOException
Parameters:
file - while list file
Throws:
java.io.IOException - if list reading failed

setBlackList

public final void setBlackList(java.io.File file)
                        throws java.io.IOException
Parameters:
file - black list file
Throws:
java.io.IOException - if list reading failed

loadList

protected java.util.Set<java.lang.String> loadList(java.io.File file)
                                            throws java.io.IOException
Throws:
java.io.IOException

getVerbose

protected final boolean getVerbose()

getPathResolver

protected final PathResolver getPathResolver()

getRegistry

protected final PluginRegistry getRegistry()

getWhiteList

protected java.util.Set<java.lang.String> getWhiteList()

getBlackList

protected java.util.Set<java.lang.String> getBlackList()

initRegistry

protected final void initRegistry(boolean usePathResolver)

getIncludedFiles

protected java.io.File[] getIncludedFiles()

getManifestURL

protected java.net.URL getManifestURL(java.io.File file)
                               throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

isManifestAccepted

protected boolean isManifestAccepted(java.net.URL manifestUrl)
                              throws ManifestProcessingException
Throws:
ManifestProcessingException

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.