Menu

#1 disabling AntProf

open
nobody
5
2003-10-10
2003-10-10
Anonymous
No

Dear Kevin,

thank you for your effort. It is a very useful task.

I would change some of my ant scripts, but I need to
avoid replicating each call. So it would be nice to have
an option to disable hprof.

I suggest to add an attribute, e.g. "disabled", with the
following behaviour.

If disabled="yes" then the task hprof simply call the
underlying java without the -hprof option.

If disabled="no" (which should be the default) then the
behaviour is the one you have already specified and
implemented.

<target name="profile">
<hprof disabled="yes">
<java
classpathref="class.path"
classname="your.Application" />
</hprof>
</target>

should be equivalent to

<target name="profile">
<java
classpathref="class.path"
classname="your.Application" />
</target>

Best regards

Antonio Capani
capani at nibbles.it

Discussion


Log in to post a comment.