Issue 62634 - bad platform in output path SDK examples
Summary: bad platform in output path SDK examples
Status: ACCEPTED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: 680m156
Hardware: Sun Linux, all
: P3 Trivial (vote)
Target Milestone: DevTools
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-28 00:16 UTC by sparcmoz
Modified: 2013-02-07 21:56 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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