org.apache.tools.ant.taskdefs.optional.dotnet

Class DotnetBaseMatchingTask

public class DotnetBaseMatchingTask extends MatchingTask

refactoring of some stuff so that different things (like ILASM) can use shared code.
Field Summary
protected Vectorfilesets
filesets of file to compile
protected static booleanisWindows
Are we running on Windows?
protected FileoutputFile
output file.
protected FilesrcDir
source directory upon which the search pattern is applied
Method Summary
protected voidaddFilesAndExecute(NetCommand command, boolean ignoreTimestamps)
finish off the command by adding all dependent files, execute
protected voidaddFilesToCommand(Hashtable filesToBuild, NetCommand command)
add the list of files to a command
voidaddSrc(FileSet src)
add a new source directory to the compile
protected intbuildFileList(NetCommand command, Hashtable filesToBuild, long outputTimestamp)
create the list of files
FilegetDestFile()
get the destination file
protected longgetOutputFileTimestamp()
determine the timestamp of the output file
FilegetSrcDir()
Overridden because we need to be able to set the srcDir.
voidsetDestFile(File file)
Set the name of exe/library to create.
voidsetSrcDir(File srcDirName)
Set the source directory of the files to be compiled.

Field Detail

filesets

protected Vector filesets
filesets of file to compile

isWindows

protected static final boolean isWindows
Are we running on Windows?

Since: Ant 1.6.3

outputFile

protected File outputFile
output file. If not supplied this is derived from the source file

srcDir

protected File srcDir
source directory upon which the search pattern is applied

Method Detail

addFilesAndExecute

protected void addFilesAndExecute(NetCommand command, boolean ignoreTimestamps)
finish off the command by adding all dependent files, execute

Parameters: command the command to update. ignoreTimestamps not used.

addFilesToCommand

protected void addFilesToCommand(Hashtable filesToBuild, NetCommand command)
add the list of files to a command

Parameters: filesToBuild vector of files command the command to append to

addSrc

public void addSrc(FileSet src)
add a new source directory to the compile

Parameters: src a fileset.

buildFileList

protected int buildFileList(NetCommand command, Hashtable filesToBuild, long outputTimestamp)
create the list of files

Parameters: command the command to create the files for. filesToBuild vector to add files to outputTimestamp timestamp to compare against

Returns: number of files out of date

getDestFile

public File getDestFile()
get the destination file

Returns: the dest file or null for not assigned

getOutputFileTimestamp

protected long getOutputFileTimestamp()
determine the timestamp of the output file

Returns: a timestamp or 0 for no output file known/exists

getSrcDir

public File getSrcDir()
Overridden because we need to be able to set the srcDir.

Returns: the source directory.

setDestFile

public void setDestFile(File file)
Set the name of exe/library to create.

Parameters: file The new outputFile value

setSrcDir

public void setSrcDir(File srcDirName)
Set the source directory of the files to be compiled.

Parameters: srcDirName The new SrcDir value