Jump to content
Changes to the Jaspersoft community edition download ×

IReport 0.4.0 & WebStart & Plugins


Recommended Posts

By: C-Box - c-box

IReport 0.4.0 & WebStart & Plugins

2004-10-22 06:31

Hi Guilio,

 

I'm back from holiday and I've just a question again. :-)

 

We want to start IReport with WebStart.... that we got to run... problem now is... that we can't use my new plugin I wrote for IReport, because there isn't any directory structure with webstart.

 

When I start IReport from a directory where a PlugIn-Directory with my XML-File within exists, then it works very well, but we don't have all access to that directory and want to use WebStart instead.

 

So my question to you is, if you could read the pluginsettings (class, name, icon) via startparameter when starting the mainframe so that we could put the plugin for example in a jar. Or perhaps the XML-File that contains the pluginsettings could be given via parameter to iReport.

 

count on you + hoping for your ideas + greetings from sunny Germany

C-Box

 

 

By: Giulio Toffoli - gt78

RE: IReport 0.4.0 & WebStart & Plugins

2004-10-27 02:07

Perfect.

 

C-Box, can you write some guidelines about how to start iReport using JWS? I want add a chapter in the iReport manual about it.

 

Thanks.

 

Giulio

 

 

By: C-Box - c-box

RE: IReport 0.4.0 & WebStart & Plugins

2004-11-04 07:32

Well,

 

at the moment it's not the best solution.... because the plugin-xml-file MUST be located in the plugin-directory of iReports current directory.... that's why we use a trick... we packed the iReport-directory with all needed libs and plugins into a zip and that zip into the webstartarchive... then we build a loader that just unzippes the iReport in the lokal user temp-directory and start the mainframe of iReport that works so far and is necessarry because of the (yet) "missing plugin-via-parameter-architecture".

But if you will implement that feature we discussed above, then you get a manual how we do it (and is a cleaner solution than that we did now). :-)

 

greetings from Germany

C-Box

 

 

By: Giulio Toffoli - gt78

RE: IReport 0.4.0 & WebStart & Plugins

2004-10-26 02:17

 

This is a problem. We must remove the file system dependency.

 

An idea is add a java system property (or a command line option) to list all plugin descriptors to load (plus all plugin descriptors present in plugin directory if accessible).

 

A property (or command line option) like this:

ireport.plugins = /it/businesslogic/ireport/pluginA.xml,/com/you/company/pluginB.xml

 

What do you think?

Giulio

 

 

By: C-Box - c-box

RE: IReport 0.4.0 & WebStart & Plugins

2004-10-26 22:58

Yes, that would be fine and much more flexible. I guess it's not too much work and the existing plugin-architecture still keep working with filesystem.

 

Good work with you... keep going on.

 

greetings from rainy Germany

C-Box

 

BTW: thanks for the "AlignToolbar" ... it's just great and almost 100% like I imagined. :-)

 

 

By: Kees Kuip - keeskuip

RE: IReport 0.4.0 & WebStart & Plugins

2004-11-13 05:57

 

Hi Giulio,

 

Here's another idea:

- The plugin xml should always have the same name!

Let's call it : "ireport/plugin.xml"

- This file should be included in the jar file which contains

the implementation of the plugin.

- Multiple jar-files can now include the file "ireport/plugin.xml"

(ofcourse with a different content)

- You can read all plugin-files from the classpath with the

method :

object.getClassLoader().getResources("ireport/plugin.xml")

This will return an Enumeration of all resources with that

name on the classpath.

- Now all you have to do to include your own plugin is to

put your jar-file on the classpath. You don't have any

other configurations.

 

Kees Kuip.

 

 

 

 

By: C-Box - c-box

RE: IReport 0.4.0 & WebStart & Plugins

2004-11-15 01:31

Sounds great and is much simpler than going the way via parameter.

 

What do you think Guilio, are there any 10 minutes left to include the Kees's way into 0.4.1?

 

have a nice day

C-Box

 

 

By: Giulio Toffoli - gt78

RE: IReport 0.4.0 & WebStart & Plugins

2004-11-15 08:24

 

Kees you are the best!

 

Cool cool cool

 

Giulio

 

 

By: C-Box - c-box

RE: IReport 0.4.0 & WebStart & Plugins

2005-01-26 23:08

HI Giulio,

 

I just read that you'll publish 0.4.1 in the next 2 to 3 days. That's great, I'm looking forward to this.

 

I looked at the current version of mainframe.java... can you integrate the plugin loading technique that keeskuip wrote down in this thread to load additional plugins via Webstart also?

 

Would be great.

 

greetings from a very cold Germany

C-Box

 

 

By: Giulio Toffoli - gt78

RE: IReport 0.4.0 & WebStart & Plugins

2005-01-28 01:31

implemented in 0.4.1 :-)

 

 

Tested using webstart.

 

Giulio

 

 

By: C-Box - c-box

RE: IReport 0.4.0 & WebStart & Plugins

2005-01-28 01:56

Thanks a lot! Great work with you!

 

I'll download and test it right now! :-)

 

Have a nice weekend!

Greetings from still very cold and winter Germany

 

C-Box

Post edited by: tcloonan, at: 2006/09/02 10:14

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