From: Jeremy Bopp Date: 2010-10-15T07:27:06+09:00 Subject: Re: Kind of nested loops On 10/14/2010 4:56 PM, Veedo Dream wrote: > A good idea of using rake, but I have a reason not to use rake and build > my own system. Users here should be able to comment off what they don't > want to built. I know it is crude, but that is the way we want to go. > The reason I have the files located in a different array as I have a lot > many files than 3 to comment off. I can't add anything more than has already been said for the direct question; however, I felt a word of warning is in order. At the company where I work, we have invented a number of build tools to help developers streamline their build process and improve build reliability. As the current maintainer of these tools, I can speak personally to the fact that unless your organization is in the business of selling build tools or strongly dedicated the effort for other reasons, you will most likely saddle those users with overly complicated, unsupported tools that no one really knows how to use. That is exactly what has happened for us. Virtually nothing is spent to properly support these tools or provide decent training and documentation for their use. As a result, our work is more often hampered by the tools than helped these days, but it is unbelievably difficult to claw your way out after you're in, no matter how painful the home grown tool is to support and use. It's difficult to convince managers to delay new features and bug fixes so that your team has time to refactor their code and daily work activities for a new build tool. I have spoken with other people in the same line of work, and it's the same story just about every time. If you really need something special, try to extend an existing tool with as little custom code as possible. Rake can be quite flexible if you're clever. After all, it's just Ruby in the end. Writing your own build tool from scratch is almost always a bad idea. Just my 2 cents. -Jeremy