Skip to content

praihan/jconfig

Repository files navigation

jconfig

jconfig is a tool built for Java programmers to easily manage configurations of an application. Entries can be stored as Booleans, Numbers, and String. The generic interface of the library allows users to implement their own model as well as use the built in defaults.

Usage

Using jconfig is very easy and it is documented. The built in implementations include an XML-based and a JSON-based configuration managers. Have a look at the test cases in the "test" folder.

Version

0.1

Build

jconfig uses Apache Ant (http://ant.apache.org/) for builds. All properties used reside in the text file "ant.properties" and the ant script is "build.xml".

The simplest way to build is simply running the ant executable in the root project folder, You need to make sure that ant executable is in the Path. See http://ant.apache.org/manual/install.html.

C:\jconfig\ant will build fine if the root project folder is "C:\jconfig" (Windows example)

The build targets include:

  • build -- compiles the entire source (excluding test cases) and zips the compiled .class files and the source .java files into two separate .jar files in the "lib" folder
  • clean -- cleans all built directories, including their contents (built .jars, .class etc)
  • test -- compiles all sources and runs the main test class under the "test" folder
  • compile -- compiles the entire source (excluding test cases)
  • jar-all -- same as build
  • jar -- compiles the entire source (excluding tests) and zips the compiled .class files in a .jar file and puts it in the "lib" folder
  • jar-sources -- zips the source .java files in a .jar file and puts it in the "lib" folder
  • clean-dist -- cleans the built .jar files
  • clean-build -- cleans the built .class files
  • compile-test -- compiles the entire source (and test cases

License

jconfig is released under Apache License 2.0.

jconfig also includes some classes from JSON.org for parsing JSON text. The JSON license is available at http://www.json.org/license.html.

Authors

Pranjal Raihan

Contributors

None so far

About

A Configuration Manager for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages