You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2004/01/07 16:22:14 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ant ComputeCopyDocumentId.java
edith 2004/01/07 07:22:14
Modified: src/java/org/apache/lenya/cms/ant ComputeCopyDocumentId.java
Log:
fix the bug for the destination id "//bar"
Revision Changes Path
1.6 +7 -3 cocoon-lenya/src/java/org/apache/lenya/cms/ant/ComputeCopyDocumentId.java
Index: ComputeCopyDocumentId.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ant/ComputeCopyDocumentId.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ComputeCopyDocumentId.java 25 Jul 2003 16:39:56 -0000 1.5
+++ ComputeCopyDocumentId.java 7 Jan 2004 15:22:13 -0000 1.6
@@ -89,8 +89,12 @@
for (int i = 1; i < l; i++) {
st.nextToken();
}
-
- secdocumentid = secdocumentid + "/" + st.nextToken();
+ if (secdocumentid.endsWith("/")) {
+ secdocumentid = secdocumentid + st.nextToken();
+ } else {
+ secdocumentid = secdocumentid + "/" + st.nextToken();
+ }
+
return secdocumentid;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org