Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cli
    • Labels:
      None
    • Environment:
      Windows 98
    • Number of attachments :
      4

      Description

      One of the options I find useful in Ant is '-logfile <filename>', which redirects the build's output to a given file. It would be nice if I could do the same with Maven; I've not had much success trying to use Win98's command line redirection or paging on Maven's output.

      1. AntProjectBuilder.java.patch
        6 kB
        Eric Hauser
      2. JellyBuildListener.java.patch
        1 kB
        Eric Hauser
      3. MAVEN126.patch
        11 kB
        Eric Hauser
      4. MavenConstants.java.patch
        0.8 kB
        Eric Hauser

        Issue Links

          Activity

          Hide
          Ben Walding added a comment -

          This looks to be a better report, and will ultimately encompass the maven-126 solution

          Show
          Ben Walding added a comment - This looks to be a better report, and will ultimately encompass the maven-126 solution
          Hide
          Eric Hauser added a comment -

          I've added a couple of quick patches that you could add to give Maven the ability to get more useful information from Ant. If you want to emulate Ant's verbose mode, add the following properties (if you're using Windows use org.apache.tools.ant.DefaultLogger instead):

          maven.build.listener = org.apache.tools.ant.listener.AnsiColorLogger
          maven.build.logger.level = 5

          This way Maven can now support verbose ant logging (which is a very important debugging feature). I'm willing to put some more work into the logging patches, but I wanted to try to get them in so this feature can make the 1.0 release and so I could get some feedback.

          Show
          Eric Hauser added a comment - I've added a couple of quick patches that you could add to give Maven the ability to get more useful information from Ant. If you want to emulate Ant's verbose mode, add the following properties (if you're using Windows use org.apache.tools.ant.DefaultLogger instead): maven.build.listener = org.apache.tools.ant.listener.AnsiColorLogger maven.build.logger.level = 5 This way Maven can now support verbose ant logging (which is a very important debugging feature). I'm willing to put some more work into the logging patches, but I wanted to try to get them in so this feature can make the 1.0 release and so I could get some feedback.
          Hide
          Eric Hauser added a comment -

          I cleaned up the earlier patches I submitted. It made more sense to me for these properties to be called maven.ant.listener and maven.ant.logger.level as not to confuse users that they were setting listeners for maven itself. I also updated the documentation for the new attributes.

          Show
          Eric Hauser added a comment - I cleaned up the earlier patches I submitted. It made more sense to me for these properties to be called maven.ant.listener and maven.ant.logger.level as not to confuse users that they were setting listeners for maven itself. I also updated the documentation for the new attributes.
          Hide
          Lukas Theussl added a comment -

          Arnaud: couldn't this patch be used to workaround our velocity problem, ie switching off the ant logging?

          Show
          Lukas Theussl added a comment - Arnaud: couldn't this patch be used to workaround our velocity problem, ie switching off the ant logging?
          Hide
          Arnaud Heritier added a comment -

          I didn't try. I'll try to find if we can configure the internal logging verbosity used in log4J.

          Show
          Arnaud Heritier added a comment - I didn't try. I'll try to find if we can configure the internal logging verbosity used in log4J.

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrew Stevens
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: