Jump to content
Changes to the Jaspersoft community edition download ×

Templates in a jar


2005 IR Help

Recommended Posts

By: ryust - ryust

Templates in a jar

2005-11-30 19:43

I keep trying this with each new release, but still cannot get the report wizard to find templates that are in a jar. The latest 0.5.2 release doesn't seem to support it even though the 1.1 manual states if a template jar is in the classpath, the templates it contains will be made available to the wizard.

 

If anyone has a sample template jar, I would greatly appreciate a copy of it to see it's structure. The manual is confusing because it in a couple of places the name of the descriptor XML in the jar for the templates should be named 'template.xml' and in another reference it states it should be 'templates.xml'. Which one is correct?

 

This shouldn't be so difficult, but accessing templates from the classpath has never seemed to work.

 

 

 

 

By: Giulio Toffoli - gt78

RE: Templates in a jar

2005-12-06 09:47

 

The right name is template.xml.

Here is an example:

 

<?xml version="1.0" encoding="UTF-8"?>

<iReportTemplateSet>

<iReportTemplate name="Classic Template Resource" type="Columnar">

<XmlFile>/it/businesslogic/ireport/templates/classic.xml</XmlFile>

<IconFile>/it/businesslogic/ireport/templates/classic.gif</IconFile>

</iReportTemplate>

</iReportTemplateSet>

 

 

 

 

 

 

By: ryust - ryust

RE: Templates in a jar

2005-12-08 05:37

Thanks. That is exactly the format I have, but iReport will still NOT find them if they are in a jar in the classpath. Are you sure it works?

 

 

 

 

By: ryust - ryust

RE: Templates in a jar

2005-12-16 12:21

I'll try again...

 

I still cannot get iReport to find templates in a jar in the classpath. Has anyone been able to do this with the 0.5.2 release?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...