More Tips to integrate Jasper report to compiere

To modify Compiere build:
1. Copy report.jar and reporttools.jar into compiere-all/lib
2. Modify build.xml in compiere-all/client to support WebStart

    <!--  =========================================== -->
    <!--  Distribution                                -->
    <!--  =========================================== -->
  <target name="clientDistribute" depends="clientCompile" unless="jar.uptodate">
  <!--  get included jars -->
  <!-- Added here by Goodwill -->
  <unjar src="..\lib\report.jar" dest="${build.dir}" />
  <unjar src="..\lib\reportTools.jar" dest="${build.dir}" />
  <!-- End -->

3. Modify build.xml in compiere-all/install/Compiere2 to support Local Install

    <!--    Create Client Zip        -->
    <zip zipfile="${basedir}/lib/Compiere2Client.zip">
      <!-- Added into Compiere2Client.zip -->
      <zipfileset dir="lib" prefix="Compiere2/lib"
        includes="Compiere2.exe,*.ico,Compiere.jar,CompiereCLib.jar,compiereDirect.jnlp,index.html,*.0, report.jar, reportTools.jar"/>
    </zip>
   
4. Modify build.xml in compiere-all/install

    <!-- JasperReport Directory -->
    <mkdir dir="${build.dir}/Compiere2/reports"/>

5. Modify build.xml in compiere-all/install/Compiere2

  <!-- JasperReport integration -->
  <copy file="${basedir}/lib/report.jar" todir="${basedir}/jboss/server/compiere/deploy"/>
  <copy file="${basedir}/lib/reporttools.jar" todir="${basedir}/jboss/server/compiere/lib"/>
    <copy file="${basedir}/lib/Compiere.jar" todir="${basedir}/jboss/server/compiere/lib"/>
    <copy file="${basedir}/lib/CompiereSLib.jar" todir="${basedir}/jboss/server/compiere/lib" failonerror="no"/>

6. Modify Run_Compiere2.bat in compiere-all/utils to include the 2 jars into classpath
7. Modify Run_Server2.bat in compiere-all/utils
    @Set ReportPath=%COMPIERE_HOME%/reports
    @Set JAVA_OPTS=-server %COMPIERE_JAVA_OPTIONS% -DReport_Home=%ReportPath%  
8. Do the same thing for the .sh companion

There's a patch for the report.jar. You can download it from http://sourceforge.net/projects/starprise

Peter, I hope you can apply the patch to your work. Great work, Thx!

Armen
Goodwill Consulting
www.goodwill.co.id

Starprise Compiere Indonesia
www.starprise.net