private static void usage() { System.out.println("Android Manifest Merger Tool Version 2\n"); System.out.println("Usage:"); System.out.println("Merger --main mainAndroidManifest.xml"); System.out.println("\t--log [VERBOSE, INFO, WARNING, ERROR]"); System.out.println("\t--debuggable [true, false]"); System.out.println("\t--libs [path separated list of lib's manifests]"); System.out.println("\t--overlays [path separated list of overlay's manifests]"); System.out.println( "\t--property [" + Joiner.on(" | ").join(ManifestSystemProperty.values()) + "=value]"); System.out.println("\t--placeholder [name=value]"); System.out.println("\t--out [path of the output file]"); }
+ value.substring(0, value.indexOf('=')) + ", allowed properties are : " + Joiner.on(',').join(ManifestSystemProperty.values())); return 1;
public static void usage() { System.out.println("Android Manifest Merger Tool Version 2\n"); System.out.println("Usage:"); System.out.println("Merger --main mainAndroidManifest.xml"); System.out.println("\t--log [VERBOSE, INFO, WARNING, ERROR]"); System.out.println("\t--libs [path separated list of lib's manifests]"); System.out.println("\t--overlays [path separated list of overlay's manifests]"); System.out.println("\t--property [" + Joiner.on(" | ").join(ManifestSystemProperty.values()) + "=value]"); System.out.println("\t--placeholder [name=value]"); System.out.println("\t--out [path of the output file]"); }
logger.error(e, "Invalid property name "+ value.substring(0, value.indexOf('=')) + ", allowed properties are : " + Joiner .on(',').join(ManifestSystemProperty.values())); return 1;
/** * Perform {@link ManifestSystemProperty} injection. * @param mergingReport to log actions and errors. * @param xmlDocument the xml document to inject into. */ protected void performSystemPropertiesInjection( @NonNull MergingReport.Builder mergingReport, @NonNull XmlDocument xmlDocument) { for (ManifestSystemProperty manifestSystemProperty : ManifestSystemProperty.values()) { String propertyOverride = mSystemPropertyResolver.getValue(manifestSystemProperty); if (propertyOverride != null) { manifestSystemProperty.addTo( mergingReport.getActionRecorder(), xmlDocument, propertyOverride); } } }