Package gluebooster.maven.io

Examples of gluebooster.maven.io.LoggingOutputStream


  @Test
  public void testWriting() throws IOException{
   

   
    LoggingOutputStream output = new LoggingOutputStream(new SystemStreamLog());
    OutputStreamWriter writer = new OutputStreamWriter(output);
   
    writer.write("starting\n");
    writer.write("[DEBUG] this is\nthe next\nline.\n");
View Full Code Here


         model.writeModelToXmlfile(file);
        
         //invoke validate on the pom
         String command = "cmd /c mvn --file \""+file.getCanonicalPath() + "\" validate";
         getLog().info(command);
         LoggingOutputStream output = new LoggingOutputStream(getLog());
         LoggingOutputStream error  = new LoggingOutputStream(getLog());
         Integer commandResult = DataTransfer.execCommand(command, output,  error, false);
        
         //delete the simplified pom
         getLog().info("deleting file: "+ file.delete());

         //handle and log errors
         if ((commandResult != null) && (commandResult != 0)){
          
          StringBuilder errors =  new StringBuilder(output.getErrors() + "\n" + error.getErrors());
         
          //handle error: Could not find stylesheet
          List<String> stylesheetList = StringBoostUtils.getTextBetween(errors.toString(),"Could not find stylesheet:", "->",false);
          if (! stylesheetList.isEmpty())
          {
View Full Code Here

TOP

Related Classes of gluebooster.maven.io.LoggingOutputStream

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.