protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); if (arg.equalsIgnoreCase("-categoryQualifier")) //$NON-NLS-1$ categoryQualifier = parameter; if (arg.equalsIgnoreCase("-categoryVersion")) //$NON-NLS-1$ categoryVersion = parameter; }
protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); this.append = true; // Always append, otherwise we will end up with nothing if (arg.equalsIgnoreCase("-categoryQualifier")) //$NON-NLS-1$ categoryQualifier = parameter; if (arg.equalsIgnoreCase("-categoryDefinition")) //$NON-NLS-1$ categoryDefinition = URIUtil.fromString(parameter); }
protected void processCommandLineArguments(String[] args, PublisherInfo publisherInfo) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { // check for args without parameters (i.e., a flag arg) processFlag(args[i], publisherInfo); // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) //$NON-NLS-1$ continue; processParameter(args[i], args[++i], publisherInfo); } }
protected void processCommandLineArguments(String[] args, PublisherInfo publisherInfo) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { // check for args without parameters (i.e., a flag arg) processFlag(args[i], publisherInfo); // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) //$NON-NLS-1$ continue; processParameter(args[i], args[++i], publisherInfo); } }
protected void processCommandLineArguments(String[] args, PublisherInfo publisherInfo) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { // check for args without parameters (i.e., a flag arg) processFlag(args[i], publisherInfo); // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) //$NON-NLS-1$ continue; processParameter(args[i], args[++i], publisherInfo); } }
protected void processCommandLineArguments(String[] args, PublisherInfo publisherInfo) throws Exception { if (args == null) return; for (int i = 0; i < args.length; i++) { // check for args without parameters (i.e., a flag arg) processFlag(args[i], publisherInfo); // check for args with parameters. If we are at the last argument or if the next one // has a '-' as the first character, then we can't have an arg with a parm so continue. if (i == args.length - 1 || args[i + 1].startsWith("-")) //$NON-NLS-1$ continue; processParameter(args[i], args[++i], publisherInfo); } }
@Override protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); if (arg.equalsIgnoreCase("-features")) //$NON-NLS-1$ features = createFiles(parameter); if (arg.equalsIgnoreCase("-bundles")) //$NON-NLS-1$ bundles = createFiles(parameter); if (arg.equalsIgnoreCase("-iu")) //$NON-NLS-1$ rootIU = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ rootVersion = parameter; }
protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); if (arg.equalsIgnoreCase("-features")) //$NON-NLS-1$ features = createFiles(parameter); if (arg.equalsIgnoreCase("-bundles")) //$NON-NLS-1$ bundles = createFiles(parameter); if (arg.equalsIgnoreCase("-iu")) //$NON-NLS-1$ rootIU = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ rootVersion = parameter; }
protected void processParameter(String arg, String parameter, PublisherInfo pinfo) throws URISyntaxException { super.processParameter(arg, parameter, pinfo); if (arg.equalsIgnoreCase("-features")) //$NON-NLS-1$ features = createFiles(parameter); if (arg.equalsIgnoreCase("-bundles")) //$NON-NLS-1$ bundles = createFiles(parameter); if (arg.equalsIgnoreCase("-iu")) //$NON-NLS-1$ rootIU = parameter; if (arg.equalsIgnoreCase("-version")) //$NON-NLS-1$ rootVersion = parameter; }
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$ }
@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("-productFile")) //$NON-NLS-1$ product = parameter; if (arg.equalsIgnoreCase("-executables")) //$NON-NLS-1$ executables = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-jreLocation")) //$NON-NLS-1$ jreLocation = parameter; if (arg.equalsIgnoreCase("-pluginVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, null); info.addAdvice(versionAdvice); } if (arg.equalsIgnoreCase("-featureVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, ".feature.group"); //$NON-NLS-1$ info.addAdvice(versionAdvice); } } }
protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException { super.processParameter(arg, parameter, publisherInfo); if (arg.equalsIgnoreCase("-productFile")) //$NON-NLS-1$ product = parameter; if (arg.equalsIgnoreCase("-executables")) //$NON-NLS-1$ executables = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-pluginVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, null); info.addAdvice(versionAdvice); } if (arg.equalsIgnoreCase("-featureVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, ".feature.group"); //$NON-NLS-1$ info.addAdvice(versionAdvice); } } }
@Override protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException { super.processParameter(arg, parameter, publisherInfo); if (arg.equalsIgnoreCase("-productFile")) //$NON-NLS-1$ product = parameter; if (arg.equalsIgnoreCase("-executables")) //$NON-NLS-1$ executables = parameter; if (arg.equalsIgnoreCase("-flavor")) //$NON-NLS-1$ flavor = parameter; if (arg.equalsIgnoreCase("-jreLocation")) //$NON-NLS-1$ jreLocation = parameter; if (arg.equalsIgnoreCase("-pluginVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, null); info.addAdvice(versionAdvice); } if (arg.equalsIgnoreCase("-featureVersionsAdvice")) { //$NON-NLS-1$ VersionAdvice versionAdvice = new VersionAdvice(); versionAdvice.load(IInstallableUnit.NAMESPACE_IU_ID, parameter, ".feature.group"); //$NON-NLS-1$ info.addAdvice(versionAdvice); } } }