[
http://issues.ops4j.org/browse/PAXEXAM-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12269#action_12269
]
Alin Dreghiciu commented on PAXEXAM-39:
---------------------------------------
You can use the new option implemented by PAXEXAM-59:
{code}
@Configuration
public static Option[] configureWhenUserHomeIsNotSet()
{
return options(
when( Boolean.getBoolean( "isDebugEnabled" )).useOptions(
vmOption(
"-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" ),
timeout( 0 )
)
);
}
{code}
> Allow the setting of debug (on/off) from maven runtime options
> --------------------------------------------------------------
>
> Key: PAXEXAM-39
> URL: http://issues.ops4j.org/browse/PAXEXAM-39
> Project: Pax Exam
> Issue Type: New Feature
> Reporter: David Leangen
> Assignee: Alin Dreghiciu
>
> Description as posted on mailing list:
> Just wondering,
> Was looking at the debugging support options, which is very cool.
> In pax-exam, is there a built-in way to enable/disable debugging based
> on a maven option?
> For example, what about having an "isDebugEnabled" option that
> defaults to false. Then, in a profile or as a command-line option, the
> user can run:
> mvn clean install -DisDebugEnabled=true
> Which would cause the debugging options to be applied (and hence to
> start the debugger). Otherwise, debugging options would not apply.
> The reason is that I do as the tutorial suggests, which is to set
> timeout to 0, which I think is a good idea. If I didn't intend to
> actually do debugging, then this blocks the build process and can
> cause confusion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general