Skip to content

StanLivitski/Springlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Springlet?

Springlet is a lightweight Spring-based framework for building command-line Java applications. Its facilities address basic concerns of a command-line application, including:

  • Parsing command-line arguments and triggering associated actions
  • Launching the application bean in an IoC container
  • Managing dependency application beans in a composite application
  • Tracking termination status and generating an exit code for a calling script
  • Organizing and configuring the application's logs
  • Displaying the summary of available command-line arguments to the user
  • Simulating the command-line environment during the application testing

Project's dependencies

Springlet uses the libraries listed below. You must have those libraries on the classpath both when compiling Springlet and using it.

Library or framework Importance Module Tested with version
Apache Commons Logging required - 1.1.1
Spring Framework required spring-core 3.2.4.RELEASE
Spring Framework required spring-beans 3.2.4.RELEASE
proper2 optional - current stable version

Downloading the binary and Javadoc

The binary and compressed Javadoc pages of the Springlet framework will be available at:

Using Springlet

The simplest example of a Springlet application is located in the mock/ directory of this repository. For detailed Springlet API information, please consult the project's javadoc.

The application bean

This documentation section has yet to be written. If you would like to help writing it, please contact the project's team

Command line arguments

This documentation section has yet to be written. If you would like to help writing it, please contact the project's team

Logging

This documentation section has yet to be written. If you would like to help writing it, please contact the project's team

Composite applications

This documentation section has yet to be written. If you would like to help writing it, please contact the project's team

About this repository

This repository contains the source code of Springlet. Its top-level components are:

    src/           		Springlet's source files
    mock/           	An example "Hello, world!" application built using the
    						Springlet framework
    lib/				an empty directory for placing links or copies of
    					 dependency libraries
    LICENSE		        Document that describes the project's licensing terms
    NOTICE   	        A summary of license terms that apply to Springlet
    build.xml      		Configuration file for the tool (Ant) that builds
                   		 the binary and Javadoc
    README.md			This document

Building Springlet

To build the framework's binary from this repository, you need:

Even though a Java runtime may already be installed on your machine (check that by running java --version), the build will fail if you don't have a complete JDK (check that by running javac).

To build the core of Springlet, go to the directory containing a working copy of Springlet and run:

 ant

The result is a file named springlet.jar in the same directory.

Building Javadoc

To build Javadoc for the project, make sure you have met the prerequisites listed above, go to the directory containing a working copy of project's sources and run:

 ant javadoc

The result will be placed in the javadoc subdirectory.

Contacting the project's team

You can send a message to the project's team via the Contact page at http://www.livitski.com/ or via GitHub. We will be glad to hear from you!

About

Lightweight Spring-based framework for building command-line Java applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages