public abstract class AbstractProjectCommand<T> extends Object implements wycc.lang.Command<T>
| Modifier and Type | Field and Description |
|---|---|
protected wycc.util.Logger |
logger
The logger used for logging system events
|
wyfs.lang.Content.Registry |
registry
The master project content type registry.
|
protected wyfs.util.DirectoryRoot |
wyaldir
The location in which wyal source files are stored, or null if not
specified.
|
protected wyfs.lang.Path.Root |
wycsdir
The location in which wycs binary files are stored, or null if not
specified.
|
| Constructor and Description |
|---|
AbstractProjectCommand(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger)
Construct a new instance of this command.
|
| Modifier and Type | Method and Description |
|---|---|
String |
describe(String option) |
String |
describeWyaldir() |
Object |
get(String name) |
String[] |
getOptions() |
protected wybs.util.StdProject |
initialiseProject()
Construct a new temporary project.
|
void |
set(String option,
Object value) |
void |
setWyaldir(File dir) |
void |
setWyaldir(String dir) |
public final wyfs.lang.Content.Registry registry
protected wyfs.util.DirectoryRoot wyaldir
protected wyfs.lang.Path.Root wycsdir
protected wycc.util.Logger logger
public AbstractProjectCommand(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger)
registry - The content registry being used to match files to content
types.IOExceptionpublic String describeWyaldir()
public void setWyaldir(String dir) throws IOException
IOExceptionpublic void setWyaldir(File dir) throws IOException
IOExceptionpublic String[] getOptions()
getOptions in interface wycc.lang.Feature.Configurablepublic String describe(String option)
describe in interface wycc.lang.Feature.Configurablepublic void set(String option, Object value) throws wycc.lang.Feature.ConfigurationError
set in interface wycc.lang.Feature.Configurablewycc.lang.Feature.ConfigurationErrorprotected wybs.util.StdProject initialiseProject()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.