From depot-cvs-return-441-apmail-incubator-depot-cvs-archive=incubator.apache.org@incubator.apache.org Sun May 16 08:53:24 2004 Return-Path: Delivered-To: apmail-incubator-depot-cvs-archive@www.apache.org Received: (qmail 68268 invoked from network); 16 May 2004 08:53:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 May 2004 08:53:24 -0000 Received: (qmail 3281 invoked by uid 500); 16 May 2004 08:53:27 -0000 Delivered-To: apmail-incubator-depot-cvs-archive@incubator.apache.org Received: (qmail 3241 invoked by uid 500); 16 May 2004 08:53:27 -0000 Mailing-List: contact depot-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: depot-dev@incubator.apache.org Delivered-To: mailing list depot-cvs@incubator.apache.org Received: (qmail 3224 invoked by uid 98); 16 May 2004 08:53:27 -0000 Received: from nickchalko@apache.org by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(209.237.227.194):. Processed in 0.053226 secs); 16 May 2004 08:53:27 -0000 X-Qmail-Scanner-Mail-From: nickchalko@apache.org via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(209.237.227.194):. Processed in 0.053226 secs) Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by hermes.apache.org with SMTP; 16 May 2004 08:53:26 -0000 Received: (qmail 68211 invoked by uid 65534); 16 May 2004 08:53:22 -0000 Date: 16 May 2004 08:53:22 -0000 Message-ID: <20040516085322.68209.qmail@minotaur.apache.org> From: nickchalko@apache.org To: depot-cvs@incubator.apache.org Subject: svn commit: rev 10697 - incubator/depot/trunk/update/src/java/org/apache/depot/update/ant X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: nickchalko Date: Sun May 16 01:53:21 2004 New Revision: 10697 Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/CachedResourceSetExportTask.java Log: Added xml declaration. Added doctype. Formating. Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/CachedResourceSetExportTask.java ============================================================================== --- incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/CachedResourceSetExportTask.java (original) +++ incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/CachedResourceSetExportTask.java Sun May 16 01:53:21 2004 @@ -25,6 +25,7 @@ import java.util.List; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Task; +import org.apache.xml.utils.XMLChar; /** * Export a cached resource set to xml file. * @@ -86,21 +87,32 @@ Writer writer = new FileWriter(getToFile()); PrintWriter out = new PrintWriter(writer); List resourceList = cachedResourceSet.getResourceList(); - out.println(""); + out.println(""); + out + .println(""); + out.println(""); for (Iterator i = resourceList.iterator(); i.hasNext();) { ResourceElement resource = (ResourceElement) i.next(); - out.println(""); + out.println(" "); log(resource + " from " + resource.getDownloadedFrom()); } - out.println(""); + out.println(""); out.close(); writer.close(); } catch (Exception e) { throw new BuildException("Error exporting cached resource set " + getRefid(), e); } + } + private String nameValue(final String name, final String value) { + String togther = name + "=\"" + value + "\""; + return togther; } }