Permalink
Browse files

Added the bean list in a simplified format for non-html targets.

  • Loading branch information...
nawroth committed May 25, 2012
1 parent bd3a233 commit 051049d4a41e94dc2b1b83304c0e5975eaeb3a57
Showing with 15 additions and 2 deletions.
  1. +15 −2 ha/src/test/java/jmx/JmxDocsTest.java
@@ -101,8 +101,11 @@ public static void stopDb() throws Exception
@Test
public void dumpJmxInfo() throws Exception
{
- StringBuilder beanList = new StringBuilder( 2048 );
+ StringBuilder beanList = new StringBuilder( 4096 );
+ StringBuilder altBeanList = new StringBuilder( 2048 );
+ altBeanList.append( "ifdef::nonhtmloutput[]\n" );
beanList.append( "[[jmx-list]]\n" + ".MBeans exposed by Neo4j\n"
+ + "ifndef::nonhtmloutput[]\n"
+ "[options=\"header\", cols=\"m,\"]\n" + "|===\n"
+ "|Name|Description\n" );
@@ -161,9 +164,19 @@ public void dumpJmxInfo() throws Exception
.append( description )
.append( '\n' );
+ altBeanList.append( "* <<" )
+ .append( id )
+ .append( ',' )
+ .append( name )
+ .append( ">>: " )
+ .append( description )
+ .append( '\n' );
+
writeDetailsToFile( id, objectName, bean, info, description );
}
- beanList.append( "|===\n" );
+ beanList.append( "|===\n" + "endif::nonhtmloutput[]\n" );
+ altBeanList.append( "endif::nonhtmloutput[]\n\n" );
+ beanList.append( altBeanList.toString() );
Writer fw = null;
try
{

0 comments on commit 051049d

Please sign in to comment.