Package net.sourceforge.cruisecontrol.gendoc

Examples of net.sourceforge.cruisecontrol.gendoc.PluginInfo


        "</cruisecontrol>",
        "Proj1",
        "Proj2");
    TreeModel model = tree.getModel();
    RootNode root = (RootNode) model.getRoot();
    PluginInfo rootInfo = root.getPluginInfo();
    this.targetPluginInfo = rootInfo.getChildPluginByName("project").getChildPluginByName("schedule").getChildPluginByName("ant");
    this.testNode = (PluginPluginNode) root.getChildAt(0);
  }
View Full Code Here


    return "http://" + getHost() + ":" + getReportingServerPort()
      + "/cruisecontrol/buildresults/" + project.getProjectName();
  }
 
  public PluginInfo getPluginInfo(String projectName) {
    PluginInfo projectInfo;
    ObjectName objName = null;
    try {
      objName = new ObjectName( CRUISE_CONTROL_MANAGER_ID_UNIQUE );
      projectInfo = (PluginInfo) getConnection().invoke(
          objName,
View Full Code Here

      tabs.addTab("Server Overview", getAttributePane());
    }
   
    // For each category of children, display a separate tab showing all instances
    // of that child category.
    PluginInfo info = this.getPluginInfo();
    Collection<ChildInfo> allowedChildren = info.getChildren();
    for (ChildInfo childInfo : allowedChildren) {
      tabs.addTab(childInfo.getTitle(), createNodeChildEditor(childInfo));
    }
   
    return tabs;
View Full Code Here

    if (projectName == null) {
      throw new IllegalArgumentException("Project element must contain a 'name' attribute");
    }
   
    // Grab the PluginInfo tree for this project.
    PluginInfo root = server.getPluginInfo(projectName);
    if (root == null) {
      // The project doesn't exist (yet), so just default to the root plugin registry.
      root = server.getPluginInfo(null);
    }
   
    // Return the <project> node from the given root.
    return root.getChildPluginByName(XML_NAME);
  }
View Full Code Here

     * @param node The BasicNode to build the menu for
     */
    public void buildMenu(BasicNode node) {
      al.setCurrentNode(node);
      popup.removeAll();
      PluginInfo info = node.getPluginInfo();
      List<PluginInfo> allowed = getAllowedNodes(info);
     
      //TODO Name the menu add bootstrappers, add publishers, etc based on what type the node is
      // instead of the generic add child.
      JMenu menu = new JMenu("add child");
View Full Code Here

  /**
   * The GUITree constructor initializes the JTree object.
   * @param CruisecontrolServer - The CruiseControl server
   */
  public ConfigTree(PluginServerInterface ccServer) {
    PluginInfo cruiseCtrlPluginInfo = null;
    try {
      cruiseCtrlPluginInfo = ccServer.getPluginInfo(null);
    } catch (Exception e) {
      // TODO Display error in DocPane that states the PluginInfo was not able to be accessed. And set the panel disabled from further update.
      System.err.println("--Get Plugin Info Failed...");
View Full Code Here

 
  public void testProjectSpecificPlugins() {
    // Have two plugins with the same name but different class (and in different
    // projects) in the same tree.
   
    PluginInfo schedule1Info;
    PluginInfo schedule2Info;
   
    // Build custom PluginInfo hierarchies; one for the root and one for each project.
    // The project hierarchies both have <schedule> plugins with different descriptions,
    // allowing us to make sure that the right plugin info gets associated with each
    // project.
    AttributeInfo[] noAttrs = {};
    ChildInfo[] noChildren = {};
    PluginInfo rootInfo = new PluginInfo(null, "cruisecontrol", "", "", noAttrs, new ChildInfo[] {
        new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
          new PluginInfo(null, "project", "", "", noAttrs, new ChildInfo[] {
            new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
              new PluginInfo(null, "schedule", "root version of schedule", "", noAttrs, noChildren)
            })})})});
    PluginInfo proj1Info = new PluginInfo(null, "cruisecontrol", "", "", noAttrs, new ChildInfo[] {
        new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
          new PluginInfo(null, "project", "", "", noAttrs, new ChildInfo[] {
            new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
              schedule1Info = new PluginInfo(null, "schedule", "proj1 version of schedule", "", new AttributeInfo[] {
                new AttributeInfo("interval", AttributeType.NUMBER, "", "", "", new int[] {0, 1}, "")
              }, noChildren)
            })})})});
    PluginInfo proj2Info = new PluginInfo(null, "cruisecontrol", "", "", noAttrs, new ChildInfo[] {
        new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
          new PluginInfo(null, "project", "", "", noAttrs, new ChildInfo[] {
            new ChildInfo("", "", 0, -1, "", new PluginInfo[] {
              schedule2Info = new PluginInfo(null, "schedule", "proj2 version of schedule", "", new AttributeInfo[] {
                new AttributeInfo("interval", AttributeType.NUMBER, "", "", "", new int[] {0, 1}, "")
              }, noChildren)
            })})})});
   
    // Build a custom MockServer.
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.gendoc.PluginInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.