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/14 22:54:23 UTC
Out of Heap Space
Hi,
I'm trying to compile a large number of java files and I keep getting this
error. Buildr is running the compile.with Class and failing.
/bin/bash> buildr
Building coredn
Compiling 2166 source files in coredn:interfaces:compile
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.code.Scope.<init>(Scope.java:87)
at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:932)
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:789)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:612)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:467)
at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:404)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:67)
rake aborted!
Failed to compile, see errors above
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: Out of Heap Space
Posted by Assaf Arkin <ar...@intalio.com>.
On 1/16/08, Gilles Scokart <gs...@gmail.com> wrote:
>
> 1 Gigabyte to compile something?? There is definitely something wrong.
> Isn't it?
That was me throwing a suggestion, I just set it to an insanely large number
once and forget about it :-)
Assaf
Gilles
>
> 2008/1/15, Neil Lott <ne...@twcable.com>:
> >
> > Hi Assaf,
> >
> > On the Mac at least I tried below and I kept getting an error:
> >
> > [neil@flicker.local build]$ export JAVA_OPTS=-Xms1g
> > [neil@flicker.local build]$ coredn
> > [neil@flicker.local coredn]$ buildr
> > (in
> >
> >
> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
> > /main/products/coredn)
> > Error occurred during initialization of VM
> > Incompatible initial and maximum heap sizes specified
> > Abort trap
> >
> > So I changed it to:
> >
> > [neil@flicker.local build]$ echo $JAVA_OPTS
> > -Xms1g -Xmx1g
> >
> > And it worked.
> >
> > Thanks.
> >
> > Neil
> >
> >
> > On 1/14/08 3:07 PM, "Assaf Arkin" <ar...@intalio.com> wrote:
> >
> > > On 1/14/08, Neil Lott <ne...@twcable.com> wrote:
> > >>
> > >> Hi,
> > >>
> > >> I'm trying to compile a large number of java files and I keep getting
> > this
> > >> error. Buildr is running the compile.with Class and failing.
> > >
> > >
> > > You can give the JVM more heap space by setting the JAVA_OPTS
> > environment
> > > variables. All these options are passed to the JVM, so something
> like:
> > >
> > > export JAVA_OPTS=-Xms1g
> > > buildr compile
> > >
> > > Assaf
> > >
> > >
> > >
> > > /bin/bash> buildr
> > >> Building coredn
> > >> Compiling 2166 source files in coredn:interfaces:compile
> > >>
> > >>
> > >> The system is out of resources.
> > >> Consult the following stack trace for details.
> > >> java.lang.OutOfMemoryError: Java heap space
> > >> at com.sun.tools.javac.code.Scope.<init>(Scope.java:87)
> > >> at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java
> > :932)
> > >> at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java
> > :789)
> > >> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
> > >> at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(
> Symbol.java
> > >> :612)
> > >> at com.sun.tools.javac.comp.Enter.complete(Enter.java:467)
> > >> at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
> > >> at com.sun.tools.javac.main.JavaCompiler.compile(
> JavaCompiler.java
> > >> :404)
> > >> at com.sun.tools.javac.main.Main.compile(Main.java:592)
> > >> at com.sun.tools.javac.main.Main.compile(Main.java:544)
> > >> at com.sun.tools.javac.Main.compile(Main.java:67)
> > >> rake aborted!
> > >> Failed to compile, see errors above
> > >>
> > >>
> > >> 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.
> >
> >
>
--
CTO, Intalio
http://www.intalio.com
Re: Out of Heap Space
Posted by Gilles Scokart <gs...@gmail.com>.
1 Gigabyte to compile something?? There is definitely something wrong.
Isn't it?
Gilles
2008/1/15, Neil Lott <ne...@twcable.com>:
>
> Hi Assaf,
>
> On the Mac at least I tried below and I kept getting an error:
>
> [neil@flicker.local build]$ export JAVA_OPTS=-Xms1g
> [neil@flicker.local build]$ coredn
> [neil@flicker.local coredn]$ buildr
> (in
>
> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
> /main/products/coredn)
> Error occurred during initialization of VM
> Incompatible initial and maximum heap sizes specified
> Abort trap
>
> So I changed it to:
>
> [neil@flicker.local build]$ echo $JAVA_OPTS
> -Xms1g -Xmx1g
>
> And it worked.
>
> Thanks.
>
> Neil
>
>
> On 1/14/08 3:07 PM, "Assaf Arkin" <ar...@intalio.com> wrote:
>
> > On 1/14/08, Neil Lott <ne...@twcable.com> wrote:
> >>
> >> Hi,
> >>
> >> I'm trying to compile a large number of java files and I keep getting
> this
> >> error. Buildr is running the compile.with Class and failing.
> >
> >
> > You can give the JVM more heap space by setting the JAVA_OPTS
> environment
> > variables. All these options are passed to the JVM, so something like:
> >
> > export JAVA_OPTS=-Xms1g
> > buildr compile
> >
> > Assaf
> >
> >
> >
> > /bin/bash> buildr
> >> Building coredn
> >> Compiling 2166 source files in coredn:interfaces:compile
> >>
> >>
> >> The system is out of resources.
> >> Consult the following stack trace for details.
> >> java.lang.OutOfMemoryError: Java heap space
> >> at com.sun.tools.javac.code.Scope.<init>(Scope.java:87)
> >> at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java
> :932)
> >> at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java
> :789)
> >> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
> >> at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java
> >> :612)
> >> at com.sun.tools.javac.comp.Enter.complete(Enter.java:467)
> >> at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
> >> at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java
> >> :404)
> >> at com.sun.tools.javac.main.Main.compile(Main.java:592)
> >> at com.sun.tools.javac.main.Main.compile(Main.java:544)
> >> at com.sun.tools.javac.Main.compile(Main.java:67)
> >> rake aborted!
> >> Failed to compile, see errors above
> >>
> >>
> >> 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.
>
>
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.
Ant
Posted by Neil Lott <ne...@twcable.com>.
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: TestNG
Posted by Neil Lott <ne...@twcable.com>.
Sure, I'm willing.
Thanks,
Neil
On 1/15/08 7:23 PM, "Assaf Arkin" <ar...@intalio.com> wrote:
> There's no support for group selection for TestNG in the code, doesn't look
> too complicated to add, if you're willing to give it a try.
>
> Assaf
>
> On 1/15/08, Neil Lott <ne...@twcable.com> wrote:
>>
>>
>> How do I specify only running certain test categories (a.k.a groups) via
>> TestNG?
>>
>> Right now I have groups of tests e.g. unit-test, integration-test,
>> functional-test
>>
>> Here's an example method in one of my test classes:
>>
>> public class WrapperTest
>> {
>>
>> @Test (groups = {"unit-test"})
>> public void Single() throws Exception
>> {
>>
>>
>> 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.
Re: TestNG
Posted by Assaf Arkin <ar...@intalio.com>.
There's no support for group selection for TestNG in the code, doesn't look
too complicated to add, if you're willing to give it a try.
Assaf
On 1/15/08, Neil Lott <ne...@twcable.com> wrote:
>
>
> How do I specify only running certain test categories (a.k.a groups) via
> TestNG?
>
> Right now I have groups of tests e.g. unit-test, integration-test,
> functional-test
>
> Here's an example method in one of my test classes:
>
> public class WrapperTest
> {
>
> @Test (groups = {"unit-test"})
> public void Single() throws Exception
> {
>
>
> 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.
>
>
--
CTO, Intalio
http://www.intalio.com
TestNG
Posted by Neil Lott <ne...@twcable.com>.
How do I specify only running certain test categories (a.k.a groups) via
TestNG?
Right now I have groups of tests e.g. unit-test, integration-test,
functional-test
Here's an example method in one of my test classes:
public class WrapperTest
{
@Test (groups = {"unit-test"})
public void Single() throws Exception
{
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: Out of Heap Space
Posted by Neil Lott <ne...@twcable.com>.
Hi Assaf,
On the Mac at least I tried below and I kept getting an error:
[neil@flicker.local build]$ export JAVA_OPTS=-Xms1g
[neil@flicker.local build]$ coredn
[neil@flicker.local coredn]$ buildr
(in
/Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
/main/products/coredn)
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified
Abort trap
So I changed it to:
[neil@flicker.local build]$ echo $JAVA_OPTS
-Xms1g -Xmx1g
And it worked.
Thanks.
Neil
On 1/14/08 3:07 PM, "Assaf Arkin" <ar...@intalio.com> wrote:
> On 1/14/08, Neil Lott <ne...@twcable.com> wrote:
>>
>> Hi,
>>
>> I'm trying to compile a large number of java files and I keep getting this
>> error. Buildr is running the compile.with Class and failing.
>
>
> You can give the JVM more heap space by setting the JAVA_OPTS environment
> variables. All these options are passed to the JVM, so something like:
>
> export JAVA_OPTS=-Xms1g
> buildr compile
>
> Assaf
>
>
>
> /bin/bash> buildr
>> Building coredn
>> Compiling 2166 source files in coredn:interfaces:compile
>>
>>
>> The system is out of resources.
>> Consult the following stack trace for details.
>> java.lang.OutOfMemoryError: Java heap space
>> at com.sun.tools.javac.code.Scope.<init>(Scope.java:87)
>> at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:932)
>> at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:789)
>> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
>> at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java
>> :612)
>> at com.sun.tools.javac.comp.Enter.complete(Enter.java:467)
>> at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
>> at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java
>> :404)
>> at com.sun.tools.javac.main.Main.compile(Main.java:592)
>> at com.sun.tools.javac.main.Main.compile(Main.java:544)
>> at com.sun.tools.javac.Main.compile(Main.java:67)
>> rake aborted!
>> Failed to compile, see errors above
>>
>>
>> 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.
Re: Out of Heap Space
Posted by Assaf Arkin <ar...@intalio.com>.
On 1/14/08, Neil Lott <ne...@twcable.com> wrote:
>
> Hi,
>
> I'm trying to compile a large number of java files and I keep getting this
> error. Buildr is running the compile.with Class and failing.
You can give the JVM more heap space by setting the JAVA_OPTS environment
variables. All these options are passed to the JVM, so something like:
export JAVA_OPTS=-Xms1g
buildr compile
Assaf
/bin/bash> buildr
> Building coredn
> Compiling 2166 source files in coredn:interfaces:compile
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError: Java heap space
> at com.sun.tools.javac.code.Scope.<init>(Scope.java:87)
> at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:932)
> at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:789)
> at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
> at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java
> :612)
> at com.sun.tools.javac.comp.Enter.complete(Enter.java:467)
> at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
> at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java
> :404)
> at com.sun.tools.javac.main.Main.compile(Main.java:592)
> at com.sun.tools.javac.main.Main.compile(Main.java:544)
> at com.sun.tools.javac.Main.compile(Main.java:67)
> rake aborted!
> Failed to compile, see errors above
>
>
> 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.
>
>
--
CTO, Intalio
http://www.intalio.com