Git Product home page Git Product logo

cq5-groovy-console's Introduction

CQ5 Groovy Console

CITYTECH, Inc.

Overview

The CQ5 Groovy Console provides an interface for running Groovy scripts within the CQ5 container. Scripts can be created to manipulate content in the JCR, call OSGi services, or perform arbitrary tasks using the available APIs.

Requirements

  • CQ 5.4 or 5.5 running on localhost:4502
  • Maven 2.x+
  • cURL for automated deployment (optional)

Installation

Download

  1. Download the latest release from GitHub.

  2. Install package via CQ5 Package Manager.

  3. Verify the installation by navigating to /etc/groovyconsole.html on the target CQ5 instance.

OR

Build from Source

  1. Install the console package (NOTE: if cURL is not installed, the package can be uploaded manually via Package Manager)

    a. If you already have the Groovy bundle installed in the Felix container:

    mvn install -P local-author
    

    b. If you do not have the Groovy bundle installed:

    mvn install -P install-groovy,local-author
    

    NOTE: if you are running CQ 5.4, add the profile 'cq5.4' to the above Maven commands to resolve the correct dependencies.

    mvn install -P cq5.4,local-author
    
  2. Verify the installation.

Additional build profiles may be added in the project's pom.xml to support deployment to non-localhost CQ5 servers.

Sample code:

getPage('/content/geometrixx').recurse { page ->
    println "${page.title} - ${page.path}"
}

Additional sample scripts can be found in src/main/scripts.

Please contact Mark Daugherty with any questions.

Versioning

Follows Semantic Versioning guidelines.

License

Copyright 2012 CITYTECH, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cq5-groovy-console's People

Contributors

christianvozar avatar mszu avatar sarwarbhuiyan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.