Hi Scott

Scott Brickner <[EMAIL PROTECTED]> writes:

> Maven is littering my project folders with maven.log files, none of
> which say anything useful (just info on the running time). Is there
> some officially supported way for me to make it put that log
> somewhere else?  Or to suppress it entirely when things are running
> fine?

I don't think so.  In the past, I've solved this in two ways:

1. Write a custom 'clean' [pre|post]goal (either in maven.xml or a
shared plugin) something like this:

  <goal name="realclean"
    <attainGoal name="clean"/>
    <delete quiet="true">
      <fileset dir="${basedir}" includes="**/*~,**/*.log" defaultexcludes="no"/>
    </delete>
  </goal>

2. Modify the log4j.properties file inside ${MAVEN_HOME}/lib/maven.jar

The latter option would enable you to fully-qualify the path of the
log file to put it "somewhere else".

Jim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to