Hans Roger Nymo - 2005-08-05

I've seen that some people has problems with the length of the commandline on Microsoft OS'es.

I've been searching for a solution on this problem, and this is what I discovered:

According to Microsoft's Article 830473:
Win NT & Win 2000 = 2047 characters (max length)
Win XP = 8191 (max length)

So when I looked in the code for cpptask it has a method getMaximumCommandLength() for all supportet compilers and linkers.
This method returns a integer value of 1024 regardless of Microsoft flawor.

I've added some logic in this method:
public int getMaximumCommandLength() {
  return 1024;
public int getMaximumCommandLength() {
return max;