- generate sources from header files
- compile each source with Cobol compiler
- link all obj files into a dll
set LIST= for %%i in (*.ext) do set LIST=%LIST% %%ibut it didn't work. After a while I have found out that I should enable delayed variable extensions and the above lines would become:
set LIST= for %%i in (*.ext) do set LIST=!LIST! %%iAt this step I wasn't sure I want to continue, so I have decided to switch to Ant. Here obtaining the list of files was an easy one pathconvert did my job immediately. But I have faced a second problem: how should I pass each generated file to the Cobol compiler. The solution I have found (and I don't know if it the unique one - give me hints if you have) was to use a script task. After downloading BSF and Rhino in a few lines I have solved my problem. Again Ant proved it's a great tool for building projects. I would appreciate any other possible solution.