Re: How to bundle additional files with the installer
Steven Yi <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CANtcCs7ZgEaC8BBwkscXMDZ+EtBPfL4EGbrdNwxnrnsNHh2t6g@mail.gmail.com> |
Thanks for sharing this! I also do some additional work when using the build-zip and build-mac targets: https://github.com/kunstmusik/blue/blob/master/build.xml This includes things like processing some files, building and packaging my user manual, replacing windows icons, and so on. Hope it's useful! On Mon, Sep 26, 2016 at 8:12 AM, bruehlicke <[email protected]> wrote: > 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> > > > >