/** * Return a List<String> of all the fully-qualified anchors specified in the * properties location listed in <code>opts</code>. If no properties * location is listed in <code>opts</code>, this returns whatever the * product derivations can find in their default configurations. * If the properties location specified in <code>opts</code> already * contains an anchor spec, this returns that anchor. Note that in this * fully-qualified-input case, the logic involving product derivations * and resource parsing is short-circuited, so this method * should not be used as a means to test that a particular anchor is * defined in a given location by invoking with a fully-qualified anchor. * * This does not mutate <code>opts</code>. * * @since 1.1.0 */ public static List getFullyQualifiedAnchorsInPropertiesLocation( Options opts) { String props = opts.getProperty("properties", "p", null); if (props != null) { int anchorPosition = props.indexOf("#"); if (anchorPosition > -1) return Arrays.asList(new String[] { props }); } return ProductDerivations.getFullyQualifiedAnchorsInPropertiesLocation( props); }
/** * Return a List<String> of all the fully-qualified anchors specified in the * properties location listed in <code>opts</code>. If no properties * location is listed in <code>opts</code>, this returns whatever the * product derivations can find in their default configurations. * If the properties location specified in <code>opts</code> already * contains an anchor spec, this returns that anchor. Note that in this * fully-qualified-input case, the logic involving product derivations * and resource parsing is short-circuited, so this method * should not be used as a means to test that a particular anchor is * defined in a given location by invoking with a fully-qualified anchor. * * This does not mutate <code>opts</code>. * * @since 1.1.0 */ public static List<String> getFullyQualifiedAnchorsInPropertiesLocation( Options opts) { String props = opts.getProperty("properties", "p", null); if (props != null) { int anchorPosition = props.indexOf("#"); if (anchorPosition > -1) return Arrays.asList(new String[] { props }); } return ProductDerivations.getFullyQualifiedAnchorsInPropertiesLocation( props); }
/** * Return a List<String> of all the fully-qualified anchors specified in the * properties location listed in <code>opts</code>. If no properties * location is listed in <code>opts</code>, this returns whatever the * product derivations can find in their default configurations. * If the properties location specified in <code>opts</code> already * contains an anchor spec, this returns that anchor. Note that in this * fully-qualified-input case, the logic involving product derivations * and resource parsing is short-circuited, so this method * should not be used as a means to test that a particular anchor is * defined in a given location by invoking with a fully-qualified anchor. * * This does not mutate <code>opts</code>. * * @since 1.1.0 */ public static List<String> getFullyQualifiedAnchorsInPropertiesLocation( Options opts) { String props = opts.getProperty("properties", "p", null); if (props != null) { int anchorPosition = props.indexOf("#"); if (anchorPosition > -1) return Arrays.asList(new String[] { props }); } return ProductDerivations.getFullyQualifiedAnchorsInPropertiesLocation( props); }
/** * Return a List<String> of all the fully-qualified anchors specified in the * properties location listed in <code>opts</code>. If no properties * location is listed in <code>opts</code>, this returns whatever the * product derivations can find in their default configurations. * If the properties location specified in <code>opts</code> already * contains an anchor spec, this returns that anchor. Note that in this * fully-qualified-input case, the logic involving product derivations * and resource parsing is short-circuited, so this method * should not be used as a means to test that a particular anchor is * defined in a given location by invoking with a fully-qualified anchor. * * This does not mutate <code>opts</code>. * * @since 1.1.0 */ public static List<String> getFullyQualifiedAnchorsInPropertiesLocation( Options opts) { String props = opts.getProperty("properties", "p", null); if (props != null) { int anchorPosition = props.indexOf("#"); if (anchorPosition > -1) return Arrays.asList(new String[] { props }); } return ProductDerivations.getFullyQualifiedAnchorsInPropertiesLocation( props); }