![]() |
|
![]() |
||
![]() |
||||
|
How to compile iReport from sources by Giulio Toffoli
In order to compile iReport from sources, we need three things:
Getting the source code All the releases of iReport include a package containing the source code. The name of the package is something like iReport-nb-3.6.0-src.zip.
The last release can be found at http://sourceforge.net/projects/ireport/files/. svn checkout --username anonsvn http://jasperforge.org/svn/repos/ireportfornetbeans/trunk
This will download the whole trunk version of iReport on your computer. Getting the NetBeans platform The NetBeans platform 6.0.1 can be downloaded from
http://download.netbeans.org/netbeans/6.0/final/zip/netbeans-6.0.1-200801291616-ml.zip. Compiling iReport using Ant If for some reasons you don't want to install NetBeans, you can compile iReport from the command line.
nbplatform.NetBeans_IDE_6.0.1_(Build_200801291616).harness.dir=C:\\JasperSoft\\netbeans\\harness
nbplatform.NetBeans_IDE_6.0.1_(Build_200801291616).label=NetBeans IDE 6.0.1 (Build 200801291616)
nbplatform.NetBeans_IDE_6.0.1_(Build_200801291616).netbeans.dest.dir=C:\\JasperSoft\\netbeans
Change the paths to the NetBeans platform to point to where you have extracted the platform. set ANT_OPTS=-Xmx1024m Build and run iReport with the following command: ant run To create a zip distribution inside the dist directory type: ant create-ireport-distro-zip Compiling iReport using NetBeans NetBeans is a popular open source Java IDE and it represents the best environment to write iReport plug-ins. ![]() Figure 1
The NetBeans Platform Manager pops up. Select Add Platform and locate the directory where the netbeans platform zip has been extracted. ![]() Figure 2 When the platform 6.0.1 has been correctly installed, open the iReport project by selecting File → Open Project.... Locate the directory containing the iReport sources, the iReport directory inside trunk will be automatically recognized as iReport project suite. ![]() Figure 3
Click the Run project button on the toolbar to compile the sources and run iReport. ![]() Figure 4 To create a specific iReport distribution, right click the Build Script in the Important Files folder of the project, select Run Target and the target you want to run as shown in figure 5. ![]() Figure 5
|
||||
![]() |
|
![]() |