|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.arsdigita.apm.Apm
This is the main entry point to the arsdigita package manager. Instances of this class do all the legwork of installing, building, and upgrading packages. This class is a bit long, but it's structure is very regular, so at this point I don't think there is any benefit from splitting it up, also there are no obvious lines along which to split the functionality. The main method of this class uses introspection to make every public method that accepts an array of strings as arguments available on the command line. Usage documentation is generated using the static usages data structures. This means that any of the command line functionality of apm is available to Java programs to use internally.
| Constructor Summary | |
Apm(java.util.Properties props)
Creates an instance of the Apm class using the properties specified in props to configure itself. |
|
Apm(java.util.Properties props,
java.io.PrintStream out,
java.io.PrintStream err)
Creates an instance of the Apm class using the properties specified in props to configure itself. |
|
| Method Summary | |
void |
bootstrap(java.lang.String[] args)
Rebuilds the bootstrap.jar file that contains the Apm itself. |
void |
build(java.lang.String[] args)
Rebuilds .java and .acsj files. |
void |
clean(java.lang.String[] args)
Removes all files generated during the build process. |
void |
create(java.lang.String[] args)
Creates an apm given a package key. |
void |
install(java.lang.String[] args)
Installs the packages specified in the args array. |
void |
installAcs(java.lang.String[] args)
Does a complete acs install. |
void |
installApm(java.io.File apmFile)
Installs a package from an apm archive. |
void |
installPackage(java.io.File infoFile)
Installs a package from the filesystem. |
void |
javadoc(java.lang.String[] args)
Invokes javadoc. |
void |
loadJava(java.io.File file)
Loads its argument as a Java class with loadjava. |
static void |
main(java.lang.String[] args)
This is the entry point for the apm binary. |
void |
sourceSql(java.io.File file)
Sources its argument as a sql file using sqlplus. |
void |
translatePages(java.lang.String[] args)
Precompiles all .ajp files in the www/ and packages/ directories into .generated.jsp files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Apm(java.util.Properties props,
java.io.PrintStream out,
java.io.PrintStream err)
props - A properties object for configuring this apm.out - A PrintStream on which to display output.err - A PrintStream on which to display errs.public Apm(java.util.Properties props)
props - A properties object for configuring this apm.| Method Detail |
public void sourceSql(java.io.File file)
throws ApmException
file - The file to source.ApmException - When an error occurs sourcing the file.
public void loadJava(java.io.File file)
throws ApmException
file - The single Java file to load into Oracle with loadjavaApmException - When an error occurs sourcing the file.
public void installPackage(java.io.File infoFile)
throws ApmException
infoFile - The package specification file.ApmException - Thrown when there is an error during the
installation.
public void installApm(java.io.File apmFile)
throws ApmException
apmFile - The archive.ApmException - Thrown when there is an error.
public void install(java.lang.String[] args)
throws ApmException
args - The packages to install.
public void bootstrap(java.lang.String[] args)
throws com.arsdigita.build.BuildException
args - This is ignored.
public void build(java.lang.String[] args)
throws com.arsdigita.build.BuildException
args - The set of package keys to rebuild.
public void translatePages(java.lang.String[] args)
throws com.arsdigita.build.BuildException
args - ignored
public void javadoc(java.lang.String[] args)
throws com.arsdigita.build.BuildException
args -
public void clean(java.lang.String[] args)
throws com.arsdigita.build.BuildException
args - This is ignored.
public void create(java.lang.String[] args)
throws com.arsdigita.build.BuildException,
ApmException
args - The command line arguments.
public final void installAcs(java.lang.String[] args)
throws ApmException,
com.arsdigita.build.BuildException
args - The command line arguments. Since there are none this is
ignored.public static final void main(java.lang.String[] args)
args - The command line arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||