private File[] createFiles(String parameter) { String[] filespecs = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ File[] result = new File[filespecs.length]; for (int i = 0; i < filespecs.length; i++) result[i] = new File(filespecs[i]); return result; }
private File[] createFiles(String parameter) { String[] filespecs = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ File[] result = new File[filespecs.length]; for (int i = 0; i < filespecs.length; i++) result[i] = new File(filespecs[i]); return result; }
private File[] createFiles(String parameter) { String[] filespecs = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ File[] result = new File[filespecs.length]; for (int i = 0; i < filespecs.length; i++) result[i] = new File(filespecs[i]); return result; }
/** * Returns a string array of { ws, os, arch } as parsed from the given string * @param configSpec the string to parse * @return the ws, os, arch form of the given string */ public static String[] parseConfigSpec(String configSpec) { String[] result = getArrayFromString(configSpec, CONFIG_SEGMENT_SEPARATOR); for (int i = 0; i < result.length; i++) if (result[i].equals("*")) //$NON-NLS-1$ result[i] = CONFIG_ANY; if (result.length < 3) { String[] temp = new String[3]; System.arraycopy(result, 0, temp, 0, result.length); for (int i = result.length; i < temp.length; i++) { temp[i] = CONFIG_ANY; } result = temp; } return result; }
/** * Returns the VM arguments for this product. */ public String[] getVMArguments() { String line = product.getVMArguments(os, arch); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
private IVersionedId[] createVersionedIdList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ IVersionedId[] result = new IVersionedId[list.length]; for (int i = 0; i < result.length; i++) result[i] = VersionedId.parse(list[i]); return result; }
/** * Returns the program arguments for this product. */ public String[] getProgramArguments() { String line = product.getProgramArguments(os); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
/** * Returns the program arguments for this product. */ public String[] getProgramArguments() { String line = product.getProgramArguments(os, arch); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
private IVersionedId[] createVersionedIdList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ IVersionedId[] result = new IVersionedId[list.length]; for (int i = 0; i < result.length; i++) result[i] = VersionedId.parse(list[i]); return result; }
/** * Returns the VM arguments for this product. */ public String[] getVMArguments() { String line = product.getVMArguments(os); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
private IVersionedId[] createVersionedIdList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ IVersionedId[] result = new IVersionedId[list.length]; for (int i = 0; i < result.length; i++) result[i] = VersionedId.parse(list[i]); return result; }
/** * Returns the program arguments for this product. */ @Override public String[] getProgramArguments() { String line = product.getProgramArguments(os, arch); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
/** * Returns the VM arguments for this product. */ @Override public String[] getVMArguments() { String line = product.getVMArguments(os, arch); return AbstractPublisherAction.getArrayFromString(line, " "); //$NON-NLS-1$ }
private URI[] processRepositoryList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ if (list == null || list.length == 0) return null; List<URI> result = new ArrayList<>(list.length); if (result != null) { for (int i = 0; i < list.length; i++) { try { result.add(URIUtil.fromString(list[i])); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return result.toArray(new URI[result.size()]); }
private URI[] processRepositoryList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ if (list == null || list.length == 0) return null; List<URI> result = new ArrayList<URI>(list.length); if (result != null) { for (int i = 0; i < list.length; i++) { try { result.add(URIUtil.fromString(list[i])); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return result.toArray(new URI[result.size()]); }
private URI[] processRepositoryList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ if (list == null || list.length == 0) return null; List<URI> result = new ArrayList<URI>(list.length); if (result != null) { for (int i = 0; i < list.length; i++) { try { result.add(URIUtil.fromString(list[i])); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return result.toArray(new URI[result.size()]); }
private URI[] processRepositoryList(String parameter) { String[] list = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ if (list == null || list.length == 0) return null; List<URI> result = new ArrayList<URI>(list.length); if (result != null) { for (int i = 0; i < list.length; i++) { try { result.add(URIUtil.fromString(list[i])); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return result.toArray(new URI[result.size()]); }
protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException { super.processParameter(arg, parameter, publisherInfo); if (arg.equalsIgnoreCase("-id")) //$NON-NLS-1$ id = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ version = Version.parseVersion(parameter); if (arg.equalsIgnoreCase("-name")) //$NON-NLS-1$ name = parameter; if (arg.equalsIgnoreCase("-executable")) //$NON-NLS-1$ executableName = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-top")) //$NON-NLS-1$ topLevel = createVersionedIdList(parameter); if (arg.equalsIgnoreCase("-rootExclusions")) //$NON-NLS-1$ rootExclusions = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ }
@Override protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException { super.processParameter(arg, parameter, publisherInfo); if (arg.equalsIgnoreCase("-id")) //$NON-NLS-1$ id = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ version = Version.parseVersion(parameter); if (arg.equalsIgnoreCase("-name")) //$NON-NLS-1$ name = parameter; if (arg.equalsIgnoreCase("-executable")) //$NON-NLS-1$ executableName = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-top")) //$NON-NLS-1$ topLevel = createVersionedIdList(parameter); if (arg.equalsIgnoreCase("-rootExclusions")) //$NON-NLS-1$ rootExclusions = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ }
protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException { super.processParameter(arg, parameter, publisherInfo); if (arg.equalsIgnoreCase("-id")) //$NON-NLS-1$ id = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ version = Version.parseVersion(parameter); if (arg.equalsIgnoreCase("-name")) //$NON-NLS-1$ name = parameter; if (arg.equalsIgnoreCase("-executable")) //$NON-NLS-1$ executableName = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-top")) //$NON-NLS-1$ topLevel = createVersionedIdList(parameter); if (arg.equalsIgnoreCase("-rootExclusions")) //$NON-NLS-1$ rootExclusions = AbstractPublisherAction.getArrayFromString(parameter, ","); //$NON-NLS-1$ }