Issue 62634

Summary: bad platform in output path SDK examples
Product: porting Reporter: sparcmoz <sparcmoz>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 680m156   
Target Milestone: DevTools   
Hardware: Sun   
OS: Linux, all   
Issue Type: TASK Latest Confirmation in: ---
Developer Difficulty: ---

Description sparcmoz 2006-02-28 00:16:25 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.
Comment 1 sparcmoz 2006-02-28 00:18:24 UTC
start and target