[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jboss-portal/cms/src/main/org/jboss/portal/test/cms ...
From: Roy Russo <russo () jboss ! com>
Date: 2005-08-31 21:55:06
Message-ID: E1EAaXy-0008GI-0c () committer01 ! frg ! pub ! inap ! atl ! jboss ! com
[Download RAW message or body]
User: russo
Date: 05/08/31 17:55:06
Modified: cms/src/main/org/jboss/portal/test/cms
TestFileCommands.java
Log:
passing inputstream instead of fileobj to archive save
Revision Changes Path
1.7 +1 -4 \
jboss-portal/cms/src/main/org/jboss/portal/test/cms/TestFileCommands.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TestFileCommands.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/cms/src/main/org/jboss/portal/test/cms/TestFileCommands.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- TestFileCommands.java 31 Aug 2005 21:48:20 -0000 1.6
+++ TestFileCommands.java 31 Aug 2005 21:55:05 -0000 1.7
@@ -182,10 +182,7 @@
{
try
{
- java.io.File uploadFile = new java.io.File(sZipFile);
FileInputStream is = new FileInputStream(sZipFile);
-
- //Command storearchiveCMD = \
service.getCommandFactory().createStoreArchiveCommand("", \
uploadFile);
Command storearchiveCMD = \
service.getCommandFactory().createStoreArchiveCommand("", is); List filestoVersion = \
(List) service.execute(storearchiveCMD);
@@ -210,7 +207,7 @@
List folders3 = whopper3.getFolders();
List files3 = whopper3.getFiles();
- System.out.println("");
+ is.close();
}
catch(Exception e)
{
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic