Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 84924 invoked from network); 16 Jan 2008 18:02:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2008 18:02:36 -0000 Received: (qmail 35994 invoked by uid 500); 16 Jan 2008 18:02:26 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 35984 invoked by uid 500); 16 Jan 2008 18:02:26 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 35975 invoked by uid 99); 16 Jan 2008 18:02:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 10:02:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of neil.lott@twcable.com designates 204.235.121.149 as permitted sender) Received: from [204.235.121.149] (HELO pblpas01.twcable.com) (204.235.121.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 18:02:14 +0000 X-SENDER-IP: 10.157.247.211 X-SENDER-REPUTATION: None X-IronPort-AV: E=Sophos;i="4.24,295,1196658000"; d="scan'208";a="143438105" Received: from unknown (HELO prvpmailconn1.corp.twcable.com) ([10.157.247.211]) by pblpas01.twcable.com with ESMTP; 16 Jan 2008 13:02:06 -0500 Received: from PRVPVSMAIL07.corp.twcable.com ([10.157.247.204]) by prvpmailconn1.corp.twcable.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Jan 2008 13:02:06 -0500 Received: from 10.143.8.83 ([10.143.8.83]) by PRVPVSMAIL07.corp.twcable.com ([10.157.247.205]) via Exchange Front-End Server webmail.twcable.com ([10.157.247.219]) with Microsoft Exchange Server HTTP-DAV ; Wed, 16 Jan 2008 18:01:38 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Wed, 16 Jan 2008 11:01:37 -0700 Subject: Re: Ant From: Neil Lott To: Message-ID: Thread-Topic: Ant Thread-Index: AchYadZJFMtc5sRdEdyx6AAbY7hAYA== In-Reply-To: <53466cf0801160830g6c4d1a86m4d7d9867b49cebab@mail.gmail.com> Mime-version: 1.0 X-OriginalArrivalTime: 16 Jan 2008 18:02:06.0306 (UTC) FILETIME=[E7C11420:01C85869] Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org Ok I think I understand now, the fileset needs an end as well. I'm still learning basic ruby :) task :panopticode do ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC ant.echo :message=>"Lanuching Panopticode" ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"interfaces/src", :access=>"private" do ant.fileset :dir=>"interfaces/src", :includes=>"**/*.java" end end end On 1/16/08 9:30 AM, "Victor Hugo Borja" wrote: > Err, each ant tag must be instantiated as a call to the yielded "ant" > object, see ant.param, ant.doclet > > task :panopticodeDoclet do > ant("panopticodedoclet") do |ant| # <<- yield the ant wrapper IIRC > ant.javadoc :classpath=>artifact(PANOPTICODE), > :sourcepath=>source,access=>"private" > ant.fileset :dir=>source, :includes=>"**/*.java" > ant.doclet :name=>"org.panopticode.doclet.PanopticodeDoclet", > :path=>artifact(PANOPTICODE) > ant.param :name=>"-debug", :value=>"true" > ant.param :name=>"-projectName", :value=>"coredn" > ant.param :name=>"-projectVersion", :value=>VERSION > ant.param :name=>"-outputFile", :value=>" panopticode.xml" > end > end > end > > > On Jan 16, 2008 10:28 AM, Victor Hugo Borja wrote: > >> You mostly get it, :D >> The ant method yield an ant wrapper, so you execute ant("something") only >> once, kindof builder does for xml. >> >> task :panopticodeDoclet do >> ant("panopticodedoclet") do |ant| # <<- yield the ant wrapper IIRC >> ant.javadoc :classpath=>artifact(PANOPTICODE), >> :sourcepath=>source,access=>"private" >> fileset :dir=>source, :includes=>"**/*.java" >> doclet :name=>"org.panopticode.doclet.PanopticodeDoclet", >> :path=>artifact(PANOPTICODE) >> param :name=>"-debug", :value=>"true" >> param :name=>"-projectName", :value=>"coredn" >> param :name=>"-projectVersion", :value=>VERSION >> param :name=>"-outputFile", :value=>" panopticode.xml" >> end >> end >> end >> >> >> There's a javadoc task already in buildr, see Java::Commands.javadoc, you >> may also want to take a look at it. >> >> >> On Jan 16, 2008 10:18 AM, Lott, Neil < neil.lott@twcable.com> wrote: >> >>> This is as far as I got so far, I'm still trying to understand how >>> antwrap >>> works and buildr wraps antwrap. >>> >>> task :panopticodeDoclet do >>> ant("panopticodedoclet") do |javadoc| >>> ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>source, >>> access=>"private" >>> fileset :dir=>source, :includes=>"**/*.java" >>> doclet :name=>"org.panopticode.doclet.PanopticodeDoclet", >>> :path=>artifact(PANOPTICODE) >>> param :name=>"-debug", :value=>"true" >>> param :name=>"-projectName", :value=>"coredn" >>> param :name=>"-projectVersion", :value=>VERSION >>> param :name=>"-outputFile", :value=>"panopticode.xml" >>> end >>> end >>> end >>> >>> >>> On 1/16/08 9:02 AM, "Neil Lott" < neil.lott@twcable.com> wrote: >>> >>>> I'd like to use panopticode with Buildr so I'm looking to the >>> following: >>>> >>>> How would I convert this into an Buildr Ant call? >>>> >>>> >> >>>> sourcepath="@{srcDir}" >>>> access="private"> >>>> >>>> >>> path="@{panopticodeDir}/panopticode.jar"> >>>> >>>> >> /> >>>> >> value="@{projectVersion}" >>>> /> >>>> >>> value="@{outputDir}/panopticode.xml" /> >>>> >>>> >>>> >>>> Neil >>>> >>>> This E-mail and any of its attachments may contain Time Warner >>>> Cable proprietary information, which is privileged, confidential, >>>> or subject to copyright belonging to Time Warner Cable. This E-mail >>>> is intended solely for the use of the individual or entity to which >>>> it is addressed. If you are not the intended recipient of this >>>> E-mail, you are hereby notified that any dissemination, >>>> distribution, copying, or action taken in relation to the contents >>>> of and attachments to this E-mail is strictly prohibited and may be >>>> unlawful. If you have received this E-mail in error, please notify >>>> the sender immediately and permanently delete the original and any >>>> copy of this E-mail and any printout. >>>> >>> >>> This E-mail and any of its attachments may contain Time Warner >>> Cable proprietary information, which is privileged, confidential, >>> or subject to copyright belonging to Time Warner Cable. This E-mail >>> is intended solely for the use of the individual or entity to which >>> it is addressed. If you are not the intended recipient of this >>> E-mail, you are hereby notified that any dissemination, >>> distribution, copying, or action taken in relation to the contents >>> of and attachments to this E-mail is strictly prohibited and may be >>> unlawful. If you have received this E-mail in error, please notify >>> the sender immediately and permanently delete the original and any >>> copy of this E-mail and any printout. >>> >>> >> >> >> -- >> Quaerendo invenietis. > > > This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.