History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1350
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Nick Sieger
Reporter: Arun Gupta
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

CLASSPATH environment variable increases exponentially in _jrubyvars.bat

Created: 13/Sep/07 05:47 PM   Updated: 22/Dec/07 06:28 AM
Component/s: Miscellaneous
Affects Version/s: JRuby 1.0.1
Fix Version/s: JRuby 1.1b1, JRuby 1.0.2

Time Tracking:
Not Specified

Environment: Windows Vista


 Description  « Hide
In _jrubyvars.bat, the value of CLASSPATH environment variable increases exponentially. This is a fragment from batch file:

– cut here –
if not "%CLASSPATH%" == "" goto gotCP
set CLASSPATH=%CP%
goto doneCP
:gotCP
set CLASSPATH=%CP%;%CLASSPATH%
:doneCP
– cut here –

Each execution of this script increases the value of the CLASSPATH variable exponentially by appending from the previous run. If this script gets executed in a new shell, then everything works.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vladimir Sizikov - 14/Sep/07 09:30 AM
See also similar/related #JRUBY-1141.

Inconvenient indeed.


Charles Oliver Nutter - 19/Oct/07 09:31 PM
We need help fixing this one. We're no good at bat/cmd scripting.

ruivaldo neto - 23/Oct/07 07:49 PM
This snippet works ?:

---------------------------------------------------------
if not "%DEFINEDCP%" == "" goto doneCP

if not "%CLASSPATH%" == "" goto gotCP
set CLASSPATH=%CP%
set DEFINEDCP=DEFINED
goto doneCP

:gotCP
set CLASSPATH=%CP%;%CLASSPATH%
set DEFINEDCP=DEFINED

:doneCP
---------------------------------------------------------