Hi Curt

I would be interested in knowing if you intend to contri...
adapter(s) to the project.   If possible, respond on the...
Yes, I will contribute the cobol task to the ant-contrib p...

 
> What compilers are you targeting?
Targeted compilers is for now the MicroFocus compiler on WXP and Linux and 
the Enterprise Cobol compiler on z/OS
 
> Does  COBOL have something like C's #include's that need to be scanned to 
> figure out the compile dependencies?
Yes, COBOL support text inclusion thru the COPY <MEMBER-NAME> statement. I 
am working on the CobolParser class for building the dependencies
 
Francis
 
> ----- Original Message -----
> From: "Curt Arnold" <carnold@houston.rr.com>
> To: "Francis ANDRE" <francisandre@users.sourceforge.net>
> Sent: Tuesday, March 07, 2006 6:15 PM
> Subject: Re: cobol compiler task
>
>
> >
> > On Mar 7, 2006, at 5:13 AM, Francis ANDRE wrote:
> >
> >>
> >> Message body follows:
> >>
> >> Hi Curt
> >>
> >> I am in the process of building a extension of the cc task
> >> for compiling COBOL programs and I need some help. All
> >> defines, flags and so on could be managed as in cc and
> >> should not pose any serious problems to solve but there is
> >> one point on which I did not found any help:
> >>
> >> The MicroFocus command line compiler can compile only one
> >> file at a time and the command lien should be terminated by
> >> a ";". That's ok for the ";" but I did not find how to
> >> invoke the compiler with only one source to compile as in
> >>
> >>
> >> cobol UT01.cbl;
> >> cobol UT02.cbl;
> >> cobol UT03.cbl;
> >>
> >> What is currently generated is
> >>
> >> cobol UT01.cbl UT02.cbl UT03.cbl ;
> >>
> >> which is not a valid command line arguments for the
> >> compiler.
> >>
> >> How could I achieve the previous command lines???
> >>
> >>
> >> TIA
> >>
> >> Francis
> >
> >
> > In your extension of CommandLineCompilerAdapter, override the
> > getMaximumInputFilesPerCommand() method and return 1.   Something like:
> >
> >
> >
> > public class MicroFocusCOBOLCompiler extends CommandLineCOBOLCompiler {
> > ...
> >     protected int getMaximumInputFilesPerCommand() {
> >         return 1;
> >     }
> >
> >
> > I would prefer if you would ask these questions on the mailing list.
> >
> > I would be interested in knowing if you intend to contribute your
> > adapter(s) to the project.  What compilers are you targeting?  Does  COBOL
> > have something like C's #include's that need to be scanned to  figure out
> > the compile dependencies?  If possible, respond on the  mailing list.
> >
> >
>
>
>
>