[GUMP] Build Failure - xml-fop

2002-07-27 Thread Sam Ruby


This email is autogenerated from the output from:
http://jakarta.apache.org/builds/gump/2002-07-27/xml-fop.html


Buildfile: build.xml
Caught exception (org.apache.tools.ant.BuildException) while expanding 
libs-run-classpath: /home/rubys/jakarta/xml-fop/build not found.

init-avail:

init:
 [echo] --- Fop 1.0dev [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 4 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 31 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/allprops.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/Constants.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/genconst.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/propmap.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/enumgen.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/encodings.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/CodePointMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/code-point-mapping.xsl
[style] Transforming into 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Courier.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBoldOblique.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Helvetica.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Helvetica.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/HelveticaBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaBold.java
[style] Processing 
/home/rubys/jakarta/xml-fop/src/codegen/HelveticaBoldOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaBoldOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/HelveticaOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesBold.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesBoldItalic.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesBoldItalic.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesItalic.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesItalic.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesRoman.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesRoman.java
[style] Processing 

cvs commit: xml-fop/src/org/apache/fop/fo/pagination PageSequence.java

2002-07-27 Thread pietsch

pietsch 2002/07/27 03:50:19

  Modified:src/org/apache/fop/fo/pagination Tag: fop-0_20_2-maintain
PageSequence.java
  Log:
  Check whether there is a flow in a page sequence.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.39.2.7  +7 -4  xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java
  
  Index: PageSequence.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java,v
  retrieving revision 1.39.2.6
  retrieving revision 1.39.2.7
  diff -u -r1.39.2.6 -r1.39.2.7
  --- PageSequence.java 24 Jul 2002 02:39:44 -  1.39.2.6
  +++ PageSequence.java 27 Jul 2002 10:50:18 -  1.39.2.7
  @@ -202,6 +202,9 @@
* Runs the formatting of this page sequence into the given area tree
*/
   public void format(AreaTree areaTree) throws FOPException {
  +if (flow == null) {
  +throw new FOPException(No flow in page-sequence);
  +}
   PageSequence previousPageSequence=this.root.getPageSequence();
   if( previousPageSequence!=null ) {
   if (previousPageSequence.forcePageCountType == ForcePageCount.AUTO) {
  @@ -310,11 +313,11 @@
* @return a Page layout object based on the page master selected from the 
params
*/
   private Page makePage(AreaTree areaTree,
  -  boolean isBlankPage,
  -  Page currentPage)
  +  boolean isBlankPage,
  +  Page currentPage)
 throws FOPException {
   if (this.pageSequenceMaster!=null) {
  -this.currentSimplePageMaster=this.pageSequenceMaster
  +this.currentSimplePageMaster = this.pageSequenceMaster
 .getNextSimplePageMaster(((this.currentPageNumber % 2)==1),
  isBlankPage);
   Region region = currentSimplePageMaster
  
  
  

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




Re: font state and associates

2002-07-27 Thread J.Pietschmann

Keiron Liddle wrote:
 Can we have a list of all font states so that it can be retrieved when
 needed for a particular layout of area?

This is exactly what I'm currently thinking about. This
allies to all property bundles. There are only so much
different font states really used in a specific document,
usually one or two for the normal text (normal and perhaps
italic), a few more for headlines, and for software docs
also one or two with Courier.
Nevertheless FOP creates half a new FontState object every
time one is needed.

I imagine the following:
- Classsify all properties in various bundles. There is
   already a bunch of them: FontState, TextState (should
   be TextDecoration) and some unused classes.
- In the constructor, get the property bundle object from
   the parent (if inheritable), or get the scratch object
   for this bundle, or create a new one.
- Go through the XML attribute list, and get a property value.
- Check whether the value is alredy in the bundle object. If
   not, and if it was inherited, clone the object. In either
   case, store the property value afterwards.
- If all properties from the XML attribute list relevant to
   the bundle are examined, go through the global table of
   already allocated objects of this property bundle. If an object
   with the same values is found, refer to this. If necessary,
   put back the scratch object for reuse.

Of course, this requires that property bundle objects are
immutable once filled from the XML attributes (and local
property refinement). There is one instance where a
BorderAndPadding is abused in Table.java, but I think this
could easily be solved otherwise.

I think this way memory usage could be significantly reduced.
I'm going to implement this in the maintenance branch after
I finissh the cleanup I'm currently doing.

What do you think?

J.Pietschmann


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




RE: AW: FO to RTF

2002-07-27 Thread Victor Mote

Peter B. West wrote:

- Start -
I tentatively suggested using XSLT to generate RTF a little while ago, but I
had no idea whether it was feasible.  The main question would seem to be: is
RTF a text-only format or a binary format?  Can anyone answer that one for
us?
- End -

I am no expert on RTF, but by opening a few, it appears to be a text-only
format. However, I did see some examples of graphics being embedded in the
files using 7-bit characters. Handling this would certainly seem to be
outside the scope of XSLT.

Victor Mote (mailto:[EMAIL PROTECTED])
Enterprise Outfitters (www.outfitr.com)
2025 Eddington Way
Colorado Springs, Colorado 80916
Voice 719-622-0650, Fax 720-293-0044


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




cvs commit: xml-fop/src/org/apache/fop/fo/flow Block.java Table.java

2002-07-27 Thread pietsch

pietsch 2002/07/27 13:08:29

  Modified:src/org/apache/fop/fo Tag: fop-0_20_2-maintain FONode.java
   src/org/apache/fop/fo/flow Tag: fop-0_20_2-maintain
Block.java Table.java
  Log:
  Removed some unused code
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.21.2.4  +1 -12 xml-fop/src/org/apache/fop/fo/FONode.java
  
  Index: FONode.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FONode.java,v
  retrieving revision 1.21.2.3
  retrieving revision 1.21.2.4
  diff -u -r1.21.2.3 -r1.21.2.4
  --- FONode.java   19 Jul 2002 20:41:00 -  1.21.2.3
  +++ FONode.java   27 Jul 2002 20:08:28 -  1.21.2.4
  @@ -61,9 +61,6 @@
   protected int forcedStartOffset = 0;
   protected int forcedWidth = 0;
   
  -protected int widows = 0;
  -protected int orphans = 0;
  -
   protected LinkSet linkSet;
   
   // count of areas generated-by/returned-by
  @@ -117,14 +114,6 @@
   for (int i = 0; i  numChildren; i++) {
   ((FONode)children.elementAt(i)).resetMarker();
   }
  -}
  -
  -public void setWidows(int wid) {
  -widows = wid;
  -}
  -
  -public void setOrphans(int orph) {
  -orphans = orph;
   }
   
   public void removeAreas() {
  
  
  
  No   revision
  
  
  No   revision
  
  
  1.41.2.6  +1 -68 xml-fop/src/org/apache/fop/fo/flow/Block.java
  
  Index: Block.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Block.java,v
  retrieving revision 1.41.2.5
  retrieving revision 1.41.2.6
  diff -u -r1.41.2.5 -r1.41.2.6
  --- Block.java24 Jul 2002 01:06:22 -  1.41.2.5
  +++ Block.java27 Jul 2002 20:08:28 -  1.41.2.6
  @@ -53,8 +53,6 @@
   int spaceAfter;
   int textIndent;
   int keepWithNext;
  -int blockWidows;
  -int blockOrphans;
   
   int areaHeight = 0;
   int contentWidth = 0;
  @@ -111,34 +109,6 @@
   // Common Relative Position Properties
   RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
   
  -// this.properties.get(break-after);
  -// this.properties.get(break-before);
  -// this.properties.get(color);
  -// this.properties.get(text-depth);
  -// this.properties.get(text-altitude);
  -// this.properties.get(hyphenation-keep);
  -// this.properties.get(hyphenation-ladder-count);
  -// this.properties.get(id);
  -// this.properties.get(keep-together);
  -// this.properties.get(keep-with-next);
  -// this.properties.get(keep-with-previous);
  -// this.properties.get(last-line-end-indent);
  -// this.properties.get(linefeed-treatment);
  -// this.properties.get(line-height);
  -// this.properties.get(line-height-shift-adjustment);
  -// this.properties.get(line-stacking-strategy);
  -// this.properties.get(orphans);
  -// this.properties.get(white-space-treatment);
  -// this.properties.get(span);
  -// this.properties.get(text-align);
  -// this.properties.get(text-align-last);
  -// this.properties.get(text-indent);
  -// this.properties.get(visibility);
  -// this.properties.get(white-space-collapse);
  -// this.properties.get(widows);
  -// this.properties.get(wrap-option);
  -// this.properties.get(z-index);
  -
   this.align = this.properties.get(text-align).getEnum();
   this.alignLast = this.properties.get(text-align-last).getEnum();
   this.breakAfter = this.properties.get(break-after).getEnum();
  @@ -157,13 +127,6 @@
   this.keepWithNext =
   this.properties.get(keep-with-next).getEnum();
   
  -this.blockWidows =
  -this.properties.get(widows).getNumber().intValue();
  -this.blockOrphans =
  -this.properties.get(orphans).getNumber().intValue();
  -
  -
  -
   this.id = this.properties.get(id).getString();
   
   if (area instanceof BlockArea) {
  @@ -182,36 +145,6 @@
   return new Status(breakBeforeStatus);
   }
   
  -int numChildren = this.children.size();
  -for (int i = 0; i  numChildren; i++) {
  -FONode fo = (FONode)children.elementAt(i);
  -if (fo instanceof FOText) {
  -if (((FOText)fo).willCreateArea()) {
  -fo.setWidows(blockWidows);
  -break;
  -} 

Re: avalon-framework lib in distribution

2002-07-27 Thread Michael Gratton


Hi Jens,

I built avalon-framework-cvs-20020315.jar from the Framework codebase in 
CVS (pulled on the date of the jar file) because at the time, the 
current release was too out of date. Unfortunately, I think there still 
hasn't been another release yet.

Jens Kühnberger wrote:
 java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/ConsoleLogger
 [snip]
 when I'm using the avalon-framwork-4.1.2.jar.

You'll get the NoClassDefFoundError when using avalon-framwork-4.1.2.jar 
because it doesn't contain the afore-mentioned up-to-date code.

 The problem with the 
 avalon-framework-cvs-20020315.jar that comes with the 
 fop-0.20.4-bin.tar.gz is, that it doesn't have the 
 org.apache.avalon.framework.logger.Log4JLogger class.

The Log4JLogger probably wasn't built becuase Log4J would not have been 
found when I was compiling the Framework codebase.

The solution would be to pull the Framework source code, make sure Log4J 
is on your CLASSPATH, and build it. Use the resulting jar instead of 
both avalon-framework-cvs-20020315.jar and avalon-framwork-4.1.2.jar and 
you should be fine.

HTH,
/mike

-- 
Michael Gratton [EMAIL PROTECTED]
Recall Design http://www.recalldesign.com/
s: 53 Gilbert Street Adelaide SA 5000 Australia
t: +61 8 8217 0500 f: +61 8 8217 0555



smime.p7s
Description: S/MIME Cryptographic Signature