org_scala_tools_maven_cs
Class ScalacsClient
java.lang.Object
org_scala_tools_maven_cs.ScalacsClient
public class ScalacsClient
- extends Object
ScalacsClient is a client used to send request to a scalacs running server.
- Author:
- davidB
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOOT_PROP_RSRC
public static final String BOOT_PROP_RSRC
- See Also:
- Constant Field Values
linePattern
public static Pattern linePattern
locationPattern
public static Pattern locationPattern
ScalacsClient
public ScalacsClient(ScalaMojoSupport mojo,
String csGroupId,
String csArtifactId,
String csVersion,
String[] jvmArgs)
parse
public List<ScalacsClient.LogEvent> parse(String response)
throws Exception
- Throws:
Exception
sendRequestCreateOrUpdate
public String sendRequestCreateOrUpdate(String yamlDef)
throws Exception
- request to createOrUpdate one or more project define in the Yaml syntax, each project definition should be separated by "---"
- Returns:
- the output (log) of the request
- Throws:
Exception
sendRequestRemove
public String sendRequestRemove(String projectName)
throws Exception
- Returns:
- the output (log) of the request
- Throws:
Exception
sendRequestCompile
public String sendRequestCompile(String projectName,
boolean withDependencies,
boolean withDependent)
throws Exception
- Returns:
- the output (log) of the request
- Throws:
Exception
sendRequestClean
public String sendRequestClean()
throws Exception
- Returns:
- the output (log) of the request
- Throws:
Exception
sendRequestStop
public String sendRequestStop()
throws Exception
- Returns:
- the output (log) of the request
- Throws:
Exception
sendRequest
protected String sendRequest(String action,
String data)
throws Exception
- Throws:
Exception
traceUrl
public void traceUrl(URL url)
throws Exception
- Implementation could override this method if it want to print, log, url requested
- Throws:
Exception
startNewServer
public void startNewServer()
throws Exception
- Implementation should provide a way to startNewServer (used if call sendRequestCreateOrUpdate and no server is up)
- Throws:
Exception
Copyright © 2010-2011 Scala Tools. All Rights Reserved.