Package org.ek9lang.core
Class Ek9DirectoryStructure
java.lang.Object
org.ek9lang.core.Ek9DirectoryStructure
Responsibility of dealing with aspects of the ek9 directory structure.
Typically, lib, keys, artefacts and other places where EK9 expects items to be located.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanEk9DirectoryStructureFor
(String ek9FullPathToFileName, String targetArchitecture) This expects an ek9 source file in a specific directory.void
deleteStalePackages
(String ek9FileNameDirectory, String moduleName) Ensure all stale packaged content is removed.getDevFinalOutputDirectory
(String fromEk9BaseDirectory, String targetArchitecture) Main final output directory when in development.getDevGeneratedOutputDirectory
(String fromEk9BaseDirectory, String targetArchitecture) Main generated code output directory when in development.getMainFinalOutputDirectory
(String fromEk9BaseDirectory, String targetArchitecture) Get the final output directory - where the artefacts will be.getMainGeneratedOutputDirectory
(String fromEk9BaseDirectory, String targetArchitecture) Get the generated output directory.getTargetExecutableArtefact
(String ek9FullPathToFileName, String targetArchitecture) Access the final built artefact that can be executed.getTargetPropertiesArtefact
(String ek9FullPathToFileName) Get final set of properties for the main artefact.Get the key signing pair for this user.boolean
Does a key pair for signing content exist.void
makeEk9DevDirectoryStructure
(String fromEk9BaseDirectory, String targetArchitecture) Used to create structure under .ek9 in both a project directory and a $HOME/.ek9 directory.boolean
saveToHomeEk9Directory
(SigningKeyPair keyPair) Save the signing key pair to the users home directory.void
validateEk9Directory
(String directoryName, String targetArchitecture) Check the structure of an Ek9 build directory.
-
Field Details
-
JAVA
- See Also:
-
CLASSES
- See Also:
-
DOT_JAR
- See Also:
-
DOT_EK9
- See Also:
-
DOT_PROPERTIES
- See Also:
-
MAIN
- See Also:
-
LIB
- See Also:
-
DEV
- See Also:
-
GENERATED
- See Also:
-
PUBLIC_PEM
- See Also:
-
PRIVATE_PEM
- See Also:
-
-
Constructor Details
-
Ek9DirectoryStructure
-
-
Method Details
-
getTargetExecutableArtefact
Access the final built artefact that can be executed. -
getTargetPropertiesArtefact
Get final set of properties for the main artefact. -
validateEk9Directory
Check the structure of an Ek9 build directory. -
makeEk9DevDirectoryStructure
Used to create structure under .ek9 in both a project directory and a $HOME/.ek9 directory.- Parameters:
fromEk9BaseDirectory
- typically $HOME/.ek9/ or /path/to/project/.ek9/
-
cleanEk9DirectoryStructureFor
This expects an ek9 source file in a specific directory.- Parameters:
ek9FullPathToFileName
- i.e. main.ek9targetArchitecture
- i.e. "java"
-
getMainGeneratedOutputDirectory
Get the generated output directory. -
getMainFinalOutputDirectory
Get the final output directory - where the artefacts will be. -
getDevGeneratedOutputDirectory
Main generated code output directory when in development. -
getDevFinalOutputDirectory
Main final output directory when in development. -
deleteStalePackages
Ensure all stale packaged content is removed. -
isUsersSigningKeyPairPresent
public boolean isUsersSigningKeyPairPresent()Does a key pair for signing content exist. -
getUsersSigningKeyPair
Get the key signing pair for this user. -
saveToHomeEk9Directory
Save the signing key pair to the users home directory.
-