From angjh@execpc.com Wed Mar 1 01:46:27 2000 Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 90245 invoked from network); 1 Mar 2000 01:46:27 -0000 Received: from mailgw00.execpc.com (sendmail@169.207.1.78) by locus.apache.org with SMTP; 1 Mar 2000 01:46:27 -0000 Received: from pop01.execpc.com (pop01.execpc.com [169.207.2.114]) by mailgw00.execpc.com (8.9.1) id TAA05086 for ; Tue, 29 Feb 2000 19:46:22 -0600 Received: from clyroot450 (skaro-2-64.mdm.mke.execpc.com [169.207.138.192]) by pop01.execpc.com (8.8.8) id TAA30027 for ; Tue, 29 Feb 2000 19:46:18 -0600 Message-ID: <021001bf831f$d4d1b040$0100a8c0@clyroot450> From: "Jayme Edwards" To: References: <2739046.3160772818@turtle.coral.cs.cmu.edu> <38BB5D2D.AB503BFC@lisa.com.au> Subject: Re: What flavour of scripting? Date: Tue, 29 Feb 2000 19:45:31 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Actually, you could use the xlink for this purpose. With X-link, you can reference external elements whether they are in that file or not. e.g: /build.xml xlink:href="somerelpath/somesubdir/somefile.xml" xlink:role="target"/> /somerelpath/somesubdir/somefile.xml I'm using this in a project running on Tomcat right now with a stylesheet that can replace the linked elements with the content and/or produce hyperlinks to the target doc in HTML. Jayme Edwards Rockwell Software Control Studio >> [ http://www.openautomation.com/controlpak ] ----- Original Message ----- From: David Bullock To: ant-dev@jakarta.apache.org Sent: Monday, February 28, 2000 11:46 PM Subject: Re: What flavour of scripting? Perhaps jamming it all into one build configuration file is the issue. XML is a natural candidate for building a Dependency Markup Language. But building a software project is not all dependency management (hence the 'actions' concept of Ant). The actions to take in response to dependency triggers could probably be best specified in some kind of scripting language. (On the topic of "which scripting language?", JPython has a natural mapping to Java OO programming, but it is still another language to learn(!)) What about a build.dml file to specify the dependencies, and another file (build.jp ?) to describe what to do about the dependencies. I'm new to unixland, and haven't ever made my own Makefile, but isn't the idea that you specify the dependencies (if x.java has changed, then rebuild xyz.jar ... not to mention the interdependencies between classes, packages etc.)? The current task metaphor of Ant seems to promote a more procedural, switching kind of approach to building a project. Which is probably not what we want. Regards, David. PS > In the theory that it is never too late, let's take the opportunity now to > go back and answer Stefano's question. I assume this question was along the lines of: What is the best way to add logic/scripting to Ant? Stefano's original question was: ----------------begin quote------- ant is a great tool, but it's based on make design patterns. Read: targets and tasks. Now, in Cocoon, I would like to have a target executed if and only if a particular condition is true. This condition might well be: - a property set (example: do a snapshot or a release distribution) - the existance of a class in the classpath (example: a pluggable module requires JNDI but the JNDI classes are not found) - time - operating system Question: how do we do this? Constrain: I need this done _soon_ in order to build the new Cocoon distribution and I'm volunteering to write any required changes once we agree on _how_ a feature like this should be done. comments? ----------------end quote---------- -- David Bullock Project Leader dbullock@lisa.com.au "It's no use saying 'We are doing our best.' You have got to succeed in doing what's necessary." ...Winston Churchill LISAcorp http://www.lisa.com.au/ Adelaide Sydney -------------------- ------------------------ 38 Greenhill Rd Level 3, 228 Pitt Street Wayville S.A. 5034 Sydney NSW 2000 PH +61 8 8272 1555 PH +61 2 9283 0877 FAX +61 8 8271 1199 FAX +61 2 9283 0866 -------------------- ------------------------