Package org.jostraca.util

Examples of org.jostraca.util.UserMessageHandler


  }



  public void testMessages() {
    UserMessageHandler umh = new CommandLineUserMessageHandler();
    umh.add( UserMessageHandler.DEBUG, "debug01" );
    umh.debug( "debug02" );

    umh.setThreshold( UserMessageHandler.INFO );
    umh.add( UserMessageHandler.DEBUG, "debug03 FAIL" );

    umh.debug( "debug04 FAIL" );
    umh.info"info01" );
    umh.warn"warn01" );
    umh.error( "error01" );
    umh.fatal( "fatal01" );

    umh.info( "foo:", "bar" );
    umh.info( "foofoo:", "bar" );
  }
View Full Code Here


    props.set( Property.main_OutputFolder,      iDependsFolder );
    props.set( Property.main_WorkFolder,        iDependsFolder );
    props.set( Property.main_CodeWriterOptions, pOptions );
    s.addPropertySet( Service.CONF_cmdline, props );

    UserMessageHandler umh = new CommandLineUserMessageHandler();
    umh.setThreshold( umh.DEBUG );
    s.setUserMessageHandler( umh );
    s.build();
  }
View Full Code Here

      throw new BuildException("template must be specified");
    }

    try {
      // need a UMH for Ant
      UserMessageHandler umh   = new CommandLineUserMessageHandler();

      if( getVerbose() ) {
        umh.setThreshold( UserMessageHandler.DEBUG );
      }
      else {
        umh.setThreshold( UserMessageHandler.INFO );
      }

      if( getQuiet() ) {
        umh.setThreshold( UserMessageHandler.WARN );
      }

      PropertySet cmdps = makeCmdPropertySet();

      // attribute trackFile overrides property jostraca.TrackFile
View Full Code Here

TOP

Related Classes of org.jostraca.util.UserMessageHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.