Apache OpenOffice (AOO) Bugzilla – Issue 62634
bad platform in output path SDK examples
Last modified: 2013-02-07 21:56:07 UTC
In prepartion to port SDK to GNU/Linux sparc I am getting familiar on intel/java. Next steps are intel/gcj then sparc/gcj (no java on sparc). I dont like to use any IDE, so everything is run direct from the command line. When running examples in SDK/examples/DevelopersGuide/FirstSteps using command make the outputs are placed in SDK/LINUXexample.out but using ant the results go to SDK/WINExample.out. This because the make file discovers the OS = WIN or LINUX but the WIN output path is hardcoded in the ant build_FirstUnoContact.xml: <property name="OUTDIR" value="${OO_SDK_HOME}/WINExample.out/class/FirstUnoContact"/> As the SDK runs on one platform why have different out paths for platforms? Maybe it would be possible to store the SDK on a shared server somewhere and run the SDK from different platforms so each needs its own out path? Anyway the current out path using ant is wrong for linux. Possible solutions I can think of are: (a) provide an environment variable OO_SDK_PLATFORM=LINUX or WIN (b) assume the SDK is only on one platform and remove the WIN or LINUX from out path. I will leave this as a task until I work through the other examples and see what else is involved.
start and target