Monthly Archives: September 2004
Today I had to create an automatic build for a Tuxedo Server. It requires the following steps:
- generate sources from header files
- compile each source with Cobol compiler
- link all obj files into a dll
For I moment I have thought that a rapid bat file will solve my problem, but I wasn’t able to figure out how to obtain a list of header files from a directory. I have tryed the following:
set LIST= for %%i in (*.ext) do set LIST=%LIST% %%i
but 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! %%i
At 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.
I was looking for this all my life (ehhh… just kidding, just in the last time). It is the best thing I would expect.
Take a look: notebook.
Wow! I am not working with a cool language. Damn it! My applications are not cool because I use a not-so-cool programming language (Java). My joy of everyday (and sometimes also night) job is gone. I must/will switch to a cool programming language. I think that I will join the guys which developed for 20 years in Cobol finding it very sexy. (don’t take me wrong Cobol guys, in my heart/mind I really appreciate your work).
I am astonished. Talking about a programming language/paradigm to be cool and/or sexy makes me really angry. I really think that some people should talk about having a programming job (I thought for a moment to write programming, but are too many guys pretending to be programmers when they are simple coders) to be cool/sexy (but this times I think are passed too) and not the other way around. I think that if you cannot find the coolness/sexiness in your application (in every piece of code your mind spits out) than maybe you will not be able to find this pleasure in another programming language (but I encourage you to continue to look for it).
Moreover, I have decided now to choose for my future applications the solution according to the coolest programming language poll. I will not design and write applications to best fit my customers, but to use the coolest programming language.
Back to reality. A programming language represents the means to create something cool/sexy. Your application must be cool (and not only from your point of view, but also from the point of view of your customer). Your code can be also your little piece of cool. If you cannot do this maybe there are other things you may want to do instead of programming.