Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 14504 invoked by uid 500); 11 Apr 2001 03:52:24 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14495 invoked from network); 11 Apr 2001 03:52:24 -0000 To: ant-user@jakarta.apache.org Subject: bootstrapping custom tasks? From: "Linskey, Patrick" Organization: TechTrader, Inc. Date: 10 Apr 2001 23:52:16 -0400 Message-ID: <7tae5oqej3.fsf@jsbach.techtrader.com> Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello, I've successfully written some custom tasks for ant, and am now trying to figure out how to best design my build process. The compilers that the custom ant tasks invoke are part of the project, so ant dies a miserable death if I them before they've been built. Clearly, I could write a separate build file that must be invoked in order to bootstrap the system. But I want a single point of entry for compilations. I'd rather if people didn't have to rememeber to run the bootstrap compiler first. I've come up with a workaround whereby all the references to the new tasks are stored in a separate build file. The primary build.xml invokes these compilers by invoking an task on the separate build file, specifying the compiler to use as a target. The primary file ensures that all the targets that do this depend on the compilers, so they get built before the task is invoked. But this is really ugly. I'd much rather have a single build file. Is it possible to indicate to ant that it should not try to load a taskdef until that taskdef is used? Or is there some other pattern that people use for this type of bootstrapping situation? Thanks, -Patrick -- Patrick Linskey plinskey@techtrader.com Software Engineer phone: 202.349.2577 TechTrader, Inc. www.techtrader.com