DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4189

Command line too long on NT during ejbc task

           Summary: Command line too long on NT during ejbc task
           Product: Ant
           Version: 1.3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a task defined in my build.xml thus:

  <target name="stubs" depends="dds">
    <ejbc
           descriptors="${dds}"
           src="${src}"
           dest="${dds}"
           manifest="${build.manifest}"
           classpath="${build};${classes}">
           <include name="**/*.ser" />
    </ejbc>
  </target>

When it runs I get this message:

     [ejbc] The following character string is too long:
     [ejbc]

  BUILD FAILED

  d:\dev\main\build.xml:68: Execution of ejbc helper failed

If I run Ant with the -debug option I can see that it is trying to launch a JVM 
to run the org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper class via 
cmd.  The command line supplied to it is very long as it lists all the .ser 
files found.  If I copy and paste the command as an argument to cmd /c (via a 
bash shell, I can't even paste it into a command prompt) I get the same message.

I can work around this, but a fix would be nice.  I would suggest either not 
using a sub-process, or passing the pattern sets to the sub-processes using a 
temporary file.


The output from the Ant -debug command looks like the following:
--------------------------------------------------------------------------
stubs:
   +Task: java
     [ejbc] Forking java -classpath ... 
org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper dds dds src manifest.mf 
false ...lots_of_.ser_files...
Execute:CommandLauncher: cmd /c cd /d D:\dev\MAIN && java -classpath ... 
org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper dds dds src manifest.mf
 false ...lots_of_.ser_files...
     [ejbc] The following character string is too long:
     [ejbc]

BUILD FAILED

d:\dev\main\build.xml:68: Execution of ejbc helper failed
--------------------------------------------------------------------------

Reply via email to