How to bundle additional files with the installer
"bruehlicke" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
If you are using Ant build like myself, I have below listed an example of an addition you can make to the build.xml of the RCP main build.xml
In this example I add the source code of additions or changes I made to JFreeChart to the public domain. You can try to experiment with this, but it should show enough to give you an understanding where you can find a point to inject files to the build. This could really be any kind of files on your system
Hope this helps
<target name="build-launchers" depends="suite.build-launchers">
<!-- Add src of code changed by Eriksfiord and which must go to the public domain
This will be picked up by the build-zip target-->
<mkdir dir="${build.launcher.dir}/src/jfreechart"/>
<copy todir="${build.launcher.dir}/src/jfreechart"> <fileset dir="${basedir}/../jfreechart/src" includes="**/*.*"/> </copy>
</target>
<!-- Customized build-zip target to copy src code to the distribution -->
<target name="build-zip" depends="suite.build-zip">
<!-- Update the just created ZIP with the source we modified -->
<echo message="Adding source code for public domain modules into the zip distribution"/>
<echo message=" ... adding ${basedir}/../jfreechart/src"/>
<zip destfile="${dist.dir}/${app.name}.zip" update="true">
<zipfileset dir="${build.launcher.dir}/src/" prefix="${app.name}/src"/>
</zip>
</target>