You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Neil Lott <ne...@twcable.com> on 2008/01/16 17:02:57 UTC

Ant

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?

                <javadoc classpath="@{panopticodeDir}/panopticode.jar"
                         sourcepath="@{srcDir}"
                         access="private">
                  <fileset dir="@{srcDir}" />
                  <doclet name="org.panopticode.doclet.PanopticodeDoclet"
                          path="@{panopticodeDir}/panopticode.jar">
                    <param name="-debug" value="true" />
                    <param name="-projectName" value="@{projectName}" />
                    <param name="-projectVersion" value="@{projectVersion}"
/>
                    <param name="-outputFile"
value="@{outputDir}/panopticode.xml" />
                  </doclet>
                </javadoc>

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.


Re: Ant

Posted by Victor Hugo Borja <vi...@gmail.com>.
  ant("panopticode") do |ant|
   ant.echo :message=>"Lanuching Panopticode"
   ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
:access=>"private" do   # <<= nested elements go in blocks
     ant.fileset :dir=>"source", :includes=>"**/*.java" # fileset is nested
in javadoc
   end
 end


On Jan 16, 2008 11:42 AM, Neil Lott <ne...@twcable.com> wrote:

> Thanks.  I tried what you wrote but I keep getting syntax errors with
> regard
> to the end.  So I went back to basics
>
> The following gives no syntax errors
>
>  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
>    ant.echo :message=>"Lanuching Panopticode"
>    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
> :access=>"private"
>  end
>
> However as soon as I try a nested tag in the javadoc I get errors:
>
>  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
>    ant.echo :message=>"Lanuching Panopticode"
>    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
> :access=>"private"
>      ant.fileset :dir=>"source", :includes=>"**/*.java"
>  end
>
> Or even
>
>  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
>    ant.echo :message=>"Lanuching Panopticode"
>    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
> :access=>"private"
>      ant.fileset :dir=>"source", :includes=>"**/*.java"
>    end
>  end
>
> Or
>
>  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
>    ant.echo :message=>"Lanuching Panopticode"
>    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
> :access=>"private" {
>      ant.fileset :dir=>"source", :includes=>"**/*.java"
>    }
>  end
>
>
>
>
>
> On 1/16/08 9:30 AM, "Victor Hugo Borja" <vi...@gmail.com> 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 <vi...@gmail.com> 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?
> >>>>
> >>>>                 <javadoc
> classpath="@{panopticodeDir}/panopticode.jar"
> >>>
> >>>>                          sourcepath="@{srcDir}"
> >>>>                          access="private">
> >>>>                   <fileset dir="@{srcDir}" />
> >>>>                   <doclet name="
> >>> org.panopticode.doclet.PanopticodeDoclet"
> >>>>                           path="@{panopticodeDir}/panopticode.jar">
> >>>>                     <param name="-debug" value="true" />
> >>>>                     <param name="-projectName" value="@{projectName}"
> >>> />
> >>>>                     <param name="-projectVersion"
> >>> value="@{projectVersion}"
> >>>> />
> >>>>                     <param name="-outputFile"
> >>>> value="@{outputDir}/panopticode.xml" />
> >>>>                   </doclet>
> >>>>                 </javadoc>
> >>>>
> >>>> 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.
>
>


-- 
Quaerendo invenietis.

Re: Ant

Posted by Assaf Arkin <ar...@intalio.com>.
On 1/16/08, Neil Lott <ne...@twcable.com> wrote:
>
> 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


The nice thing about AntWrap is that it uses the same block structure as the
XML definition, the do/end are the equivalent of opening/closing tags.

Assaf

Re: Ant

Posted by Neil Lott <ne...@twcable.com>.
Thanks.  I tried what you wrote but I keep getting syntax errors with regard
to the end.  So I went back to basics

The following gives no syntax errors

  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
    ant.echo :message=>"Lanuching Panopticode"
    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
:access=>"private" 
  end

However as soon as I try a nested tag in the javadoc I get errors:

  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
    ant.echo :message=>"Lanuching Panopticode"
    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
:access=>"private" 
      ant.fileset :dir=>"source", :includes=>"**/*.java"
  end

Or even

  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
    ant.echo :message=>"Lanuching Panopticode"
    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
:access=>"private" 
      ant.fileset :dir=>"source", :includes=>"**/*.java"
    end
  end

Or

  ant("panopticode") do |ant| # <<- yield the ant wrapper IIRC
    ant.echo :message=>"Lanuching Panopticode"
    ant.javadoc :classpath=>artifact(PANOPTICODE), :sourcepath=>"source",
:access=>"private" {
      ant.fileset :dir=>"source", :includes=>"**/*.java"
    }
  end





On 1/16/08 9:30 AM, "Victor Hugo Borja" <vi...@gmail.com> 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 <vi...@gmail.com> 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?
>>>> 
>>>>                 <javadoc classpath="@{panopticodeDir}/panopticode.jar"
>>> 
>>>>                          sourcepath="@{srcDir}"
>>>>                          access="private">
>>>>                   <fileset dir="@{srcDir}" />
>>>>                   <doclet name="
>>> org.panopticode.doclet.PanopticodeDoclet"
>>>>                           path="@{panopticodeDir}/panopticode.jar">
>>>>                     <param name="-debug" value="true" />
>>>>                     <param name="-projectName" value="@{projectName}"
>>> />
>>>>                     <param name="-projectVersion"
>>> value="@{projectVersion}"
>>>> />
>>>>                     <param name="-outputFile"
>>>> value="@{outputDir}/panopticode.xml" />
>>>>                   </doclet>
>>>>                 </javadoc>
>>>> 
>>>> 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.


Re: Ant

Posted by Neil Lott <ne...@twcable.com>.
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" <vi...@gmail.com> 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 <vi...@gmail.com> 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?
>>>> 
>>>>                 <javadoc classpath="@{panopticodeDir}/panopticode.jar"
>>> 
>>>>                          sourcepath="@{srcDir}"
>>>>                          access="private">
>>>>                   <fileset dir="@{srcDir}" />
>>>>                   <doclet name="
>>> org.panopticode.doclet.PanopticodeDoclet"
>>>>                           path="@{panopticodeDir}/panopticode.jar">
>>>>                     <param name="-debug" value="true" />
>>>>                     <param name="-projectName" value="@{projectName}"
>>> />
>>>>                     <param name="-projectVersion"
>>> value="@{projectVersion}"
>>>> />
>>>>                     <param name="-outputFile"
>>>> value="@{outputDir}/panopticode.xml" />
>>>>                   </doclet>
>>>>                 </javadoc>
>>>> 
>>>> 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.


Re: Ant

Posted by Victor Hugo Borja <vi...@gmail.com>.
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 <vi...@gmail.com> 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?
> > >
> > >                 <javadoc classpath="@{panopticodeDir}/panopticode.jar"
> >
> > >                          sourcepath="@{srcDir}"
> > >                          access="private">
> > >                   <fileset dir="@{srcDir}" />
> > >                   <doclet name="
> > org.panopticode.doclet.PanopticodeDoclet"
> > >                           path="@{panopticodeDir}/panopticode.jar">
> > >                     <param name="-debug" value="true" />
> > >                     <param name="-projectName" value="@{projectName}"
> > />
> > >                     <param name="-projectVersion"
> > value="@{projectVersion}"
> > > />
> > >                     <param name="-outputFile"
> > > value="@{outputDir}/panopticode.xml" />
> > >                   </doclet>
> > >                 </javadoc>
> > >
> > > 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.




-- 
Quaerendo invenietis.

Re: Ant

Posted by Victor Hugo Borja <vi...@gmail.com>.
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 <ne...@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" <ne...@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?
> >
> >                 <javadoc classpath="@{panopticodeDir}/panopticode.jar"
> >                          sourcepath="@{srcDir}"
> >                          access="private">
> >                   <fileset dir="@{srcDir}" />
> >                   <doclet name="org.panopticode.doclet.PanopticodeDoclet
> "
> >                           path="@{panopticodeDir}/panopticode.jar">
> >                     <param name="-debug" value="true" />
> >                     <param name="-projectName" value="@{projectName}" />
> >                     <param name="-projectVersion"
> value="@{projectVersion}"
> > />
> >                     <param name="-outputFile"
> > value="@{outputDir}/panopticode.xml" />
> >                   </doclet>
> >                 </javadoc>
> >
> > 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.

Re: Ant

Posted by "Lott, Neil" <ne...@twcable.com>.
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" <ne...@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?
> 
>                 <javadoc classpath="@{panopticodeDir}/panopticode.jar"
>                          sourcepath="@{srcDir}"
>                          access="private">
>                   <fileset dir="@{srcDir}" />
>                   <doclet name="org.panopticode.doclet.PanopticodeDoclet"
>                           path="@{panopticodeDir}/panopticode.jar">
>                     <param name="-debug" value="true" />
>                     <param name="-projectName" value="@{projectName}" />
>                     <param name="-projectVersion" value="@{projectVersion}"
> />
>                     <param name="-outputFile"
> value="@{outputDir}/panopticode.xml" />
>                   </doclet>
>                 </javadoc>
> 
> 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.