项目作者: mduerig

项目描述 :
Ammonite scripts for Oak
高级语言: Scala
项目地址: git://github.com/mduerig/script-oak.git
创建时间: 2016-02-03T23:12:43Z
项目社区:https://github.com/mduerig/script-oak

开源协议:Apache License 2.0

下载


Support and scripts for working with Jackrabbit Oak in the
Ammonite Shell.

In a running Ammonite shell import the Script Oak library and its main API entry point:

  1. $ import $url.{`https://raw.githubusercontent.com/mduerig/script-oak/master/script-oak-fixture-reactor/script-oak-fixtures/fixtures.sc` => bootstrap}
  2. Loaded script-oak 1.5
  3. $ bootstrap.loadOak
  4. Welcome to Script Oak 1.5 / oak-1.9.11

Alternatively start the pre-built shell, which already includes Script Oak and doesn’t require
above extra step:

  1. java -jar script-oak-shell*.jar

Now you can explore the various built in scripts to learn about
script-oak’s capabilities.

Creating and accessing a JCR repository (RepositoryDemo.sc):

  1. // Load the script
  2. val repoDemo = script("RepositoryDemo.sc")
  3. // Execute the script
  4. repoDemo.run

Analysing a file store (FileStoreDemo.sc):

  1. script("FileStoreDemo.sc").run