forked from openkylin/platform_build
enable embeded build number in jar manifest
* if a module uses LOCAL_JAR_MANIFEST * if the manifest file has the string '%BUILD_NUMBER%' in it Bug: 10793010 Change-Id: I1ed3dae0706e6ad26c2bce68269c1abb7b4a7325
This commit is contained in:
parent
8dcb53c691
commit
5c9a1a4064
|
@ -1516,8 +1516,12 @@ $(if $(PRIVATE_JAR_PACKAGES), $(hide) find $(PRIVATE_CLASS_INTERMEDIATES_DIR) -m
|
|||
-not -path $(PRIVATE_CLASS_INTERMEDIATES_DIR)/$(subst .,/,$(pkg))) \
|
||||
| xargs rm -rf)
|
||||
$(if $(PRIVATE_RMTYPEDEFS), $(hide) $(RMTYPEDEFS) -v $(PRIVATE_CLASS_INTERMEDIATES_DIR))
|
||||
$(hide) jar $(if $(strip $(PRIVATE_JAR_MANIFEST)),-cfm,-cf) \
|
||||
$@ $(PRIVATE_JAR_MANIFEST) -C $(PRIVATE_CLASS_INTERMEDIATES_DIR) .
|
||||
$(if $(PRIVATE_JAR_MANIFEST), \
|
||||
$(hide) sed -e 's/%BUILD_NUMBER%/$(BUILD_NUMBER)/' \
|
||||
$(PRIVATE_JAR_MANIFEST) > $(dir $@)/manifest.mf && \
|
||||
jar -cfm $@ $(dir $@)/manifest.mf \
|
||||
-C $(PRIVATE_CLASS_INTERMEDIATES_DIR) ., \
|
||||
$(hide) jar -cf $@ -C $(PRIVATE_CLASS_INTERMEDIATES_DIR) .)
|
||||
endef
|
||||
|
||||
define transform-java-to-classes.jar
|
||||
|
|
Loading…
Reference in New Issue