Package caseine.project
Interface CaseineProject
- All Known Implementing Classes:
CaseineCommonProject,CaseineCppProject,CaseineJavaProject,CaseinePythonProject
public interface CaseineProject
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Cleans the local templates.booleanSynchronize the documentation of the VPLvoidgenerate(boolean mvn, int template) Generates the project template.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.booleanUpdate the settings of the VPL
-
Method Details
-
isCaseine
boolean isCaseine()- Returns:
- True if it is a Caseine project
-
getType
CaseineProject.ProjectType getType() -
getVplId
String getVplId() -
generate
void generate(boolean mvn, int template) throws CaseineProjectAlreadyExistingException, BadIDEException, IOException, TestDirectoryMissingException, FileMissingException, UnitTestsFileMissingException Generates the project template.- Parameters:
mvn- True if we must generate the maven pom.xmltemplate- a number to define a kind of template- Throws:
CaseineProjectAlreadyExistingExceptionBadIDEExceptionIOExceptionTestDirectoryMissingExceptionUnitTestsFileMissingExceptionFileMissingException
-
local
Generates the local caseine templates into caseine-output.- Parameters:
cl- an optional classloader to provide dependencies- Throws:
IOException- if ioExceptionClassNotFoundException- if the class is not foundMavenProjectException
-
push
void push(ClassLoader cl) throws IOException, ClassNotFoundException, vplwsclient.exception.VplException, VPLIDMissingException, MavenProjectException, NothingPushedException Publishes the templates to the remote caseine server.- Parameters:
cl- an optional classloader to provide dependencies- Throws:
IOException- if something wrongClassNotFoundException- if something wrongvplwsclient.exception.VplException- if something wrongVPLIDMissingExceptionMavenProjectExceptionNothingPushedException
-
clean
Cleans the local templates.- Throws:
IOException- if an error occurs with the deleted files
-
isGenerated
boolean isGenerated() -
nature
Set the caseine nature to the project -
documentation
boolean documentation() throws vplwsclient.exception.VplConnectionException, vplwsclient.exception.MoodleWebServiceException, IOExceptionSynchronize the documentation of the VPL- Returns:
- true if something is published on the server
- Throws:
vplwsclient.exception.VplConnectionExceptionvplwsclient.exception.MoodleWebServiceExceptionIOException
-
updateSettings
boolean updateSettings() throws vplwsclient.exception.VplConnectionException, vplwsclient.exception.MoodleWebServiceException, IOExceptionUpdate the settings of the VPL- Returns:
- true if something is published on the server
- Throws:
vplwsclient.exception.VplConnectionExceptionvplwsclient.exception.MoodleWebServiceExceptionIOException
-