net.sourceforge.jinit
Class Project

java.lang.Object
  extended by net.sourceforge.jinit.Project

public class Project
extends Object

Represents a project that needs to be initialized based on the given properties.

Author:
Trevor Miller

Field Summary
static String PROJECT_COPYRIGHT_PREFIX
          PROJECT_COPYRIGHT_PREFIX = jinit.project.copyright
static String PROJECT_DESCRIPTION_PREFIX
          PROJECT_DESCRIPTION_PREFIX = jinit.project.description
static String PROJECT_FULLNAME_PREFIX
          PROJECT_FULLNAME_PREFIX = jinit.project.fullname
static String PROJECT_LICENSE_PREFIX
          PROJECT_LICENSE_PREFIX = jinit.project.license
static String PROJECT_NAME_PREFIX
          PROJECT_NAME_PREFIX = jinit.project.name
static String PROJECT_PKG_PREFIX
          PROJECT_PKG_PREFIX = jinit.project.package
static String PROJECT_SOURCE_PREFIX
          PROJECT_SOURCE_PREFIX = jinit.project.src
static String PROJECT_URL_PREFIX
          PROJECT_URL_PREFIX = jinit.project.url
static String PROJECT_VERSION_PREFIX
          PROJECT_VERSION_PREFIX = jinit.project.version
static String PROJECT_YEAR_PREFIX
          PROJECT_YEAR_PREFIX = jinit.project.year
 
Constructor Summary
Project()
          Create a new instance.
 
Method Summary
protected  void createPackageDirsIn(File directory, String pkgString)
          Create the package directories in the given directory.
 void initialize(Properties properties)
          Initialize the project using the given properties.
static Project parseProject(Properties properties)
          Create a Project instanceby parsing the given Properties object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_FULLNAME_PREFIX

public static String PROJECT_FULLNAME_PREFIX
PROJECT_FULLNAME_PREFIX = jinit.project.fullname


PROJECT_NAME_PREFIX

public static String PROJECT_NAME_PREFIX
PROJECT_NAME_PREFIX = jinit.project.name


PROJECT_DESCRIPTION_PREFIX

public static String PROJECT_DESCRIPTION_PREFIX
PROJECT_DESCRIPTION_PREFIX = jinit.project.description


PROJECT_URL_PREFIX

public static String PROJECT_URL_PREFIX
PROJECT_URL_PREFIX = jinit.project.url


PROJECT_VERSION_PREFIX

public static String PROJECT_VERSION_PREFIX
PROJECT_VERSION_PREFIX = jinit.project.version


PROJECT_YEAR_PREFIX

public static String PROJECT_YEAR_PREFIX
PROJECT_YEAR_PREFIX = jinit.project.year


PROJECT_COPYRIGHT_PREFIX

public static String PROJECT_COPYRIGHT_PREFIX
PROJECT_COPYRIGHT_PREFIX = jinit.project.copyright


PROJECT_PKG_PREFIX

public static String PROJECT_PKG_PREFIX
PROJECT_PKG_PREFIX = jinit.project.package


PROJECT_LICENSE_PREFIX

public static String PROJECT_LICENSE_PREFIX
PROJECT_LICENSE_PREFIX = jinit.project.license


PROJECT_SOURCE_PREFIX

public static String PROJECT_SOURCE_PREFIX
PROJECT_SOURCE_PREFIX = jinit.project.src

Constructor Detail

Project

public Project()
Create a new instance.

Method Detail

parseProject

public static Project parseProject(Properties properties)
Create a Project instanceby parsing the given Properties object.

Parameters:
properties - The Properties to parse
Returns:
The Project instance
Throws:
ConfigurationException - If an error occurs with the configuration

initialize

public void initialize(Properties properties)
                throws ConfigurationException
Initialize the project using the given properties.

Parameters:
properties - The properties to use
Throws:
ConfigurationException - If there's an error with the conf file

createPackageDirsIn

protected void createPackageDirsIn(File directory,
                                   String pkgString)
Create the package directories in the given directory.

Parameters:
directory - The directory in which to create the package directories
pkgString - The name of the package


Copyright © 2005 JInit Project. All Rights Reserved.