cvs commit: spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant ComponentMetadataTask.java

Mike Hogan <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
hogie       03/11/03 13:15:29

  Modified:    sandbox/repository/componenthaus/src/java/org/componenthaus/ant
                        ComponentMetadataTask.java
  Log:
  Can submit more than one interface per jar
  
  Revision  Changes    Path
  1.2       +3 -5      spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant/ComponentMetadataTask.java
  
  Index: ComponentMetadataTask.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant/ComponentMetadataTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComponentMetadataTask.java	26 Oct 2003 13:46:41 -0000	1.1
  +++ ComponentMetadataTask.java	3 Nov 2003 21:15:29 -0000	1.2
  @@ -2,18 +2,17 @@
   
   import com.thoughtworks.qdox.JavaDocBuilder;
   import com.thoughtworks.qdox.model.JavaClass;
  -import com.thoughtworks.xstream.XStream;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Task;
   import org.componenthaus.ant.metadata.ComponentMetadata;
   import org.componenthaus.ant.metadata.InterfaceMetadata;
   
  +import java.io.BufferedReader;
   import java.io.File;
  +import java.io.FileReader;
   import java.io.FileWriter;
   import java.io.IOException;
   import java.io.StringWriter;
  -import java.io.FileReader;
  -import java.io.BufferedReader;
   import java.util.ArrayList;
   import java.util.Arrays;
   import java.util.List;
  @@ -119,10 +118,9 @@
                   source);
           ComponentMetadata componentMetadata = new ComponentMetadata();
           componentMetadata.addInterface(interfaceMetadata);
  -        XStream xStream = new XStream();
           try {
               FileWriter writer = new FileWriter(metadataFile);
  -            writer.write(xStream.toXML(componentMetadata));
  +            writer.write(componentMetadata.toXml());
               writer.close();
           } catch (IOException e) {
               throw new IOBuildException(e);
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.