Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 11353 invoked by uid 500); 26 Jun 2001 10:40:10 -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 11315 invoked from network); 26 Jun 2001 10:40:00 -0000 Message-ID: <00d301c0fe2c$a5907da0$e101a8c0@elixir.com.sg> From: "Praveen.C" To: Subject: Command line input. Date: Tue, 26 Jun 2001 18:42:06 +0800 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.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello everyone, How to make ant read command line input ? Becoz in my project Iam writing ant buildfile for obfuscation. Since I dont know how to use command line input, I do something like this ############ant build file############# #### java file ###### In execute() method System.out.println("Enter file name to be obfuscated. :"); DataInputStream file = new DataInputStream(System.in); String fileName = file.readLine(); Runtime.getRuntime().exec("java RetroGuard "+fileName+ " Obfuscatedefs.jar script.rgs elixir.log"); #################################### How to avoid this java file and make the xml file itself do this task. Any help on this will be highly appreciated. Thanks and Regards, Praveen.C