Bug 35441 - Please extend runide.sh to work on Windows
Please extend runide.sh to work on Windows
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
6.x
PC Windows ME/2000
: P3 (vote)
: TBD
Assigned To: issues@platform
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-08-15 01:05 UTC by kbr
Modified: 2009-01-06 14:41 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kbr 2003-08-15 01:05:50 UTC
When using NetBeans as a startup time test for the
JVM as well as in some other situations, it is
helpful to be able to manipulate the Java command
line the runide.sh script executes. This is easy
on Unix but not on Windows as the mechanism there
is to use a precompiled runide.exe. It would be
very helpful to have runide.sh work on Windows as
well.

Attached are a few diffs that allow this script to
be executed with Cygwin's or MKS's sh. However, a
conditional needs to be added at the top to
determine which class path separator and
executable suffix to use. I'd appreciate it if you
could make these changes and integrate them into
the next version of NetBeans' runide.sh.


% diff runide.sh runidewin.sh
69a70,73
> cpsep=";"
> # cpsep=":"
> exesuffix=".exe"
> # exesuffix=""
144c148
<                 if [ ! -z "$postfixcp" ] ; then
postfixcp="$postfixcp:" ; fi
---
>                 if [ ! -z "$postfixcp" ] ; then
postfixcp="$postfixcp""$cpsep" ; fi
152c156
<                 if [ ! -z "$prefixcp" ] ; then
prefixcp="$prefixcp:" ; fi
---
>                 if [ ! -z "$prefixcp" ] ; then
prefixcp="$prefixcp""$cpsep" ; fi
193c197
< if [ ! -x "${jdkhome}/bin/java" ] ; then
---
> if [ ! -x "${jdkhome}/bin/java${exesuffix}" ] ;
then
243c247
<                 if [ ! -z "$cp" ] ; then
cp="$cp:" ; fi
---
>                 if [ ! -z "$cp" ] ; then
cp="$cp""$cpsep" ; fi
347c351
<                 if [ ! -z "$cp" ] ; then
cp="$cp:" ; fi
---
>                 if [ ! -z "$cp" ] ; then
cp="$cp""$cpsep" ; fi
356c360
<         cp="${prefixcp}:$cp"
---
>         cp="${prefixcp}""$cpsep""$cp"
360c364
<         cp="$cp:${postfixcp}"
---
>         cp="$cp""$cpsep""${postfixcp}"
367c371
<         updatercp=${cp}:${updatercp}
---
>         updatercp="${cp}""$cpsep""${updatercp}"
Comment 1 mslama 2005-01-28 17:31:02 UTC
It is not installer issue. I reassign to ide module where launcher/run
script is maintained
Comment 2 Peter Pis 2007-08-31 12:54:11 UTC
Reassigning to "core".


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo