RE: ant task

2006-09-01 Thread Rick Roen
It must have something to do with a file that is not found since it only
happens in the one path to FOP.  This path has only the files I need for my
batch file to run and is missing several jar files that the other more
complete path has.

If I get some extra time I will try to add jar files one by one to the
folder and see when it starts working.

Thanks,

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006 5:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: ant task

That's weird. Looking at the code, this NullPointerException should not
happen. There are guards against it. Or maybe I missed something. Anyway,
I can't reproduce it. Shrug.

On 31.08.2006 23:04:33 Rick Roen wrote:



Jeremias Maerki




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



Re: ant task

2006-09-01 Thread Jeremias Maerki
That's weird. Looking at the code, this NullPointerException should not
happen. There are guards against it. Or maybe I missed something. Anyway,
I can't reproduce it. Shrug.

On 31.08.2006 23:04:33 Rick Roen wrote:
> I have two different paths to the FOP trunk jar files.  When I change to one
> it runs correctly.  Here is the one that does not work.  
> 
> There are three files that Ant drops because they are not found, but this is
> the same with the other path as well.
> 
> I can't see where the problem is with this output?
> 
> Here is the command line output and the detail follows:





Jeremias Maerki


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



Re: ant task

2006-08-31 Thread Jeremias Maerki
It should be much faster if you process more than one file in one batch
compared to multiple command-line calls since the Java warm-up takes
considerable time. Of course, if we included the XSL transformation in
the FOP task it could be even faster. That should be looked into.

What's weird is that you got a NullPointerException because of a mistake
in a path name. I think we should figure that out. What did the stack
trace look like? Was it in Ant or in FOP?

On 31.08.2006 22:04:31 Rick Roen wrote:
> Thanks Jeremias,
> 
> I figured it out once I had the -d switch.  I had a mistake in the path on a
> few of the jar files so Ant could not find them.
> 
> I was testing this to see if it was faster than the batch file I have now.
> It doesn't seem too different since it is a two step operation now of doing
> the XSLT transformation from the XML file then Ant to finally get to a PDF.
> 
> Should this be much faster?
> 
> Rick
> 
> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 31, 2006 11:46 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: ant task
> 
> Hmm, can you call ant with the "-d" argument so we get the full stack
> trace? "26" refers to the line number in build.xml.
> 
> I've just rechecked the Ant trask from FOP Trunk and it works for me.



Jeremias Maerki


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



RE: ant task

2006-08-31 Thread Rick Roen
Thanks Jeremias,

I figured it out once I had the -d switch.  I had a mistake in the path on a
few of the jar files so Ant could not find them.

I was testing this to see if it was faster than the batch file I have now.
It doesn't seem too different since it is a two step operation now of doing
the XSLT transformation from the XML file then Ant to finally get to a PDF.

Should this be much faster?

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 31, 2006 11:46 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: ant task

Hmm, can you call ant with the "-d" argument so we get the full stack
trace? "26" refers to the line number in build.xml.

I've just rechecked the Ant trask from FOP Trunk and it works for me.




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



Re: ant task

2006-08-31 Thread Jeremias Maerki
Hmm, can you call ant with the "-d" argument so we get the full stack
trace? "26" refers to the line number in build.xml.

I've just rechecked the Ant trask from FOP Trunk and it works for me.

On 31.08.2006 20:09:46 Rick Roen wrote:
> I'm trying to create an ant task to convert an fo file to pdf.
>  
> I can call the same fo file from the fop batch file and convert it
> successfully to a pdf.
>  
> I am using fop trunk.
>  
> When I call this via ant I get "C:\PROGRA~1\Ant\build.xml:26:
> java.lang.NullPointerException"
>  
> I'm not sure if the "26" in the exception refers to the offending line
> number in the build.xml, however this is the  tag.  As far as I can see
> everything is ok in this line.
>  
> Can anyone see what is the problem or tell me how to get more information
> from Ant?
>  
> Regards,
>  
> Rick
>  
> Here is my build.xml:
>  
> 
> 
>  value="c:\delphi~1\lvspro~1\seedpa~1\fop"/>
>  classname="org.apache.fop.tools.anttasks.Fop">
> 
>  location="${fop.dir}\build\fop.jar"/>
>  location="${fop.dir}\build\fop-sandbox.jar"/>
>  location="${fop.dir}\lib\fop-hyph.jar"/>
>  location="${fop.dir}\lib\xml-apis-1.3.02.jar"/>
>  location="${fop.dir}\lib\xercesImpl-2.7.1.jar"/>
>  location="${fop.dir}\lib\xalan-2.7.0.jar"/>
>  location="${fop.dir}\lib\saxon8.jar"/>
>  location="${fop.dir}\lib\saxon8-dom.jar"/>
>  location="${fop.dir}\lib\batik-all-1.6.jar"/>
>  location="${fop.dir}\lib\xmlgraphics-commons-1.0.jar"/>
>  location="${fop.dir}\lib\avalon-framework-4.2.0.jar"/>
>  location="${fop.dir}\lib\commons-io-1.1.jar"/>
>  location="${fop.dir}\lib\commons-logging-1.0.4.jar"/>
>  location="${fop.dir}\lib\jimi-1.0.jar"/>
>  location="${fop.dir}\lib\jai_core.jar"/>
>  location="${fop.dir}\lib\jai_codec.jar"/>
>  location="${fop.dir}\lib\barcode4j-fop-ext-trunk-complete.jar"/>
> 
> 
> 
>  fofile="c:\temp\_Invoice.fo" outfile="c:\temp\_Invoice.pdf"
> messagelevel="verbose"/>
> 
> 



Jeremias Maerki


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