public class Main extends Object
| Modifier and Type | Field and Description |
|---|---|
File |
canonical |
String |
cap |
List<File> |
certificates |
String |
connectionCheckUrl |
File |
download
This option builds the directory image for the download server.
|
static String |
EOL |
File |
htaccess |
String |
id |
File |
indexHtml |
File |
latestCoreTxt |
Integer |
maxPlugins |
File |
output |
boolean |
prettyPrint |
File |
privateKey |
File |
releaseHistory |
List<File> |
rootCA |
File |
www |
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
protected net.sf.json.JSONObject |
buildCore(MavenRepository repository,
PrintWriter redirect)
Identify the latest core, populates the htaccess redirect file, optionally download the core wars and build the index.html
|
protected net.sf.json.JSONObject |
buildFullReleaseHistory(MavenRepository repo)
Build JSON for the release history list.
|
protected net.sf.json.JSONObject |
buildPlugins(MavenRepository repository,
PrintWriter redirect)
Build JSON for the plugin list.
|
protected net.sf.json.JSONArray |
buildReleaseHistory(MavenRepository repository) |
protected void |
createLatestSymlink(PluginHistory hpi,
HPI latest)
Generates symlink to the latest version.
|
protected MavenRepository |
createRepository() |
protected List<X509Certificate> |
getCertificateChain()
Loads a certificate chain and makes sure it's valid.
|
static void |
main(String[] args) |
void |
run() |
int |
run(String[] args) |
protected void |
sign(net.sf.json.JSONObject o)
Generates a canonicalized JSON format of the given object, and put the signature in it.
|
protected void |
stage(MavenArtifact a,
File dst)
Stages an artifact into the specified location.
|
public File output
public File releaseHistory
public File htaccess
public File download
public File www
public File indexHtml
public File latestCoreTxt
public File privateKey
public File canonical
public String id
public Integer maxPlugins
public String connectionCheckUrl
public boolean prettyPrint
public String cap
public static final String EOL
protected MavenRepository createRepository() throws Exception
Exceptionprotected void sign(net.sf.json.JSONObject o)
throws GeneralSecurityException,
IOException
GeneralSecurityExceptionIOExceptionprotected List<X509Certificate> getCertificateChain() throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected net.sf.json.JSONObject buildPlugins(MavenRepository repository, PrintWriter redirect) throws Exception
repository - redirect - Exceptionprotected void createLatestSymlink(PluginHistory hpi, HPI latest) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprotected void stage(MavenArtifact a, File dst) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected net.sf.json.JSONObject buildFullReleaseHistory(MavenRepository repo) throws Exception
repo - Exceptionprotected net.sf.json.JSONArray buildReleaseHistory(MavenRepository repository) throws Exception
Exceptionprotected net.sf.json.JSONObject buildCore(MavenRepository repository, PrintWriter redirect) throws Exception
ExceptionCopyright © 2004-2012. All Rights Reserved.