Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F64CB202 for ; Wed, 4 Jan 2012 22:10:07 +0000 (UTC) Received: (qmail 70599 invoked by uid 500); 4 Jan 2012 22:10:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 70529 invoked by uid 500); 4 Jan 2012 22:10:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 70521 invoked by uid 99); 4 Jan 2012 22:10:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 22:10:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [74.124.202.87] (HELO biz82.inmotionhosting.com) (74.124.202.87) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 22:09:57 +0000 Received: from [24.108.137.46] (port=22497 helo=[192.168.145.101]) by biz82.inmotionhosting.com with esmtpa (Exim 4.69) (envelope-from ) id 1RiZ1b-0005H8-Rk; Wed, 04 Jan 2012 14:09:36 -0800 Message-ID: <4F04CE2E.40304@callenish.com> Date: Wed, 04 Jan 2012 14:09:50 -0800 From: Bruce Atherton User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Raja Nagendra Kumar CC: Ant Users List Subject: Re: live view of the file contents References: <1325669600376-5119163.post@n5.nabble.com> <4F047F25.8080903@callenish.com> <4F049767.5070406@tejasoft.com> In-Reply-To: <4F049767.5070406@tejasoft.com> Content-Type: multipart/alternative; boundary="------------060107070701020103090707" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biz82.inmotionhosting.com X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - callenish.com --------------060107070701020103090707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/01/2012 10:16 AM, Raja Nagendra Kumar wrote: > intent is to automate the viewing of the Server Logs after the server > is started through ant script.. > I can write a ant task which opens the file and prints to the console... > > as suggested by you, usage of exec would any way makes the ant script > less portable..for one more time.. we want to minimize exec usage as > far as possible and invent pure java ways.. > Well, you could write a "follow" Ant task. It wouldn't be hard, particularly if you used the Apache Commons Tailer class: http://commons.apache.org/io/api-release/org/apache/commons/io/input/Tailer.html Or you could use a | --------------060107070701020103090707--