From owner-freebsd-java@FreeBSD.ORG Mon Mar 19 19:32:44 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF605106564A for ; Mon, 19 Mar 2012 19:32:44 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 965CE8FC14 for ; Mon, 19 Mar 2012 19:32:44 +0000 (UTC) Received: by dald2 with SMTP id d2so11165163dal.13 for ; Mon, 19 Mar 2012 12:32:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :organization:x-living-the-dream:x-pgp-fingerprint:x-pgp-key :user-agent:x-gm-message-state; bh=1KM5JCc2XmPwlTIvQDnmXfwf2YEABPuBJV6f/c8T0eU=; b=Ao9ZXhAVEBCvt9+5FztlcjnRTOmQP3YiCr+kycHIE0wixP3nHFOdKy6OsGdFOGWgSj dujzHt72oJjY2mbB9DNxS47wd5PA1vR0CVD1LJ7KsT6qijkI/1q7GsNDKWq1XrG8NJZC gYl3JYMlLxXwRK82CbokgtaniR5EqCVvx7RNzqsMghF9et5Xb0piu4s1VKWsDtI5yaNy GYYjZ5gu99x4Tgj6Q4uyAMVoIadbRWImDxTeuiEQYSmJfOMdFpjcYSDFo4iXmVe+V2/O sDy/1Ao/QnGDlP4Y5F3nNyxqgaib52R5xr2C0mmgOBkLnHpXab2WzHU1klnmMu+fS4mt NKVw== Received: by 10.68.72.138 with SMTP id d10mr40835016pbv.15.1332185564354; Mon, 19 Mar 2012 12:32:44 -0700 (PDT) Received: from dormouse.experts-exchange.com ([72.29.164.238]) by mx.google.com with ESMTPS id 3sm9038675pbf.47.2012.03.19.12.32.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Mar 2012 12:32:43 -0700 (PDT) Sender: Jason Helfman Date: Mon, 19 Mar 2012 12:31:52 -0700 From: Jason Helfman To: Greg Lewis Message-ID: <20120319193152.GD46825@dormouse.experts-exchange.com> References: <20120318180225.GA51618@dormouse.experts-exchange.com> <20120319155752.GA78240@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20120319155752.GA78240@misty.eyesbeyond.com> X-Operating-System: FreeBSD 8.2-RELEASE amd64 Organization: The FreeBSD Project, http://www.freebsd.org X-Living-The-Dream: I love the SLO Life! X-PGP-FingerPrint: 8E0D C457 9A0F C91C 23F3 0454 2059 9A63 4150 D3DC X-PGP-Key: http://people.freebsd.org/~jgh/jgh.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmF63dPWaA43slot1ihLJLkFrWg3KQPM/D84TwmmoPclgkvDmX4609ljMLcU2xvYJAHaL9r Cc: freebsd-eclipse@freebsd.org, freebsd-java@freebsd.org Subject: Re: [RFC] New Port: Eclipse Java Compiler, java/eclipse-ecj X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 19:32:45 -0000 On Mon, Mar 19, 2012 at 08:57:52AM -0700, Greg Lewis thus spake: >G'day Jason, > >On Sun, Mar 18, 2012 at 11:02:25AM -0700, Jason Helfman wrote: >> Hello All, >> >> I was looking through this pr: >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/151923 >> >> And saw the final idea was to just build icedtea. I found one of the build >> requirements to be the the Eclipse Java Compiler, but didn't find this in >> the tree. >> >> I've used the ecj.jar for sometime now compiling outside of the Eclipse >> environment, and thought it would be a good idea to get this into the tree, >> if it isn't already there. >> >> I didn't see the compiler in the tree, and thought it could help in getting >> a final solution together for not just this pr, but I believe it would move >> along some other efforts, as well. >> >> If this does nothing at all, I would hope it just provides the bare minimum >> compiler. >> >> Attached is the shell archive of Eclipse Java Compiler. If there are no >> objections I was going to put this into the tree this week. > >I'd like to see ECJ in the ports tree. > >One question on the port. It looks like it only installs ecj.jar. >Wouldn't it also be useful to install a script to run it? I can certainly >manually type 'java -jar /usr/local/share/java/classes/ecj.jar -classpath >rt.jar Foo.java', but it would be simpler if there was an ecj script that >maybe just let me do 'ecj Foo.java'. Is there a good reason not to write >such a script? I can't see of a reason to have that, however I can see a reason to at least have a package message to that affect. I'm not sure how to account for an unknown amount of arguments in a shell script, unless there is only ever going to be one argument? If the latter is the case, then including a shell script would be nice. How does this work? #!/bin/sh %%JAVA%% -jar %%JAVAJARDIR%%/%%PORTNAME%%.jar -classpath $1 Thanks! -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh