Hi foppers

As promised, here's the new diff for the FOP Ant Task. I've changed the
format designators to MIME types (although the other output types are
supported, too) and added support for filesets. I didn't include support
for "-awt" and "-print", though. "-awt" IMHO makes not much sense in
this context, does it? As for "-print" I was simply too lazy. Maybe you
want to look at this yourself, Ralph. Sorry.

Some usage samples:

<fop fofile="${foDir}/normal.fo" outfile="${testDir}/normal.pdf"/>

This simply creates a PDF from a FO file.

<fop fofile="${foDir}/normal.fo" format="application/postscript" 
outfile="${testDir}/normal.ps"/>

This generates a file in a format defined by the "format" attribute.

Please notice, that I changed the "renderer" attribute (from the first
diff) to "format". Default is still "application/pdf". You can also use
short format types:

application/pdf = pdf
application/postscript = ps
application/vnd.mif = mif
application/vnd.hp-PCL = pcl
text/plain = txt
text/xml = at = xml

<fop format="application/postscript" outdir="${testDir}">
    <fileset dir="${foDir}">
       <include name="**/*.fo"/>
    </fileset>
</fop>

This converts all FO files in a directory to PostScript and puts the
newly generated files in the directory specified by the outdir attribute.

Some remarks:
- "docs/examples/runtests newAT" produces NPEs in the XMLRenderer.
- Output by the FOP task is currently not so beautiful.

Nice weekend to all!
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern
Fon +41 (0)41 317 2020 - Fax +41 (0)41 317 2029
Internet http://www.outline.ch

FOPTask.diff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to