Jump to content
Changes to the Jaspersoft community edition download ×

ant task doesn't find included xml files


2005 IR Help

Recommended Posts

By: Axel Hallez - ahallez

ant task doesn't find included xml files

2004-07-10 11:35

Hello all,

 

I'm having trouble configuring the jasperreports ant task. The problem is as follows.

 

I have some general xml files that contain common parts for all the reports I have (eg. page headers & footers). These files are included in the reports through like in this example:

 

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd" [

<!ENTITY pageheader SYSTEM "be/gymfed/PageHeader.xml">

<!ENTITY pagefooter SYSTEM "be/gymfed/PageFooter.xml">

]>

 

<jasperReport

name="ParticipantsReport"

columnCount="1"

printOrder="Vertical"

pageWidth="595"

pageHeight="842"

columnWidth="535"

columnSpacing="0"

leftMargin="30"

rightMargin="30"

topMargin="20"

bottomMargin="20"

isTitleNewPage="false"

isSummaryNewPage="false"

scriptletClass="be.scoreexpress.ui.report.RankingScriptlet" >

 

&pageheader;

 

--> report detail section

 

&pagefooter;

 

</jasperReport>

 

When I try to compile the reports with the ant task, I get an error saying that the included files could not be found.

This error is caused by the fact that the base dir used by the xml parser is not the same as the srcdir I use to compile the reports.

Is there some way to tweak this?

 

Thanks in advance,

Axel Hallez

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...