Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 31957 invoked from network); 3 Feb 2007 18:11:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2007 18:11:09 -0000 Received: (qmail 58052 invoked by uid 500); 3 Feb 2007 18:11:15 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 58032 invoked by uid 500); 3 Feb 2007 18:11:15 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 58023 invoked by uid 99); 3 Feb 2007 18:11:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Feb 2007 10:11:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.179] (HELO moutng.kundenserver.de) (212.227.126.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Feb 2007 10:11:04 -0800 Received: from [85.180.10.40] (helo=[85.180.10.40]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1HDPLV23Ha-0002dg; Sat, 03 Feb 2007 19:10:42 +0100 Message-ID: <45C4D100.5010609@dubioso.net> Date: Sat, 03 Feb 2007 19:14:24 +0100 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20070102 SeaMonkey/1.0.7 MIME-Version: 1.0 To: HttpComponents Project Subject: [HttpCore-NIO] package rename + conversion instructions Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Provags-ID2: V01U2FsdGVkX191PKWsiJqXFl7yBa5jY9TdZaB2nAB5rGGAgHeZGvWsueZcM8q7tGEK9ZU/ymJSzpHwOysh86pGQ9XuqL9a40ExU9gBoukZiF8APQl+DcWOrQ== X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I've changed the package names from nio.impl. to impl.nio. Here are the instructions for converting your code, tested on the HttpCore-NIO sources, tests, and examples. It's more than a one-liner, since IO redirection for sed within a find -exec command line is beyond my escaping skills ;-) This works on Linux from a tcsh, and should be easy to apply on other Linux/Unix shells. On Windows+Cygwin, the only problem should be to make the shell skript an executable. If you've got problems, replace the direct invocation of the script with one of the shell, giving the script as argument. Save the following into a text file named "mvnio.sh" and make the file executable: ----- skript starts in next line ----- #!/bin/sh echo mvnio: $1 mv -i $1 $1.orig sed < $1.orig > $1 -e 's/org.apache.http.nio.impl/org.apache.http.impl.nio/g' ----- end of the script, don't forget the trailing newline ----- To convert your Java source code, go to the root directory of your source tree and execute the command: find . -name \*.java -exec /path/to/mvnio.sh \{} \; where /path/to/mvnio.sh is the absolute path to the script file you created above. The .java files will be converted, and the original file contents remains available as .java.orig If something went wrong, the modified files can be restored to the original contents as follows: find . -name \*.java -exec mv -vf \{}.orig \{} \; hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org