Oak related scripts to be executed with Felix Script Console. To get up and running quickly install following bundles in Felix WebConsole
- Felix Script Console Bundle
- [Groovy Bundle][4]
Then go to http://localhost:4502/system/console/sc
Oak related scripts to be executed with Felix Script Console. To get up and running quickly install following bundles in Felix WebConsole
Then go to http://localhost:4502/system/console/sc
| import org.apache.jackrabbit.oak.spi.state.NodeState | |
| import java.util.concurrent.atomic.AtomicInteger | |
| def countNodes(NodeState n, String path = "/", flush = 5000, AtomicInteger count = new AtomicInteger(0), root = true) { | |
| if(root) { | |
| println "Counting nodes in tree ${path}" | |
| } | |
| cnt = count.incrementAndGet() | |
| if (cnt % flush == 0) println(" " + cnt) |
| .tokenahead { | |
| cursor: text; | |
| overflow: hidden; | |
| height: auto; | |
| padding-bottom: 0; | |
| border-color:#ccc; | |
| background-color:white; | |
| } | |
| .focus{ | |
| border-color: rgba(82, 168, 236, 0.8); |
| // Tokenahead.less | |
| // --------------- | |
| .tokenahead { | |
| cursor: text; | |
| overflow: hidden; | |
| height: auto; | |
| padding-bottom: 0; | |
| border-color: @inputBorder; | |
| } |