You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2002/02/12 22:09:57 UTC
cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/xo Mapper.java
jvanzyl 02/02/12 13:09:57
Modified: . build.xml deps.list
src/java/org/apache/stratum/xo Mapper.java
Log:
- xmlrpc is now required, at jon's behest
- updated the deps.list
Revision Changes Path
1.16 +1 -0 jakarta-turbine-stratum/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/build.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- build.xml 12 Feb 2002 20:42:50 -0000 1.15
+++ build.xml 12 Feb 2002 21:09:57 -0000 1.16
@@ -31,6 +31,7 @@
<pathelement location="${jaf.jar}"/>
<pathelement location="${jaxp.jar}"/>
<pathelement location="${crimson.jar}"/>
+ <pathelement location="${xmlrpc.jar}"/>
<pathelement location="${build.dest}"/>
<!-- This is required to bootstrap the build -->
1.4 +1 -0 jakarta-turbine-stratum/deps.list
Index: deps.list
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/deps.list,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- deps.list 8 Feb 2002 08:44:46 -0000 1.3
+++ deps.list 12 Feb 2002 21:09:57 -0000 1.4
@@ -14,3 +14,4 @@
JavaClass.jar
jisp_1_0_2.jar
hsqldb.jar
+xmlrpc.jar
1.14 +9 -6 jakarta-turbine-stratum/src/java/org/apache/stratum/xo/Mapper.java
Index: Mapper.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/xo/Mapper.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Mapper.java 22 Jan 2002 14:23:11 -0000 1.13
+++ Mapper.java 12 Feb 2002 21:09:57 -0000 1.14
@@ -140,7 +140,7 @@
*
* @author <a href="mailto:jvanzyl@zenplex.com">Jason van Zyl</a>
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
- * @version $Id: Mapper.java,v 1.13 2002/01/22 14:23:11 mpoeschl Exp $
+ * @version $Id: Mapper.java,v 1.14 2002/02/12 21:09:57 jvanzyl Exp $
*/
// How to use the resources package to pull in the
@@ -606,6 +606,9 @@
}
catch (Exception noAttrib)
{
+ debug("Using " + className + " unsuccessful: " +
+ StringUtils.stackTrace(noAttrib));
+
// We assume here that the object that we are creating is
// in the same package as the parent object.
String nodeName = element.getName();
@@ -614,8 +617,10 @@
throw new Exception("Base package not known and " + CLASS_NAME +
" attribute not specified (or wrong)");
}
+
className = (basePackage.length() == 0 ? "" : basePackage + '.') +
nodeName.substring(0, 1).toUpperCase() + nodeName.substring(1);
+
// TODO: Check class name validity
try
{
@@ -623,14 +628,12 @@
}
catch (Exception unknownClass)
{
- throw new Exception
- ("No class name for node '" + element.getName() +
- "': This may be resolved by adding a " + CLASS_NAME +
- " attribute");
+ throw new Exception("No class name for node '" +
+ element.getName() + "': This may be resolved by adding a " +
+ CLASS_NAME + " attribute");
}
}
}
-
// -------------------------------------------------------------------
// P R I V A T E M E T H O D S
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>