ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: <csc> with Many Files
Date Wed, 12 Mar 2003 23:52:36 GMT

----- Original Message -----
From: "Bryan Urteaga" <>
To: <>
Sent: Wednesday, March 12, 2003 13:59
Subject: <csc> with Many Files

> Hello All,
> When I try to compile C# code using the <csc> task, I
> get the following error message:
>    [csc] The following character string is too long:
>    [csc]  /nologo /debug- /incremental-
> /main:view.SPSContainer /optimize-
> /reference:System.Data.dll;System.dll;Syst
> ws.Forms.dll /target:winexe
> /warchangeControl\ChangeControlServiceDelegator.cs
> C:\DATA\Indeliq\build\R2\spseditor\build\
> src\view\controllerfactories\changeControl\ChangeControlServiceLocal.cs
> **snip**
> The remainder of the "long string" is a truncated
> space delimited list of each file to be compiled. My
> suspicion is that there is a character limit on the
> Windows command shell.

WinNT or win9x?

> Personally, I think the <csc> task should somehow use
> the option, "/recurse:*.cs" if the attribute
> "includes" is not implicitly defined.

Or have the task generate an @response file with all the options and do it
that way -so you can handle complex trees even if things are excluded or

You can file a bug on this, but I dont expect it to be fixed unless you
contribute. There arent enough .NET users working on it, only two, and I've
just done enough on the tasks for 1.6, now I'm looking at other problem
areas (like SCM and SQL).

If you do want to work on the .NET stuff, get the latest from CVS source,
which has

-multiple <src> filesets
-<reference> filesets for including references...included in dependency
-<define> element for definitions, these have if and unless attributes for
conditional control from ant.

+some other tweaks. Its very different under the hood from the 1.5 version,
sharing much code with the new vbc and jsharp tasks

View raw message