Author: saminda
Date: Tue Jan 17 03:35:14 2006
New Revision: 369756

URL: http://svn.apache.org/viewcvs?rev=369756&view=rev
Log:
Added log4j.properties. Default you will not see log information. If need to 
see log info uncomment the line 
log4j.category.org.apache.synapse=DEBUG and take a build. Output will be 
avaliable at synapse.log. 
Updated maven.xml and project.xml 

Added:
    incubator/synapse/trunk/java/log4j.properties
Modified:
    incubator/synapse/trunk/java/maven.xml
    incubator/synapse/trunk/java/project.xml

Added: incubator/synapse/trunk/java/log4j.properties
URL: 
http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/log4j.properties?rev=369756&view=auto
==============================================================================
--- incubator/synapse/trunk/java/log4j.properties (added)
+++ incubator/synapse/trunk/java/log4j.properties Tue Jan 17 03:35:14 2006
@@ -0,0 +1,24 @@
+log4j.rootCategory=ERROR,logfile,stdout
+
+# Set the level to DEBUG if you want to log all SlideExceptions (some of them 
aren't errors)
+#log4j.category.org.apache.axis2=INFO
+#log4j.category.org.apache.synapse=DEBUG
+
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+log4j.appender.stdout.layout.ConversionPattern=[%t] %-5p %-20c{2} - %m %n
+
+####  appender writes to a file
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=synapse.log
+
+
+# Control the maximum log file size
+log4j.appender.logfile.MaxFileSize=1000KB
+# Archive log files (one backup file here)
+log4j.appender.logfile.MaxBackupIndex=10
+
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%6r %5p [%t] (%F:%L) - %m%n
\ No newline at end of file

Modified: incubator/synapse/trunk/java/maven.xml
URL: 
http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/maven.xml?rev=369756&r1=369755&r2=369756&view=diff
==============================================================================
--- incubator/synapse/trunk/java/maven.xml (original)
+++ incubator/synapse/trunk/java/maven.xml Tue Jan 17 03:35:14 2006
@@ -250,7 +250,6 @@
         <ant:delete file="target/synapse.aar"/>
         <ant:delete dir="target/sample-deprecation"/>
         <ant:delete file="target/DeprecationMediator.aar"/>
-        <ant:delete dir="target/samples"/>
 
         <ant:path id="classes_test.dir" location="${class_test.dir}"/>
         <maven:addPath id="maven.dependency.classpath" 
refid="classes_test.dir"/>
@@ -265,30 +264,23 @@
         <mkdir dir="${samples.dir}/samples/deprecation_mediator/src"/>
         <ant:copy todir="${samples.dir}/userguide/src">
             <ant:fileset dir="src">
-                <ant:include name="samples/**"/>
+                <ant:include name="**/userguide/**"/>
             </ant:fileset>
         </ant:copy>
         <ant:copy todir="${samples.dir}/samples/deprecation_mediator/src">
             <ant:fileset dir="src">
-                <ant:include name="samples/**"/>
-            </ant:fileset>
-        </ant:copy>
-        <ant:copy
-                
todir="${samples.dir}/samples/deprecation_mediator/deprecation_mediator/src">
-            <ant:fileset dir="src">
-                <ant:include name="samples/**"/>
-                <ant:include name="sampleMediators/**"/>
+                <ant:include name="**/deprecation/**"/>
             </ant:fileset>
         </ant:copy>
+
         <jar destfile="${samples.dir}/userguide/sample_userguide.jar">
             <fileset dir="target/classes">
-                <include name="samples/**"/>
+                <include name="**/userguide/**"/>
             </fileset>
         </jar>
         <jar 
destfile="${samples.dir}/samples/deprecation_mediator/sample_deprecation_mediator.jar">
             <fileset dir="target/classes">
-                <include name="samples/**"/>
-                <include name="sampleMediators/**"/>
+                <include name="**/deprecation/**"/>
             </fileset>
         </jar>
     </goal>

Modified: incubator/synapse/trunk/java/project.xml
URL: 
http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/project.xml?rev=369756&r1=369755&r2=369756&view=diff
==============================================================================
--- incubator/synapse/trunk/java/project.xml (original)
+++ incubator/synapse/trunk/java/project.xml Tue Jan 17 03:35:14 2006
@@ -228,6 +228,13 @@
                 <!--<exclude>**/AddressingInProcessorTest.java</exclude>-->
             <!--</excludes>-->
         </unitTest>
+        <resources>
+            <resource>
+                <includes>
+                    <include>log4j.properties</include>
+                </includes>
+            </resource>
+        </resources>
     </build>
 
     <!-- ======= -->



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

Reply via email to