org.apache.fop.tools.anttasks
Class Fop

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.fop.tools.anttasks.Fop

public class Fop
extends org.apache.tools.ant.Task

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


Field Summary
 
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
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
 File getBasedir()
          Gets the base directory
 File getFofile()
          Gets the input file
 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.
 File getOutdir()
          Gets the output directory
 File getOutfile()
          Gets the output file
 void setBasedir(File baseDir)
          Sets the base directory; currently ignored
 void setFofile(File foFile)
          Sets the input file
 void setFormat(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(String messageLevel)
          Sets the message level to be used while processing.
 void setOutdir(File outDir)
          Sets the output directory
 void setOutfile(File outFile)
          Sets the output file
 void setUserconfig(File userConfig)
          Sets the input file
 
Methods inherited from class org.apache.tools.ant.Task
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, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fop

public Fop()
Method Detail

setUserconfig

public void setUserconfig(File userConfig)
Sets the input file


setFofile

public void setFofile(File foFile)
Sets the input file


getFofile

public 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(File outFile)
Sets the output file


getOutfile

public File getOutfile()
Gets the output file


setOutdir

public void setOutdir(File outDir)
Sets the output directory


getOutdir

public File getOutdir()
Gets the output directory


setFormat

public void setFormat(String format)
Sets output format (MIME type)


getFormat

public String getFormat()
Gets the output format (MIME type)


setMessagelevel

public void setMessagelevel(String messageLevel)
Sets the message level to be used while processing.


getMessageType

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


setBasedir

public void setBasedir(File baseDir)
Sets the base directory; currently ignored


getBasedir

public 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

Throws:
org.apache.tools.ant.BuildException


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