Hello,
I have included small patches such that xdoclet will work and compile with log4j 1.2alpha1. Best regards, Ceki -- Ceki Gülcü - http://qos.ch
Index: TemplateEngine.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util/TemplateEngine.java,v retrieving revision 1.17 diff -u -r1.17 TemplateEngine.java --- TemplateEngine.java 2001/09/24 22:35:57 1.17 +++ TemplateEngine.java 2001/10/01 06:49:54 @@ -7,6 +7,7 @@ import com.sun.javadoc.*; import org.apache.tools.ant.BuildException; +import org.apache.log4j.Logger; import org.apache.log4j.Category; /** @@ -673,9 +674,9 @@ * @param name Description of Parameter * @return The Category value */ - protected static Category getCategory( Class clazz, String name ) + protected static Logger getCategory( Class clazz, String name ) { - return Category.getInstance( clazz.getName() + "." + name ); + return Logger.getLogger( clazz.getName() + "." + name ); } /**
Index: DocletUtil.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util/DocletUtil.java,v retrieving revision 1.5 diff -u -r1.5 DocletUtil.java --- DocletUtil.java 2001/09/04 14:46:27 1.5 +++ DocletUtil.java 2001/10/01 06:47:44 @@ -5,6 +5,7 @@ import java.util.*; import com.sun.javadoc.*; import org.apache.log4j.Category; +import org.apache.log4j.Logger; /** * @author Ara Abrahamian ([EMAIL PROTECTED]) @@ -186,9 +187,9 @@ * @param name Description of Parameter * @return The Category value */ - protected static Category getCategory( Class clazz, String name ) + protected static Logger getCategory( Class clazz, String name ) { - Category cat = Category.getInstance( clazz.getName() + "." + name ); + Logger cat = Logger.getLogger( clazz.getName() + "." + name ); return cat; }