Command line too long in Windows

Bug #1527245 reported by Danil Sokolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Workcraft
Fix Committed
Medium
Danil Sokolov

Bug Description

I certain cases Windows cannot run workcraft.bat because some of the lines (set PATH or Java command line) become too long. Apparently Windows has limitations on the length of command line and also on the length of environment variables.

A possible solution to the CLASSPATH problem:
http://stackoverflow.com/questions/201816/how-to-set-a-long-java-classpath-in-windows

Anyway, eventually a transition to JAR files will solve the problem of too long classpath.

A bigger issue is the PATH variable. A possible solution is to create a map drive to the WORKCRAFT_HOME, thus shortening the path to the backend tools (https://technet.microsoft.com/en-gb/library/bb491006.aspx), e.g.:

:: Set a virtual drive
SUBST W: %WORKCRAFT_HOME%
...
:: Remove avirtual drive
SUBST /D W:

However it is not clear if this command if always allowed and what happens if the drive letter (W:) is already taken..

Tags: core

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.