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 |
whileydir
The location in which whiley source files a located, or null if not
specified.
|
protected ArrayList<wyfs.lang.Path.Root> |
whileypath
The whiley path identifies additional items (i.e.
|
protected wyfs.lang.Path.Root |
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.
|
protected wyfs.util.DirectoryRoot |
wyildir
The location in which wyil 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 |
|---|---|
protected void |
addBootpath(List<wyfs.lang.Path.Root> roots)
Initialise the bootpath for use with the compiler.
|
String |
describe(String option) |
protected void |
finaliseConfiguration()
Finalise the given configuration to ensure it is an consistent state.
|
Object |
get(String name) |
protected wyfs.lang.Path.Root |
getAbstractRoot(wyfs.lang.Path.Root dir)
Construct a root which is either virtual or corresponds to a physical
directory.
|
protected wyfs.util.DirectoryRoot |
getDirectoryRoot(wyfs.util.DirectoryRoot dir,
wyfs.util.DirectoryRoot defaulT)
Construct a root which must correspond to a physical directory.
|
String[] |
getOptions() |
protected wybs.util.StdProject |
initialiseProject()
Construct a new temporary project.
|
void |
set(String option,
Object value) |
void |
setWhileydir(File dir) |
void |
setWhileypath(String paths) |
void |
setWyaldir(File dir) |
void |
setWyildir(File dir) |
public final wyfs.lang.Content.Registry registry
protected ArrayList<wyfs.lang.Path.Root> whileypath
protected wyfs.util.DirectoryRoot whileydir
protected wyfs.util.DirectoryRoot wyildir
protected wyfs.lang.Path.Root 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[] 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.ConfigurationErrorpublic void setWhileypath(String paths) throws IOException
IOExceptionpublic void setWhileydir(File dir) throws IOException
IOExceptionpublic void setWyildir(File dir) throws IOException
IOExceptionpublic void setWyaldir(File dir) throws IOException
IOExceptionprotected wybs.util.StdProject initialiseProject()
throws IOException
IOExceptionprotected void finaliseConfiguration()
throws IOException
IOExceptionprotected void addBootpath(List<wyfs.lang.Path.Root> roots) throws IOException
roots - IOExceptionprotected wyfs.util.DirectoryRoot getDirectoryRoot(wyfs.util.DirectoryRoot dir,
wyfs.util.DirectoryRoot defaulT)
throws IOException
IOExceptionprotected wyfs.lang.Path.Root getAbstractRoot(wyfs.lang.Path.Root dir)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.