I hope some one out there can help.
I have a large project that uses Ant for release builds, that must be "Run in the same JRE as workspace" This has always been fine in fb4.5 and 4.6 but in 4.7 fb.exportReleaseBuild gives us a java.lang.NullPointerException.
I can just load the project up in 4.6 and build it for now, but as you can't get 4.6 any more this isn't a long term solution.
I can reproduce the issue in 4.7 on two PC's by doing the following:
Create a new flex project called "buildTest", Add a build folder, Create a new file named build.xml (in the build folder) Put the following in the build file:
<?xml version="1.0" encoding="utf-8"?> <project default="default" basedir="../"> <!-- target: default --> <target name="default"> <fb.exportReleaseBuild project="BuildTest"/> </target> </project>
Right click on the build file, Run as -> Ant Build... -> JRE (tab) -> select "Run in the same JRE as the workspace" -> Click "Run"
If you do this in 4.6 (on either of my boxes) it works fine. if you do it in 4.7 (again on either box) you get the following error:
BUILD FAILED C:\Users\germanD1\Documents\Projects\test Projects\Ant Test\BuildTest\build\build.xml:6: java.lang.NullPointerException
You can even create it and watch it fail in 4.7 then open the same proj in 4.6 and watch it work!!!
I hope someone can help, this is driving me mad.
Many thanks Dan