Wiki source code of !Test_file_path
Version 2.2 by etvc developer on 2019/09/30 10:46
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{groovy}} | ||
| 2 | import com.xpn.xwiki.*; | ||
| 3 | import com.xpn.xwiki.api.*; | ||
| 4 | import com.xpn.xwiki.doc.*; | ||
| 5 | import org.apache.commons.io.FileUtils; | ||
| 6 | import java.io.File; | ||
| 7 | import java.net.URL; | ||
| 8 | |||
| 9 | // y=XWikiAttachment(xwiki.getDocument(doc.parent), "aFileVerified").getAttachment_content().storageFile; | ||
| 10 | //y=xwiki.getDocument(doc.parent).XWikiAttachment.getAttachment_content().storageFile; | ||
| 11 | |||
| 12 | doc.XWikiAttachment.getAttachment_content().storageFile; | ||
| 13 | |||
| 14 | // for (XWikiAttachment attach in doc.getAttachmentList()) { | ||
| 15 | // println "** " + attach.filename; | ||
| 16 | // } | ||
| 17 | //println y; | ||
| 18 | {{/groovy}} |