Stored file paths are too long for programs

Stored file paths are too long for programs

book

Article ID: KB0075738

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7

Description

Streambase stores its configuration in the Documents and Settings folder in Windows and the directory structure it uses becomes very long. This is not not necessarily bad, though there is one Java class that seems to contain an inner class in an inner class that significantly adds to the overall absolute path: NewTestCaseCreationWizard$ClasspathFixSelectionDialog$ClasspathFixLabelProvider.class

We have discovered that certain programs such as the program we use to back up certain directories including the Documents and Settings folder, choke when the absolute path of the file is larger than 256 characters. Here is the full path of the file listed above (the 8-character user name has been replaced):

C:\Documents and Settings\XXXXXXXX\Application Data\StreamBase\StreamBase Studio 6.6.3\Configuration\org.eclipse.osgi\bundles\141\1\.cp\org\eclipse\jdt\internal\junit\wizards\NewTestCaseCreationWizard$ClasspathFixSelectionDialog$ClasspathFixLabelProvider.class

If you count the length of the above string it comes to 261 characters, just a bit above the limit. Is there a way to change the folder where Studio keeps it's class references?

Issue/Introduction

Stored file paths are too long for programs

Resolution

The path "C:\Documents and Settings\XXXXXXXX\Application Data\StreamBase\StreamBase Studio 6.6.3\Configuration" is the "StreamBase Studio Configuration Directory" described here:
http://docs.streambase.com/latest/topic/com.streambase.sb.ide.help/data/html/install/default-install-dirs.html

You can change where StreamBase Studio (Eclipse) keeps this folder by setting the Eclipse setting "osgi.configuration.area" in the studio.ini file.

The SB Studio init file is
StreamBase.6.6\lib\studio\sbstudio.ini

Add "-Dosgi.configuration.area=C:\SB Config" as so to:

C:\Program Files (x86)\StreamBase Systems\StreamBase.6.6\lib\studio\sbstudio.ini
=== sbstudio.ini ===
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-vmargs
-Xms256M
-Xmx512M
-XX:MaxPermSize=256M
-Dosgi.instance.area.default=@user.home/My Documents/StreamBase Studio Workspace
-Dosgi.configuration.area=C:\SB Config
=== end ===