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 38249 invoked from network); 7 Nov 2000 23:44:35 -0000 Received: from mail.alphalink.com.au (203.24.205.7) by locus.apache.org with SMTP; 7 Nov 2000 23:44:35 -0000 Received: from donalgar (d174-ps2-mel.alphalink.com.au [202.161.107.174]) by mail.alphalink.com.au (8.9.3/8.9.3) with SMTP id KAA08414 for ; Wed, 8 Nov 2000 10:44:32 +1100 Message-Id: <3.0.6.32.20001108103913.009f9ce0@latcs2.cs.latrobe.edu.au> X-Sender: pjdonald@latcs2.cs.latrobe.edu.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 08 Nov 2000 10:39:13 +1100 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: Thoughts on an 'open' task In-Reply-To: <06c801c048fa$841582c0$28d6000f@cvwls095> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 12:37 7/11/00 -0800, you wrote: >I seem to have need of an 'open' task in some of my targets which would take >a file and based on its type bring it up in the appropriate app. For >example, would spawn a viewer for an >HTML file without caring what the reference viewer app is. > >Doing that on Windows is fairly easy with a 10 line wrapper application >"open.exe" to do the right thing. But I wouldnt know where to begin on >Unix/Linux/Mac. can also call start.exe on windows. For someplatform/windows environments I know there is an equivelent. GNOME has a mime type registry and can launch apps from. If KDE and Mac platforms had equivelent then we could do such a thing I believe. Thou it may be better to have it look like The mimetype would only be for systems that can not auto guess mimetype based on extention. >If there is a solution to doing it on most platforms then it would make >sense for me to turn it into a re-usable task, otherwise it might as well >remain a single platform trick I can do using exec. > >Any suggestions for cross platform solutions? I don't know how to do it but it could be done ;) Cheers, Pete *------------------------------------------------------* | "Nearly all men can stand adversity, but if you want | | to test a man's character, give him power." | | -Abraham Lincoln | *------------------------------------------------------*