Author: fmui
Date: Wed Dec 2 11:43:35 2015
New Revision: 1717615
URL: http://svn.apache.org/viewvc?rev=1717615&view=rev
Log:
Workbench: Groovy script: download documents without content
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy?rev=1717615&r1=1717614&r2=1717615&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
Wed Dec 2 11:43:35 2015
@@ -204,7 +204,9 @@ class CMIS {
def file = new FileOutputStream(destination)
def out = new BufferedOutputStream(file)
- out << doc.contentStream.stream
+ if(doc.contentStream != null && doc.contentStream.stream != null) {
+ out << doc.contentStream.stream
+ }
out.close()
}