|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.sandev.sandbuild.WARDeploymentPackager
public class WARDeploymentPackager
Deploy the finished build files as a single WAR file.
| Constructor Summary | |
|---|---|
WARDeploymentPackager()
|
|
| Method Summary | |
|---|---|
void |
doDeployment(SandProject deployment,
SandProject platform,
int mode)
Deploy the files into the container, provided anything has changed. |
protected java.lang.String |
getEnvDir(SandProject proj)
Return the name of the env dir for the specified project. |
protected java.lang.String |
getWardeployDir(SandProject proj)
Return the name of the wardeploy repackaging directory off the given project. |
protected boolean |
haveNewerFile(java.lang.String dirstr,
long gateTime)
Return true if any file in the given directory was modified more recently than the given gating time. |
protected void |
log(java.lang.String text)
Dump the specified text to the build log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WARDeploymentPackager()
| Method Detail |
|---|
public void doDeployment(SandProject deployment,
SandProject platform,
int mode)
throws SandBuildException
This worked great until the build computers started repacking the war faster than the file time resolution could account for, so now we subtract a couple of seconds from the current time to account for that. That means that if you do a complete build, and then another incremental build immediately after on a really fast machine, it might still outpace the check and repack when it didn't need to. In practice that's a lot less annoying than not deploying when it should.
doDeployment in interface SandDeploymentPackagerSandBuildExceptionprotected void log(java.lang.String text)
protected java.lang.String getEnvDir(SandProject proj)
throws SandBuildException
SandBuildException
protected java.lang.String getWardeployDir(SandProject proj)
throws SandBuildException
SandBuildException
protected boolean haveNewerFile(java.lang.String dirstr,
long gateTime)
throws SandBuildException
SandBuildException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||