| View previous topic :: View next topic |
| Author |
Message |
emmbec
Joined: 27 Nov 2008 Posts: 49 Location: Queretaro, Mexico
|
Posted: Fri Nov 06, 2009 7:55 pm Post subject: Help migrating 6.5 ANT script to 6.7 |
|
|
Hi, I was using NetBeans 6.5 DIE perfectly fine, however I decided to make the change to 6.7. I have an ANT script that created automatically an installer for my NetBeans platform application and now that I switched to 6.7 it no longer works, the problem seems to be the part where I used to copy the NetBeans ide10 and platform9 folders to the dist folder so that I can pick it up to create the installer. My ant script is this:
| Code: | <target name="build-setup" depends="build,build-launchers" description="Builds the intaller of the suite">
<mkdir dir="dist/${app.name}"/>
<copy todir="dist/${app.name}/bin">
<fileset dir="${build.launcher.dir}/bin"/>
</copy>
<copy todir="dist/${app.name}/etc">
<fileset dir="${build.launcher.dir}/etc"/>
</copy>
<copy todir="dist/${app.name}">
<fileset dir="${netbeans.dest.dir}">
<include name="**/lib/nbexec*"/>
</fileset>
</copy>
<copy todir="dist/${app.name}">
<fileset dir="${netbeans.dest.dir}">
<and>
<not>
<filename name="**/lib/nbexec*"/>
</not>
<selector refid="zip.platform.included.files"/>
</and>
</fileset>
</copy>
<copy todir="dist/${app.name}/${app.name}">
<fileset dir="${cluster}">
<exclude name="config/Modules/*.xml_hidden"/>
</fileset>
</copy>
<exec executable="makensis.exe">
<arg line="/DPROD_TITLE='${app.title}' '${basedir}/setup/myplatformapplication.nsi'"/>
</exec>
</target> |
However I managed to isolate the problem and I think it is in these sections:
| Code: | <copy todir="dist/${app.name}">
<fileset dir="${netbeans.dest.dir}">
<include name="**/lib/nbexec*"/>
</fileset>
</copy>
<copy todir="dist/${app.name}">
<fileset dir="${netbeans.dest.dir}">
<and>
<not>
<filename name="**/lib/nbexec*"/>
</not>
<selector refid="zip.platform.included.files"/>
</and>
</fileset>
</copy> |
For some reason, this variable ${netbeans.dest.dir} no longer works in 6.7. What do I need to do to make it work? I only want to include the NetBeans modules that I use for my platform application.
Thanks! |
|
| Back to top |
|
 |
sr2222
Joined: 12 Feb 2009 Posts: 24 Location: Dayton, Ohio, USA
|
Posted: Wed Nov 18, 2009 1:45 pm Post subject: Migrating NB 6.5 Ant script to NB 6.7 |
|
|
I have had similar issues. Here is what I am doing (still in progress). The issues with my build scripts concerned changes I had made to the build script for the launchers.
I compared the old
NB6.5/harness/suite.xml
to the new
.netbeans/6.7/suite.xml
There are a number of differences. Then, I have started editing the build.xml file that is in my application suite to update any old lines that were based on 6.5 to the newer lines in 6.7.
You can probably do something similar to this for your application.
-Stu _________________ -stu |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|