Package caseine.project
Class CaseineCommonProject
java.lang.Object
caseine.project.CaseineCommonProject
- All Implemented Interfaces:
CaseineProject
- Direct Known Subclasses:
CaseineCppProject,CaseineJavaProject,CaseinePythonProject
-
Nested Class Summary
Nested classes/interfaces inherited from interface caseine.project.CaseineProject
CaseineProject.ProjectType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringprotected Fileprotected static final Stringprotected static final Stringprotected static Stringprotected static Loggerprotected static StringBy convention binaries of a CaseInE project must be here.protected static final StringBy convention sources of a CaseInE project must be here.protected static final StringBy convention lib resources of a CaseInE project must be here.protected static final StringBy convention resources of a CaseInE project must be here.protected static final StringBy convention test resources of a CaseInE project must be here.protected static final StringBy convention sources of a CaseInE project must be here.protected static final StringBy convention test sources of a CaseInE project must be here.protected static final Stringprotected Stringprotected static final Stringprotected Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionCaseineCommonProject(String projectPath, String vplId, String url, String token) -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Cleans the local templates.voidSynchronize the documentation of the VPLprotected static vplwsclient.VplFilefileToCaseinePath(File f, String projectLocation) voidfillCaseine(String vplId) protected voidvoidgenerate(boolean mvn, int template) Generates the project template.protected static StringBy convention binaries of a CaseInE project must be generated here.protected static StringBy convention corrected files generated for a CaseInE project must be here.protected static StringBy convention execution files generated for a CaseInE project must be here.protected static StringBy convention outputs of a CaseInE project must be here.protected static StringBy convention requested files generated for a CaseInE project must be here.getType()getVplId()booleanbooleanvoidlocal(ClassLoader cl) Generates the local caseine templates into caseine-output.voidnature()Set the caseine nature to the projectvoidpush(ClassLoader cl) Publishes the templates to the remote caseine server.
-
Field Details
-
VPLID_0
- See Also:
-
CASEINE_VPL_ID
-
CASEINE_VPL_TYPE
-
projectPath
-
vplId
-
caseineFile
-
INTERNAL_FILE
-
log
-
RF
- See Also:
-
EF
- See Also:
-
CF
- See Also:
-
PATH_SRC
By convention sources of a CaseInE project must be here. -
PATH_DOC
By convention sources of a CaseInE project must be here. -
PATH_BIN
By convention binaries of a CaseInE project must be here. -
PATH_TEST
By convention test sources of a CaseInE project must be here. -
PATH_RESOURCES_SRC
By convention resources of a CaseInE project must be here. -
PATH_RESOURCES_TEST
By convention test resources of a CaseInE project must be here. -
PATH_RESOURCES_LIB
By convention lib resources of a CaseInE project must be here. -
PLUGIN_LIB
- See Also:
-
-
Constructor Details
-
CaseineCommonProject
-
-
Method Details
-
isCaseine
public boolean isCaseine()- Specified by:
isCaseinein interfaceCaseineProject- Returns:
- True if it is a Caseine project, Maven projects are not managed
-
getType
- Specified by:
getTypein interfaceCaseineProject
-
getProperties
- Returns:
- all properties in the .caseine file
-
getVplId
- Specified by:
getVplIdin interfaceCaseineProject
-
fillCaseine
-
generate
public void generate(boolean mvn, int template) throws CaseineProjectAlreadyExistingException, BadIDEException, IOException, TestDirectoryMissingException, FileMissingException, UnitTestsFileMissingException Description copied from interface:CaseineProjectGenerates the project template.- Specified by:
generatein interfaceCaseineProject- Parameters:
mvn- True if we must generate the maven pom.xmltemplate- a number to define a kind of template- Throws:
CaseineProjectAlreadyExistingExceptionBadIDEExceptionIOExceptionTestDirectoryMissingExceptionFileMissingExceptionUnitTestsFileMissingException
-
local
Description copied from interface:CaseineProjectGenerates the local caseine templates into caseine-output.- Specified by:
localin interfaceCaseineProject- Parameters:
cl- an optional classloader to provide dependencies- Throws:
IOException- if ioExceptionClassNotFoundException- if the class is not foundMavenProjectException
-
push
public void push(ClassLoader cl) throws IOException, ClassNotFoundException, vplwsclient.exception.VplException, VPLIDMissingException, MavenProjectException Publishes the templates to the remote caseine server. The full description of the lab is synchronized.- Specified by:
pushin interfaceCaseineProject- Parameters:
cl- an optional classloader to provide dependencies- Throws:
IOException- if something wrongClassNotFoundException- if something wrongvplwsclient.exception.VplException- if something wrongVPLIDMissingExceptionMavenProjectException
-
clean
Description copied from interface:CaseineProjectCleans the local templates.- Specified by:
cleanin interfaceCaseineProject- Throws:
IOException- if an error occurs with the deleted files
-
isGenerated
public boolean isGenerated()- Specified by:
isGeneratedin interfaceCaseineProject
-
nature
Description copied from interface:CaseineProjectSet the caseine nature to the project- Specified by:
naturein interfaceCaseineProject- Throws:
CaseineProjectAlreadyExistingExceptionIOException
-
documentation
public void documentation() throws vplwsclient.exception.VplConnectionException, vplwsclient.exception.MoodleWebServiceException, IOExceptionDescription copied from interface:CaseineProjectSynchronize the documentation of the VPL- Specified by:
documentationin interfaceCaseineProject- Throws:
vplwsclient.exception.VplConnectionExceptionvplwsclient.exception.MoodleWebServiceExceptionIOException
-
getPATH_REQUESTED_FILES
By convention requested files generated for a CaseInE project must be here. -
getPATH_CORRECTED_FILES
By convention corrected files generated for a CaseInE project must be here. -
getPATH_EXECUTION_FILES
By convention execution files generated for a CaseInE project must be here. -
getPATH_OUTPUT
By convention outputs of a CaseInE project must be here. -
getPATH_BIN
By convention binaries of a CaseInE project must be generated here. -
fillCaseineProjectFile
protected void fillCaseineProjectFile() -
fileToCaseinePath
-
getProjectName
-