proper.app
Class Jobs

java.lang.Object
  extended by proper.core.ProperObject
      extended by proper.core.ArgumentObject
          extended by proper.app.Application
              extended by proper.app.Jobs
All Implemented Interfaces:
CommandLineInterface, ProperInterface, XMLAccessInterface

public class Jobs
extends Application

This class extracts the java calls (i.e. the class) including the arguments and writes this to a file.

For a complete list of commandline parameters just run it with the option "-help".

Version:
$Revision: 1.3 $
Author:
FracPete

Field Summary
 
Fields inherited from interface proper.core.ProperInterface
VERSION
 
Constructor Summary
Jobs()
          initializes the object
 
Method Summary
 java.lang.String[] addAdditionalJobs(java.lang.String[] jobs)
          adds additional jobs, like get_file
 java.lang.String[] getJobs(java.lang.String filename)
          retrieves the jobs from the given file
 java.lang.String[][] getProperties(java.lang.String filename)
          retrieves the Properties (resolves nested ones) from the given file
static void main(java.lang.String[] args)
          starts the application
 void printDescription()
          prints a short description of this class
 boolean process(java.lang.String filename)
          processes the given file and fills the lines vector
 boolean save(java.lang.String filename)
          saves the jobs to the given file
 
Methods inherited from class proper.app.Application
checkCommandLine, createInstance, fromXML, parameterError, printUsage, run, run, setArgs, setArgs, toString, toXML
 
Methods inherited from class proper.core.ArgumentObject
fixAdditionalArg
 
Methods inherited from class proper.core.ProperObject
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Jobs

public Jobs()
initializes the object

Method Detail

printDescription

public void printDescription()
prints a short description of this class

Specified by:
printDescription in interface CommandLineInterface
Overrides:
printDescription in class Application

getProperties

public java.lang.String[][] getProperties(java.lang.String filename)
retrieves the Properties (resolves nested ones) from the given file


getJobs

public java.lang.String[] getJobs(java.lang.String filename)
retrieves the jobs from the given file


addAdditionalJobs

public java.lang.String[] addAdditionalJobs(java.lang.String[] jobs)
adds additional jobs, like get_file


process

public boolean process(java.lang.String filename)
processes the given file and fills the lines vector


save

public boolean save(java.lang.String filename)
saves the jobs to the given file


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
starts the application

Throws:
java.lang.Exception