Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 63609 invoked from network); 14 Dec 2002 22:28:36 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 14 Dec 2002 22:28:36 -0000 Received: (qmail 3198 invoked by uid 97); 14 Dec 2002 22:29:48 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 3131 invoked by uid 97); 14 Dec 2002 22:29:47 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 3116 invoked by uid 98); 14 Dec 2002 22:29:47 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="utf-8" From: Christian Wolfgang Hujer Organization: ITCQIS GmbH To: "Ant Developers List" Subject: Suggestion: Pack-Task as subclass of MatchingTask Date: Sat, 14 Dec 2002 23:29:18 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212142329.18262.Christian.Hujer@itcqis.com> X-Sender: 320027188944-0001@t-dialin.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello dear Ant Developers, I suggest making the Pack and Unpack Tasks a subclass of Matching Task in= stead=20 of Task. Reason: Packing several files with a single task-def, like =09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09 Why do I want to compress all .html and .xhtml files? Because my internet provider has no apache module for automatic compressi= on=20 installed, but I want the files to be transmitted to the user agent in a=20 compressed form if the user agent supports decompression (Accept-Encoding= :=20 gzip). Temporary Workaround: Use a Makefile like this: compress: $(addsuffix .gz, $(shell find dest -name "*.tar" -or -name "*.h= tml"=20 -or -name "*.xhtml"...)) %.gz: % =09gzip -c $< >$@ Or a bash shell script like this: for i in `find dest -name "*.tar" -or -name "*.html" -or -name "*.xhtml".= =2E.` do =09gzip -c $i >$i.gz done Which you both might invoke from ant using the exec task. Quirk in workarounds: system dependent. Bye --=20 ITCQIS GmbH Christian Wolfgang Hujer Gesch=C3=A4ftsf=C3=BChrender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: Christian.Hujer@itcqis.com WWW: http://www.itcqis.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: