1 17 18 package org.apache.tools.ant.taskdefs.optional.ide; 19 20 import java.util.Vector ; 21 22 45 public class VAJLoadServlet extends VAJToolsServlet { 46 47 51 public static final String VERSION_PARAM = "version"; 52 53 57 protected void executeRequest() { 58 String [] projectNames = getParamValues(PROJECT_NAME_PARAM); 59 String [] versionNames = getParamValues(VERSION_PARAM); 60 61 Vector projectDescriptions = new Vector (projectNames.length); 62 for (int i = 0; i < projectNames.length && i < versionNames.length; i++) { 63 VAJProjectDescription desc = new VAJProjectDescription(); 64 desc.setName(projectNames[i]); 65 desc.setVersion(versionNames[i]); 66 projectDescriptions.addElement(desc); 67 } 68 69 util.loadProjects(projectDescriptions); 70 } 71 } 72 | Popular Tags |