Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 78809 invoked by uid 500); 14 Sep 2001 03:12:19 -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 78799 invoked from network); 14 Sep 2001 03:12:18 -0000 X-pair-Authenticated: 65.166.147.200 Message-Id: <5.1.0.14.0.20010913200928.03d16910@mail.pagesmiths.com> X-Sender: pagesmth@mail.pagesmiths.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 13 Sep 2001 20:11:00 -0700 To: ant-user@jakarta.apache.org From: Jim White Subject: Re: How to javac *only* the .java file I am currently editting? In-Reply-To: <3BA171FB.36190266@zeegee.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_30359593==_" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=====================_30359593==_ Content-Type: text/plain; charset="us-ascii"; format=flowed It is done thusly: Invoke with: ant -Dfile=blah.blah.java jim At 10:57 PM 9/13/2001 -0400, Eryq wrote: >Conor MacNeill wrote: > > > It cannot be done unless you are prepared to put support for this into > the buildfile. Typically this could be accomodated by having a new > target, which is only run if a property is defined. That property would > be set to the file name to be compiled and would be used to adjust the > include pattern for javac. The normal compile target would set this > pattern to compile all files. You would then need to configure emacs to > ask for the special target and pass the property specifiying the file to > be compiled. > > >Ummm... given that "make" has had pattern-based targets >for *decades*, doesn't this strike you as kind of a glaring >omission for a tool that seeks to replace "make", and >whose documentation talks about "make"'s shortcomings? > >If I'm using an editor to edit a single file, >the most typical action is to rebuild the thing I'm editting, >particularly in the rapid compile-oops_a_typo-edit-recompile >loop. The second-most-typical action is to rebuild all >files in that same directory. Rebuilding the world >comes in third because it takes so darn long. > >I don't mind having to tell "ant" something like: > > ant compile -class com.zeegee.Foo.class > >but not having this be part of the core functionality >is irritating from a developer standpoint. > >Is there any plan to add pattern-based targets to >"ant", along the lines of make's typical "here's >how to build a target which looks like X"? > >Eryq ---------------------------------------------------------------- James P. White Netscape DevEdge Champion for IFC IFC Exchange * Insanely great Java * http://www.ifcx.org jim@pagesmiths.com Pagesmiths' home is http://www.pagesmiths.com --=====================_30359593==_ Content-Type: application/xml; name="build.xml" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="build.xml" PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxwcm9qZWN0IG5hbWU9ImphdmFjIiBkZWZhdWx0PSJjb21w aWxlIiBiYXNlZGlyPSIuIj4KICAgPHByb3BlcnR5IGZpbGU9ImJ1aWxkLnByb3BlcnRpZXMiIC8+ CiAgIAogICA8cHJvcGVydHkgbmFtZT0ic3JjIiB2YWx1ZT0iJHtiYXNlZGlyfSIvPgogICA8cHJv cGVydHkgbmFtZT0iYnVpbGQuY2xhc3NlcyIgdmFsdWU9IiR7YmFzZWRpcn0vYnVpbGQvY2xhc3Nl cyIvPgogICA8cHJvcGVydHkgbmFtZT0iYnVpbGQuZGVidWciIHZhbHVlPSJvZmYiLz4KICAgPHBy b3BlcnR5IG5hbWU9ImJ1aWxkLm9wdGltaXplIiB2YWx1ZT0ib2ZmIi8+CiAgIAogICA8dGFyZ2V0 IG5hbWU9InByZXBhcmUiPgogICAgICA8bWtkaXIgZGlyPSIke2J1aWxkLmNsYXNzZXN9IiAvPgog ICA8L3RhcmdldD4KICAgCiAgIDx0YXJnZXQgbmFtZT0iY29tcGlsZSIgZGVwZW5kcz0icHJlcGFy ZSI+CiAgICAgIDxqYXZhYyBzcmNkaXI9IiR7c3JjfSIKICAgICAgICAgICAgIGRlc3RkaXI9IiR7 YnVpbGQuY2xhc3Nlc30iCiAgICAgICAgICAgICBkZWJ1Zz0iJHtidWlsZC5kZWJ1Z30iIG9wdGlt aXplPSIke2J1aWxkLm9wdGltaXplfSI+CiAgICAgICAgIDxpbmNsdWRlIG5hbWU9IiR7ZmlsZX0i Lz4KICAgICAgPC9qYXZhYz4KICAgPC90YXJnZXQ+CjwvcHJvamVjdD4K --=====================_30359593==_--