I looked at the meta.props files compiled by f4 and compared it to the one generated by executing fan build.fan in a command window. The property build.platform in the f4 generated meta.props was "win32-x86_64", but in the fan build.fan generated meta.props was just "win32-x86".
I tried a bunch of things in the build script that didn't work. What's the best way to change the default for build.platform when using fan build.fan?
SlimerDudeWed 13 Nov 2013
I think you're confused (or possibly I am!)...
The build.platform in meta.props tells you about the computer that built the pod, it says nothing about an intended platform. Therefore it shouldn't really matter what the value is. (Unless you're embarrassed about having a 32bit computer!?)
The value is whatever is reported by Env and not something you have much control over.
But it sounds like the JVM that F4 is running under is different to the one on your command line.
message when executing fan from the command line, I installed the 32-bit jre alongside my 64-bit jre. So this is what was being picked up when I executed fan from the command line.
lel4866 Wed 13 Nov 2013
I looked at the meta.props files compiled by f4 and compared it to the one generated by executing fan build.fan in a command window. The property build.platform in the f4 generated meta.props was "win32-x86_64", but in the fan build.fan generated meta.props was just "win32-x86".
I tried a bunch of things in the build script that didn't work. What's the best way to change the default for build.platform when using fan build.fan?
SlimerDude Wed 13 Nov 2013
I think you're confused (or possibly I am!)...
The
build.platform
in meta.props tells you about the computer that built the pod, it says nothing about an intended platform. Therefore it shouldn't really matter what the value is. (Unless you're embarrassed about having a 32bit computer!?)The value is whatever is reported by
Env
and not something you have much control over.But it sounds like the JVM that F4 is running under is different to the one on your command line.
lel4866 Wed 13 Nov 2013
Ah...here's what happened:
To get around the
message when executing fan from the command line, I installed the 32-bit jre alongside my 64-bit jre. So this is what was being picked up when I executed fan from the command line.
When I removed the 32-bit jre and just used your
everything worked and I get build.platform=win32-x86_64