Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2988 - development/main/metro/composition/builder/src/main/net/dpml/composition/builder

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2988 - development/main/metro/composition/builder/src/main/net/dpml/composition/builder
  • Date: Wed, 06 Jul 2005 18:54:44 -0400

Author: mcconnell AT dpml.net
Date: Wed Jul 6 18:54:44 2005
New Revision: 2988

Modified:

development/main/metro/composition/builder/src/main/net/dpml/composition/builder/ComponentBuilderTask.java
Log:
o Add support for the generation of xml versions of the part datastructures.

Modified:
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/ComponentBuilderTask.java
==============================================================================
---
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/ComponentBuilderTask.java
(original)
+++
development/main/metro/composition/builder/src/main/net/dpml/composition/builder/ComponentBuilderTask.java
Wed Jul 6 18:54:44 2005
@@ -21,6 +21,7 @@
import java.beans.IntrospectionException;
import java.io.ByteArrayInputStream;
import java.io.File;
+import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
@@ -73,6 +74,9 @@
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Path;

+import com.thoughtworks.xstream.XStream;
+import com.thoughtworks.xstream.io.xml.DomDriver;
+
/**
* Task that handles the construction of a serialized container part.
*
@@ -256,6 +260,23 @@
log( "" + (i+1) + " " + startup[i] );
}

+ File target = getContext().getTargetDirectory();
+ File reports = new File( target, "reports/parts" );
+ reports.mkdirs();
+ File report = new File( reports, profile.getName() + ".xml" );
+ try
+ {
+ XStream XStream = new XStream( new DomDriver() );
+ XStream.alias( "componentprofile", ComponentProfile.class );
+ XStream.toXML( profile, new FileWriter( report ) );
+ log( "Created report in " + report );
+ }
+ catch( Throwable e )
+ {
+ log( "XML reporting failed due to: " + e.toString() );
+ }
+
+
URI uri = getDefinition().getArtifactURI( Part.ARTIFACT_TYPE );
if( null == m_output )
{



  • svn commit: r2988 - development/main/metro/composition/builder/src/main/net/dpml/composition/builder, mcconnell, 07/06/2005

Archive powered by MHonArc 2.6.24.

Top of Page