2002 JI Open Discussion Posted August 30, 2006 Share Posted August 30, 2006 By: Kees Kuip - keeskuip iReport in 1 jar? 2005-02-06 13:08Hey Giulio, How to you feel about distributing iReport in 1 executable jar? It has a number of advantages: - It acts as if it is an executable. Just doubleclick it and iReport starts. - It is much easier to install. (no more classpath problems) - It is much easier to distribute. I found a project which does this. It is at : http://one-jar.sourceforge.net/ I could write an ant-task which creates this jar. Would you be interested in adding it to the project? Kees Kuip. By: C-Box - c-box RE: iReport in 1 jar? 2005-02-07 00:58I'd also like it, but it must be for sure that you can add some additional jar's into the ClassPath for IReport. We are using some own classes within our reports (for datasources and so on)... that classes are needed when compiling a report. Now we added our class-path to the startup.bat and there are no problems. Can the "One-Jar" project handle external classes to be available within the "One-Jar-MainClass" ? Or must they get included within that big "One-Jar" ??? Also the plugin-Architecture must work like it does now. Guilio loads now the plugins from classpath where a plugin.xml exists. C-Box By: Kees Kuip - keeskuip RE: iReport in 1 jar? 2005-02-27 06:06I found out that this can be easily done with the standard functionality of ant. The following ant-task will do the trick. (including templates and plugins) (using ant 1.6.2): <target name="neojar" depends="jar"> <jar destfile="neojar.jar"> <manifest> <attribute name="Built-By" value="iReport"/> <attribute name="Main-Class" value="it.businesslogic.ireport.gui.MainFrame"/> </manifest> <zipgroupfileset dir="${lib}" includes="**/*.jar"/> <fileset dir="${lib}" excludes="**/*.jar"/> <zipgroupfileset dir="${target}" includes="**/*.jar"/> <fileset dir="${target}" excludes="**/*.jar"/> <fileset dir="${basedir}" includes="templates/** plugins/**"/> </jar> </target> By: Giulio Toffoli - gt78 RE: iReport in 1 jar? 2005-03-03 06:29 I created a way to load templates directly from jar. The logic is the same applied to plugin: you can now define a set of templates including a file ireport/templates.xml In this way I solved all filesystem dependency of iReport (except for the configuration file). Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now