You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2010/12/16 23:28:53 UTC

svn commit: r1050195 - in /axis/axis2/java/sandesha/trunk: modules/persistence/pom.xml modules/persistence/test-resources/log4j.properties modules/persistence/test.build.xml pom.xml

Author: veithen
Date: Thu Dec 16 22:28:53 2010
New Revision: 1050195

URL: http://svn.apache.org/viewvc?rev=1050195&view=rev
Log:
Avoid creating log files in source directories.

Modified:
    axis/axis2/java/sandesha/trunk/modules/persistence/pom.xml
    axis/axis2/java/sandesha/trunk/modules/persistence/test-resources/log4j.properties
    axis/axis2/java/sandesha/trunk/modules/persistence/test.build.xml
    axis/axis2/java/sandesha/trunk/pom.xml

Modified: axis/axis2/java/sandesha/trunk/modules/persistence/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/persistence/pom.xml?rev=1050195&r1=1050194&r2=1050195&view=diff
==============================================================================
--- axis/axis2/java/sandesha/trunk/modules/persistence/pom.xml (original)
+++ axis/axis2/java/sandesha/trunk/modules/persistence/pom.xml Thu Dec 16 22:28:53 2010
@@ -84,6 +84,12 @@
                     </includes>
                     <forkMode>pertest</forkMode>
                     <!--<argLine>-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</argLine>-->
+                    <systemProperties>
+                        <property>
+                            <name>derby.stream.error.file</name>
+                            <value>${project.build.directory}/derby.log</value>
+                        </property>
+                    </systemProperties>
                 </configuration>
             </plugin>
             <plugin>

Modified: axis/axis2/java/sandesha/trunk/modules/persistence/test-resources/log4j.properties
URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/persistence/test-resources/log4j.properties?rev=1050195&r1=1050194&r2=1050195&view=diff
==============================================================================
--- axis/axis2/java/sandesha/trunk/modules/persistence/test-resources/log4j.properties (original)
+++ axis/axis2/java/sandesha/trunk/modules/persistence/test-resources/log4j.properties Thu Dec 16 22:28:53 2010
@@ -28,7 +28,7 @@ log4j.appender.CONSOLE.layout.Conversion
 
 # LOGFILE is set to be a File appender using a PatternLayout.
 log4j.appender.LOGFILE=org.apache.log4j.FileAppender
-log4j.appender.LOGFILE.File=axis2.log
+log4j.appender.LOGFILE.File=target/axis2.log
 log4j.appender.LOGFILE.Append=true
 log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
 log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

Modified: axis/axis2/java/sandesha/trunk/modules/persistence/test.build.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/persistence/test.build.xml?rev=1050195&r1=1050194&r2=1050195&view=diff
==============================================================================
--- axis/axis2/java/sandesha/trunk/modules/persistence/test.build.xml (original)
+++ axis/axis2/java/sandesha/trunk/modules/persistence/test.build.xml Thu Dec 16 22:28:53 2010
@@ -30,6 +30,7 @@
     	<java fork="yes" classpathref="test.class.path" classname="org.apache.derby.tools.ij">
     	   <arg file="${basedir}/src/resources/ddl/sandesha2-derby.ddl" />
     	   <jvmarg value="-Dij.connection.wsrm=jdbc:derby:${derby.dir}/wsrm;create=true"/>
+     	   <jvmarg value="-Dderby.stream.error.file=${build.dir}/derby.log"/>
     	</java>
     </target>
 	<target name="persistence:create">

Modified: axis/axis2/java/sandesha/trunk/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/pom.xml?rev=1050195&r1=1050194&r2=1050195&view=diff
==============================================================================
--- axis/axis2/java/sandesha/trunk/pom.xml (original)
+++ axis/axis2/java/sandesha/trunk/pom.xml Thu Dec 16 22:28:53 2010
@@ -166,8 +166,6 @@
                         <configuration>
                             <excludes>
                                 <exclude>dependency-reduced-pom.xml</exclude>
-                                <!-- TODO: this should not be necessary; it is a bad practice to generate log files in source directories -->
-                                <exclude>*.log</exclude>
                             </excludes>
                         </configuration> 
                     </execution>