You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Alexei Fedotov <al...@gmail.com> on 2008/03/03 18:23:23 UTC

Re: [general][build WXP]: getMaximumCommandLength() seems not fixed in cpptasks version 1.0b4

Hello Francis,
Does it mean that the Wiki page should be updated with 32767?

Thanks!

On Mon, Mar 3, 2008 at 7:37 PM, Francis ANDRE <fr...@easynet.fr> wrote:
> Hi Harmony Team,
>
>   From the WiKi, one said about the error: "Command line is over maximum length
>  without specifying source file" and gave the following fix:
>
>  getMaximumCommandLength() { return 65535;}
>  The issue was fixed in cpptasks version 1.0b4.
>
>
>  but in cpptasks version 1.0b4/DevStudioCCompiler.java, the
>  getMaximumCommandLength() returns 32767!!
>
>
>  Regards
>
>  Francis
>
>
>  PS: source of DevStudioCCompiler in cpptasks version 1.0b4
>
>  public final class DevStudioCCompiler extends DevStudioCompatibleCCompiler {
>      private static final DevStudioCCompiler instance = new DevStudioCCompiler(
>              "cl", false, null);
>      public static DevStudioCCompiler getInstance() {
>          return instance;
>      }
>      private DevStudioCCompiler(String command, boolean newEnvironment,
>              Environment env) {
>          super(command, "/bogus", newEnvironment, env);
>      }
>      public Processor changeEnvironment(boolean newEnvironment, Environment env) {
>          if (newEnvironment || env != null) {
>              return new DevStudioCCompiler(getCommand(), newEnvironment, env);
>          }
>          return this;
>      }
>      public Linker getLinker(LinkType type) {
>          return DevStudioLinker.getInstance().getLinker(type);
>      }
>      public int getMaximumCommandLength() {
>          return 32767;
>      }
>  }
>



-- 
With best regards,
Alexei