RE: Build FOP

2005-03-22 Thread Andreas L. Delmelle
> -Original Message-
> From: Gang Li [mailto:[EMAIL PROTECTED]
> 
> Well, I just started on rebuilding FOP source code. Nothing has been
> done with fonts yet. Here is what I am going to do.

Ah, ok. (Phew! For a moment, things seemed needlessly complicated)

The build problem could be related to this FAQ:
http://ant.apache.org/faq.html#delegating-classloader



HTH!

Greetz,

Andreas

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



RE: Build FOP

2005-03-22 Thread Gang Li

Well, I just started on rebuilding FOP source code. Nothing has been
done with fonts yet. Here is what I am going to do.

1. Get the source code compiled.
2. Create fonts XML files for Bookman Old Style.
3. Modify the userconfig.xml and rebuild FOP to include fonts.

In my case, I am running FOP as a Servlet so I think I would use Manoj's
approach to refer to the font TTF file with
"http://localhost:8080/fop/fonts/msgothic.TTF"; so that I am not gonna
mess with package fonts file with FOP.jar but instead package it along
with my FOP.war which will be deployed on Tomcat.

Gang

-Original Message-
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 4:33 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Build FOP

> -Original Message-
> From: Gang Li [mailto:[EMAIL PROTECTED]
>

Hi,

> I thought it was an ANT problem. I am using ant 1.6.2 but the ant 
> coming with source code and binary distribution is ant1.5.1. I didn't 
> modify any of the build files (build.bat and build.xml) though I 
> checked and made sure the files are under the right folder.

Just making sure: so you *are* using build.bat, and not your own version
of Ant?

In that case, well...
How exactly are you trying to add support for the 'Bookman Old Style'
font?
It almosts seems like you want to have it compiled in in some way, and
you're trying to use the Base14 fonts as an example --correct?

Greetz,

Andreas


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


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



RE: Build FOP

2005-03-22 Thread Andreas L. Delmelle
> -Original Message-
> From: Gang Li [mailto:[EMAIL PROTECTED]
>

Hi,

> I thought it was an ANT problem. I am using ant 1.6.2 but the ant coming
> with source code and binary distribution is ant1.5.1. I didn't modify
> any of the build files (build.bat and build.xml) though I checked and
> made sure the files are under the right folder.

Just making sure: so you *are* using build.bat, and not your own version of
Ant?

In that case, well...
How exactly are you trying to add support for the 'Bookman Old Style' font?
It almosts seems like you want to have it compiled in in some way, and
you're trying to use the Base14 fonts as an example --correct?

Greetz,

Andreas


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



RE: Build FOP

2005-03-22 Thread Gang Li

If this doesn't work. Can we somehow use the BaseDir to point it to the
absolute path to the TTF file packaged with FOP?





Is this possible?

Gang
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 1:49 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Build FOP

[EMAIL PROTECTED] wrote:
> I have used the http protocol to access the font file..

Are you sure? The "metrics-file" attribute may be an URL:
> 
> http://localhost:7011/web/msgothic.xml";

but the value of "embed-file" is passed to an java.io.File constructor.
Which JVM version are you running?

J.Pietschmann

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


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



RE: Build FOP

2005-03-22 Thread Gang Li


I thought it was an ANT problem. I am using ant 1.6.2 but the ant coming
with source code and binary distribution is ant1.5.1. I didn't modify
any of the build files (build.bat and build.xml) though I checked and
made sure the files are under the right folder.

Thanks,
Gang

-Original Message-
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 1:44 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Build FOP

> -Original Message-
> From: Gang Li [mailto:[EMAIL PROTECTED]
>

Hi,

> Dumb question asked again and again.

Reminds me of a saying:
"There are no dumb questions, there are only dumb answers."
Sure, there *are* silly questions, but yours does not strike me as
'silly'.

Anyway...

> But I seem to have problems rebuilding 0.20.5 source code.
> Following is the error message I got.
...
> BUILD FAILED
> file:C:/AppDown/fop-0.20.5/build.xml:438:
> java.lang.ClassNotFoundException:
> org.apache.tools.ant.taskdefs.optional.TraXLiaison

It definitely seems to be a (version-)problem with Ant.
Which version of Ant are you using to perform the build? (A bit of
browsing leads me to conclude that for older versions --pre 1.5-- there
was no 'TraXLiaison' taskdef.)

HTH!

Greetz,

Andreas


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


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



RE: Build FOP

2005-03-22 Thread Andreas L. Delmelle
> -Original Message-
> From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]

> > java.lang.ClassNotFoundException:
> > org.apache.tools.ant.taskdefs.optional.TraXLiaison
> 
> (A bit of browsing leads me to conclude that for older 
> versions --pre 1.5-- there was no 'TraXLiaison' taskdef.)

Correction: there was, since 1.3.

AD

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



RE: Build FOP

2005-03-22 Thread Andreas L. Delmelle
> -Original Message-
> From: Gang Li [mailto:[EMAIL PROTECTED]
>

Hi,

> Dumb question asked again and again.

Reminds me of a saying:
"There are no dumb questions, there are only dumb answers."
Sure, there *are* silly questions, but yours does not strike me as 'silly'.

Anyway...

> But I seem to have problems rebuilding 0.20.5 source code.
> Following is the error message I got.
...
> BUILD FAILED
> file:C:/AppDown/fop-0.20.5/build.xml:438:
> java.lang.ClassNotFoundException:
> org.apache.tools.ant.taskdefs.optional.TraXLiaison

It definitely seems to be a (version-)problem with Ant.
Which version of Ant are you using to perform the build? (A bit of browsing
leads me to conclude that for older versions --pre 1.5-- there was no
'TraXLiaison' taskdef.)

HTH!

Greetz,

Andreas


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



Re: Build FOP

2005-03-22 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I have used the http protocol to access the font file..
Are you sure? The "metrics-file" attribute may be an URL:
http://localhost:7011/web/msgothic.xml";
but the value of "embed-file" is passed to an java.io.File constructor.
Which JVM version are you running?
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Build FOP

2005-03-22 Thread Gang Li
Manoj,

Thanks a lot. This is definitely a good way to go. But I am wondering
whether we can actually package the TTF files along with the FOP and
refer to the local file? Any thoughts?

Gang

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 11:28 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Build FOP





Gang

I have used the http protocol to access the font file..

http://localhost:7011/web/msgothic.xml";
embed-file="http://localhost:7011/web/msgothic.TTF";
kerning="yes">


   

Instead of "localhost" you can use the servername where the fonts are
located..

Thanks
Manoj




 

  "Gang Li"

  <[EMAIL PROTECTED]To:


  onebs.com>   cc:

               Subject:  RE: Build FOP

  03/22/2005 08:59

  AM

  Please respond to

  fop-users

 

 







Also, it looks like the userconfig.xml is pointing to a locale copy of
font file. Can I make it portable? I am actually gonna build a WAR file
of FOP to deploy it on Tomcat server. How can I avoid the hard-coded
font file problem?

Thanks for your answer,
Gang

-Original Message-
From: Gang Li
Sent: Tuesday, March 22, 2005 10:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Build FOP


Dumb question asked again and again. But I seem to have problems
rebuilding 0.20.5 source code. Following is the error message I got. I
am trying to add "Bookman Old Style" font to support my PDF.

BUILD FAILED
file:C:/AppDown/fop-0.20.5/build.xml:438:
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison

Any help is appreciated.

Thanks,
Gang

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


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







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


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



RE: Build FOP

2005-03-22 Thread Manoj_Nair




Gang

I have used the http protocol to access the font file..

http://localhost:7011/web/msgothic.xml";
embed-file="http://localhost:7011/web/msgothic.TTF";
kerning="yes">


   

Instead of "localhost" you can use the servername where the fonts are
located..

Thanks
Manoj





   
  "Gang Li" 
   
  <[EMAIL PROTECTED]To:   

  onebs.com>   cc:  
   
               Subject:  RE: Build FOP  
   
  03/22/2005 08:59  
   
  AM
   
  Please respond to 
   
  fop-users 
   

   

   






Also, it looks like the userconfig.xml is pointing to a locale copy of
font file. Can I make it portable? I am actually gonna build a WAR file
of FOP to deploy it on Tomcat server. How can I avoid the hard-coded
font file problem?

Thanks for your answer,
Gang

-Original Message-
From: Gang Li
Sent: Tuesday, March 22, 2005 10:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Build FOP


Dumb question asked again and again. But I seem to have problems
rebuilding 0.20.5 source code. Following is the error message I got. I
am trying to add "Bookman Old Style" font to support my PDF.

BUILD FAILED
file:C:/AppDown/fop-0.20.5/build.xml:438:
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison

Any help is appreciated.

Thanks,
Gang

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


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







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



RE: Build FOP

2005-03-22 Thread Gang Li
 

Also, it looks like the userconfig.xml is pointing to a locale copy of
font file. Can I make it portable? I am actually gonna build a WAR file
of FOP to deploy it on Tomcat server. How can I avoid the hard-coded
font file problem? 

Thanks for your answer,
Gang

-Original Message-
From: Gang Li 
Sent: Tuesday, March 22, 2005 10:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Build FOP


Dumb question asked again and again. But I seem to have problems
rebuilding 0.20.5 source code. Following is the error message I got. I
am trying to add "Bookman Old Style" font to support my PDF.

BUILD FAILED
file:C:/AppDown/fop-0.20.5/build.xml:438:
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison

Any help is appreciated.

Thanks,
Gang

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


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