dims        01/02/23 06:56:59

  Modified:    src/org/apache/cocoon/generation Tag: xml-cocoon2
                        FragmentExtractorGenerator.java
  Log:
  Fix for command-line generation.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +5 -1      
xml-cocoon/src/org/apache/cocoon/generation/Attic/FragmentExtractorGenerator.java
  
  Index: FragmentExtractorGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/generation/Attic/FragmentExtractorGenerator.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- FragmentExtractorGenerator.java   2001/02/23 14:48:46     1.1.2.7
  +++ FragmentExtractorGenerator.java   2001/02/23 14:56:59     1.1.2.8
  @@ -35,7 +35,7 @@
    * This is by no means complete yet, but it should prove useful, particularly
    * for offline generation.
    * @author <a href="mailto:[EMAIL PROTECTED]">Paul Russell</a>
  - * @version CVS $Revision: 1.1.2.7 $ $Date: 2001/02/23 14:48:46 $
  + * @version CVS $Revision: 1.1.2.8 $ $Date: 2001/02/23 14:56:59 $
    */
   public class FragmentExtractorGenerator extends AbstractGenerator implements 
Poolable {
   
  @@ -75,6 +75,10 @@
   
       public static String store(Document doc) {
           String id = (new UID()).toString();
  +
  +        // Cannot create File names with a ':' (in command-line generation)
  +        // So replace ':' with '-'
  +        id = id.replace(':','-');
   
           synchronized (FragmentExtractorGenerator.fragmentStore) {
               fragmentStore.put(id,doc);
  
  
  

Reply via email to