org.jvnet.hudson.update_center
Class Main

java.lang.Object
  extended by org.jvnet.hudson.update_center.Main

public class Main
extends Object

Author:
Kohsuke Kawaguchi

Field Summary
 List<File> certificates
           
 String connectionCheckUrl
           
 File download
          This option builds the directory image for the download server.
 File htaccess
           
 String id
           
 File indexHtml
           
 File output
           
 boolean prettyPrint
           
 File privateKey
           
 File releaseHistory
           
 File www
           
 
Constructor Summary
Main()
           
 
Method Summary
protected  net.sf.json.JSONObject buildCore(MavenRepository repository, PrintWriter redirect)
          Build JSON for the core Jenkins.
protected  net.sf.json.JSONObject buildPlugins(MavenRepository repository, PrintWriter redirect)
          Build JSON for the plugin list.
protected  net.sf.json.JSONArray buildReleaseHistory(MavenRepository repository)
          Build JSON for the release history list.
protected  MavenRepository createRepository()
           
static void main(String[] args)
           
 void run()
           
 int run(String[] args)
           
protected  void stage(MavenArtifact a, File dst)
          Stages an artifact into the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

public File output

releaseHistory

public File releaseHistory

htaccess

public File htaccess

download

public File download
This option builds the directory image for the download server.


www

public File www

indexHtml

public File indexHtml

privateKey

public File privateKey

certificates

public List<File> certificates

id

public String id

connectionCheckUrl

public String connectionCheckUrl

prettyPrint

public boolean prettyPrint
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

run

public int run(String[] args)
        throws Exception
Throws:
Exception

run

public void run()
         throws Exception
Throws:
Exception

createRepository

protected MavenRepository createRepository()
                                    throws Exception
Throws:
Exception

buildPlugins

protected net.sf.json.JSONObject buildPlugins(MavenRepository repository,
                                              PrintWriter redirect)
                                       throws Exception
Build JSON for the plugin list.

Parameters:
repository -
redirect -
Throws:
Exception

stage

protected void stage(MavenArtifact a,
                     File dst)
              throws IOException,
                     InterruptedException
Stages an artifact into the specified location.

Throws:
IOException
InterruptedException

buildReleaseHistory

protected net.sf.json.JSONArray buildReleaseHistory(MavenRepository repository)
                                             throws Exception
Build JSON for the release history list.

Parameters:
repository -
Throws:
Exception

buildCore

protected net.sf.json.JSONObject buildCore(MavenRepository repository,
                                           PrintWriter redirect)
                                    throws Exception
Build JSON for the core Jenkins.

Throws:
Exception


Copyright © 2004-2011. All Rights Reserved.