On 9/16/13 12:35 AM, Carl Marcum wrote: > Hi, > > I'm going on an assumption that the 3-layer removal is a directory > structure change putting the sdk under the AOO program directory. > > I have a question on the directory layout of sdk on platforms other than > linux. > > In netbeans plugin current code is broken for AOO4. > > private void skeletonmaker(AddOn addon) { > String platform = PlatformInfo.getPlatformBinDir(); // returns > "linux" > String sdkPath = (String)wiz.getProperty("SdkPath"); // returns > "/opt/openoffice4/sdk" > String sdkBinPath = > sdkPath.concat(File.separator).concat(platform).concat(File.separator).concat("bin"); > // returns "/opt/openoffice4/sdk/linux/bin" > > if > (OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) { > sdkBinPath = sdkPath.concat(File.separator).concat("bin"); > // would return "/opt/openoffice4/sdk/bin" > } > > Since isThreeLayerOffice is false, if I change this to: > > if (!OpenOfficeLocation.getOpenOfficeLocation().isThreeLayerOffice()) { > sdkBinPath = sdkPath.concat(File.separator).concat("bin"); > // returns "/opt/openoffice4/sdk/bin" > } > It now works. > > My question is would this break other platforms?
not 100% checked but I assume not. The whole code have to be reworked and I started this work for MacOS already .... The SDK is installed in the openoffice4 folder on Linux and Windows. Mac was always differently. Some more tweaks are necessary in the project templates. At least addon and remote client app. I will try to have a look on this after my vacation. Juergen > > Thanks, > Carl > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org > For additional commands, e-mail: dev-h...@openoffice.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org