org.apache.fop.tools.anttasks
Class Fop

org.apache.fop.tools.anttasks.Fop

public class Fop

Wrapper for Fop which allows it to be accessed from within an Ant task. Accepts the inputs:


Constructor Summary
Fop()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a set of fo files (nested fileset attribute).
 void execute()
          Starts execution of this task
 java.io.File getBasedir()
          Gets the base directory
 java.io.File getFofile()
          Gets the input file
 java.lang.String getFormat()
          Gets the output format (MIME type)
 boolean getLogFiles()
           
 int getMessageType()
          Returns the message type corresponding to Property.MSG_(INFO | VERBOSE | DEBUG) representing the current message level.
 java.io.File getOutdir()
          Gets the output directory
 java.io.File getOutfile()
          Gets the output file
 void setBasedir(java.io.File baseDir)
          Sets the base directory; currently ignored
 void setFofile(java.io.File foFile)
          Sets the input file
 void setFormat(java.lang.String format)
          Sets output format (MIME type)
 void setLogFiles(boolean aBoolean)
          Controls whether the filenames of the files that are processed are logged or not.
 void setMessagelevel(java.lang.String messageLevel)
          Sets the message level to be used while processing.
 void setOutdir(java.io.File outDir)
          Sets the output directory
 void setOutfile(java.io.File outFile)
          Sets the output file
 void setUserconfig(java.io.File userConfig)
          Sets the input file
 

Constructor Detail

Fop

public Fop()
Method Detail

setUserconfig

public void setUserconfig(java.io.File userConfig)
Sets the input file
Parameters:
File - to input from

setFofile

public void setFofile(java.io.File foFile)
Sets the input file
Parameters:
File - to input from

getFofile

public java.io.File getFofile()
Gets the input file

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of fo files (nested fileset attribute).

setOutfile

public void setOutfile(java.io.File outFile)
Sets the output file
Parameters:
File - to output to

getOutfile

public java.io.File getOutfile()
Gets the output file

setOutdir

public void setOutdir(java.io.File outDir)
Sets the output directory
Parameters:
Directory - to output to

getOutdir

public java.io.File getOutdir()
Gets the output directory

setFormat

public void setFormat(java.lang.String format)
Sets output format (MIME type)

getFormat

public java.lang.String getFormat()
Gets the output format (MIME type)

setMessagelevel

public void setMessagelevel(java.lang.String messageLevel)
Sets the message level to be used while processing.
Parameters:
String - (info | verbose | debug)

getMessageType

public int getMessageType()
Returns the message type corresponding to Property.MSG_(INFO | VERBOSE | DEBUG) representing the current message level.

setBasedir

public void setBasedir(java.io.File baseDir)
Sets the base directory; currently ignored
Parameters:
File - to use as a working directory

getBasedir

public java.io.File getBasedir()
Gets the base directory

setLogFiles

public void setLogFiles(boolean aBoolean)
Controls whether the filenames of the files that are processed are logged or not.

getLogFiles

public boolean getLogFiles()

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Starts execution of this task


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.