You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nu...@pop.ms on 2005/03/01 19:05:16 UTC

maven goals & 2 different log4j configs

Hello,

first: please ignore the Mail with the empty subject - sorry for that.

I have the following scenario:

I have CruiseControl (CC) building my project. In the CC configuration I call some maven goals:

[...]
<maven mavenscript="&MAVEN_SCRIPT;" 
    projectfile="/testproject/project.xml" 
    goal="clean 
          -Dmaven.build.dir=report_target
          |
          clover
          |
          site:deploy 
          -Dmaven.site.deploy.method=fs 
          -Dmaven.build.dir=report_target"
      />
[...]

Now I want to run the maven goals with different log4j properties but the following aproach doesn't work:

[...]
<maven mavenscript="&MAVEN_SCRIPT;" 
    projectfile="/testproject/project.xml" 
    goal="clean 
          -Dmaven.build.dir=report_target
          |
          clover
          -Dlog4j.configuration=/testproject/src/conf/log4j.fatal.properties
          |
          site:deploy 
          -Dmaven.site.deploy.method=fs 
          -Dmaven.build.dir=report_target
          -Dlog4j.configuration=/testproject/src/conf/log4j.debug.properties"
      />
[...]

Has anyone an idea why this isn't working? How can I get the 2 different log4j configs to work?  (For some reasons I have to run those goals on that place with the different property files)

thank you for your help, 

Volker


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org