Package caseine
Class Caseine
java.lang.Object
caseine.Caseine
The push command for the vpl design tool. It can be used to generate locally the caseine structure
and remotely the VPL files( Requested Files, Execution Files, Corrected Files).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCleans the local templates.static voiddocumentation(String projectPath, String vplId, String url, String token, boolean settings) static voidgenerate(String projectPath, String vplId, String lang, String ide, boolean mvn, int template, boolean settings) Generates the project template.static booleanisGenerated(String projectPath) static voidlocal(String projectPath, String vplId, ClassLoader cl) Generates the local templates.static voidstatic voidstatic voidPublishes the templates to the remote caseine server.static voidudpateSettings(String projectPath, String vplId, String url, String token, boolean settings)
-
Constructor Details
-
Caseine
public Caseine()
-
-
Method Details
-
main
- Parameters:
args- command line argument- Throws:
Exception- if something wrong
-
generate
public static void generate(String projectPath, String vplId, String lang, String ide, boolean mvn, int template, boolean settings) throws CaseineProjectAlreadyExistingException, IOException, BadIDEException, TestDirectoryMissingException, FileMissingException, UnitTestsFileMissingException Generates the project template.- Parameters:
projectPath-vplId-lang-ide-mvn-- Throws:
CaseineProjectAlreadyExistingExceptionIOExceptionBadIDEExceptionUnitTestsFileMissingExceptionFileMissingExceptionTestDirectoryMissingException
-
local
public static void local(String projectPath, String vplId, ClassLoader cl) throws IOException, ClassNotFoundException, NotACaseineProjectException, MavenProjectException Generates the local templates.- Parameters:
projectPath- the project locationvplId-cl- an optional classloader to provide dependencies- Throws:
IOException- if ioExceptionClassNotFoundException- if the class is not foundNotACaseineProjectExceptionMavenProjectException
-
push
public static void push(String projectPath, String vplId, String url, String token, ClassLoader cl, boolean settings) throws IOException, ClassNotFoundException, vplwsclient.exception.VplException, VPLIDMissingException, MavenProjectException, NotACaseineProjectException, NothingPushedException Publishes the templates to the remote caseine server.- Parameters:
projectPath- the local pathvplId- the id of the VPLurl- optionnal urltoken- your token to be authenticatedcl- an optional classloader to provide dependencies- Throws:
IOException- if something wrongClassNotFoundException- if something wrongvplwsclient.exception.VplException- if something wrongVPLIDMissingExceptionMavenProjectExceptionNotACaseineProjectExceptionNothingPushedException
-
clean
Cleans the local templates.- Parameters:
projectPath- the project location- Throws:
IOException- if an error occurs with the deleted filesNotACaseineProjectException
-
nature
public static void nature(String projectPath, String vplId) throws CaseineProjectAlreadyExistingException, IOException, NotACaseineProjectException -
documentation
public static void documentation(String projectPath, String vplId, String url, String token, boolean settings) throws vplwsclient.exception.VplConnectionException, vplwsclient.exception.MoodleWebServiceException, IOException, NotACaseineProjectException - Throws:
vplwsclient.exception.VplConnectionExceptionvplwsclient.exception.MoodleWebServiceExceptionIOExceptionNotACaseineProjectException
-
udpateSettings
public static void udpateSettings(String projectPath, String vplId, String url, String token, boolean settings) throws vplwsclient.exception.VplConnectionException, vplwsclient.exception.MoodleWebServiceException, IOException, NotACaseineProjectException - Throws:
vplwsclient.exception.VplConnectionExceptionvplwsclient.exception.MoodleWebServiceExceptionIOExceptionNotACaseineProjectException
-
isGenerated
- Throws:
NotACaseineProjectException
-