summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2010-05-18 09:36:18 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2010-05-18 09:36:18 +0000
commit957afd4a830855f0a72db4daef95cce46522104c (patch)
treeff847a0d2a19e9fa8e1cf183bf80f1d8097118dd /sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
parent39ebe72060715bc657cc59459d81cea5c94d437a (diff)
Cleaned up comments
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@945562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java')
-rw-r--r--sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
index 9b3de042ae..5ba42a0dec 100644
--- a/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
+++ b/sca-java-2.x/trunk/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
@@ -78,7 +78,7 @@ public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements
InputStream scdlStream = null;
try {
- scdlStream = IOHelper.openStream(url);;
+ scdlStream = IOHelper.openStream(url);
} catch (IOException e) {
ContributionReadException ce = new ContributionReadException("Exception reading " + uri, e);
error(context.getMonitor(), "ContributionReadException", url, ce);
@@ -97,19 +97,17 @@ public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements
monitor.setArtifactName(uri.toString());
} //end if
- // Set up a StreamSource for the composite file, since this has an associated URL that can be used to
- // by the parser to find references to other files such as DTDs
+ // Set up a StreamSource for the composite file, since this has an associated URL that
+ // can be used by the parser to find references to other files such as DTDs
StreamSource scdlSource = new StreamSource( scdlStream, url.toString() );
XMLStreamReader reader = inputFactory.createXMLStreamReader(scdlSource);
- //XMLStreamReader reader = inputFactory.createXMLStreamReader(scdlStream);
-
// set the monitor on the input factory as the standard XMLInputFactory
// methods used for creating readers don't allow for the context to
// be passed in
ValidatingXMLInputFactory.setMonitor(reader, context.getMonitor());
- //reader.nextTag();
+ // Read the header (i.e. text before the <composite> element, if any
readCompositeFileHeader( reader );
// Read the composite model