make/common/JarArchive.gmk
changeset 41460 4d20b8cc49d4
parent 33438 35cd6a1619df
child 42136 f872c8278074
equal deleted inserted replaced
41459:7a3eeb2a56bc 41460:4d20b8cc49d4
     1 #
     1 #
     2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
   240         # either the jar file does not exist, or we need to recreate it from
   240         # either the jar file does not exist, or we need to recreate it from
   241         # from scratch anyway since a simple update will not catch all the
   241         # from scratch anyway since a simple update will not catch all the
   242         # potential changes.
   242         # potential changes.
   243 	$$(if $$(filter $$($1_VARDEPS_FILE) $$($1_MANIFEST), $$?), \
   243 	$$(if $$(filter $$($1_VARDEPS_FILE) $$($1_MANIFEST), $$?), \
   244 	  $$(if $$($1_MANIFEST), \
   244 	  $$(if $$($1_MANIFEST), \
   245 	    $(SED) -e '$(DOLLAR)$(DOLLAR)a\' $$($1_MANIFEST) > $$($1_MANIFEST_FILE) $$(NEWLINE) \
   245 	    $(CP) $$($1_MANIFEST) $$($1_MANIFEST_FILE) $$(NEWLINE) \
   246 	  , \
   246 	  , \
   247 	    $(RM) $$($1_MANIFEST_FILE) && $(TOUCH) $$($1_MANIFEST_FILE) $$(NEWLINE)) \
   247 	    $(RM) $$($1_MANIFEST_FILE) && $(TOUCH) $$($1_MANIFEST_FILE) $$(NEWLINE)) \
   248 	  $$(if $$($1_JARMAIN), \
   248 	  $$(if $$($1_JARMAIN), \
   249 	    $(ECHO) "Main-Class: $$(strip $$($1_JARMAIN))" >> $$($1_MANIFEST_FILE) $$(NEWLINE)) \
   249 	    $(ECHO) "Main-Class: $$(strip $$($1_JARMAIN))" >> $$($1_MANIFEST_FILE) $$(NEWLINE)) \
   250 	  $$(if $$($1_EXTRA_MANIFEST_ATTR), \
   250 	  $$(if $$($1_EXTRA_MANIFEST_ATTR), \