Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 24601 invoked from network); 28 Jul 2003 15:55:23 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jul 2003 15:55:23 -0000 Received: (qmail 28239 invoked by uid 97); 28 Jul 2003 15:58:00 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 28232 invoked from network); 28 Jul 2003 15:58:00 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 28 Jul 2003 15:58:00 -0000 Received: (qmail 22446 invoked by uid 500); 28 Jul 2003 15:54:51 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 22430 invoked from network); 28 Jul 2003 15:54:51 -0000 Received: from unknown (HELO tim.zserve.com) (66.119.143.161) by daedalus.apache.org with SMTP; 28 Jul 2003 15:54:51 -0000 Received: (qmail 28390 invoked from network); 28 Jul 2003 15:54:51 -0000 Received: from unknown (HELO zserve.com) (127.0.0.1) by localhost with SMTP; 28 Jul 2003 15:54:51 -0000 Message-ID: <3F25474B.4030700@zserve.com> Date: Mon, 28 Jul 2003 09:54:51 -0600 From: Tim Shadel Organization: ZServe, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030709 X-Accept-Language: en-us, en MIME-Version: 1.0 To: 'Struts Users Mailing List' Subject: RE: [OT] Source Code Print Utility For Code Reviews? X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You may want to check out Java2HTML (www.java2html.com). There's an Ant task that you can integrate into your build process. It will generate HTML that highlights your source code, adds hyperlinks to allow you to navigate it, and put line numbers on it. You may not even need to print it if you publish the HTML to a central location. But you should just be able to print .html files directly from Windows explorer (I assume). It's a fairly simple solution, but may meet your needs without much tweaking. HTH, Tim Larry.Zappeterrini@SanchezProjects.com wrote: I just came up with a solution that utilizes enscript and Ghostscript. I initially tried to use the Windows ports of both of those programs, but I could not get them to work the way I wanted them to. So I installed the cygwin versions of both and all works well. Basically, I go from the .java file to a PDF formatted just as you describe below. I wrote a short shell script that invokes enscript to format the file into a PostScript document and then run those results trough Ghostscript to distill it into a PDF. It seems that Windows Explorer allows you to right-click on a selection of PDF files and print them in one fell swoop (through Acrobat maybe?). So far in the one day that I have been doing it this way, this has worked well for me. I have also found gvim to be quite useful in this endeavor. I can open all of the Java files that I want to print in one gvim session and utilize command mode to process all of them with the conversion script. This may be a bit of a roundabout way of accomplishing this task, but it is almost fully automated for me. Let me know if you would like more specific details about this process. Larry -----Original Message----- From: Hohlen, John C [mailto:John.C.Hohlen@erac.com] Sent: Friday, July 25, 2003 2:38 PM To: Struts-User (E-mail) Subject: [OT] Source Code Print Utility For Code Reviews? Anybody know of a good "free" print utility for generating hardcopies of Java source files for code reviews? Something that can print landscape, automatically print line numbers, etc. Ideally, I just like to be able put the utility in my "Send To" folder so I can print the file from Windows Explorer without having to open up the file. Thanks, JOHN --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org *************************************************************************** This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. *************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org