Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 96327 Details for
Bug 226850
Numerous errors while packing "SHA1 digest error for META-INF/eclipse.inf"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
226850.txt (text/plain), 3.17 KB, created by
Andrew Niefer
on 2008-04-16 15:51:12 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Andrew Niefer
Created:
2008-04-16 15:51:12 EDT
Size:
3.17 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.update.core >Index: jarprocessor/org/eclipse/update/internal/jarprocessor/PackStep.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.core/jarprocessor/org/eclipse/update/internal/jarprocessor/PackStep.java,v >retrieving revision 1.7 >diff -u -r1.7 PackStep.java >--- jarprocessor/org/eclipse/update/internal/jarprocessor/PackStep.java 14 May 2007 17:47:43 -0000 1.7 >+++ jarprocessor/org/eclipse/update/internal/jarprocessor/PackStep.java 16 Apr 2008 19:36:19 -0000 >@@ -23,7 +23,6 @@ > protected static String packCommand = null; > private static Boolean canPack = null; > >- private String arguments = null; > private Set exclusions = Collections.EMPTY_SET; > > public static boolean canPack() { >@@ -136,21 +135,17 @@ > return cmd; > } > >- protected String getArguments(File input, Properties inf, List containers) { >- if (arguments != null) >- return arguments; >+ protected String getArguments(File input, Properties inf, List containers) { > //1: Explicitly marked in our .inf file > if (inf != null && inf.containsKey(Utils.PACK_ARGS)) { >- arguments = inf.getProperty(Utils.PACK_ARGS); >- return arguments; >+ return inf.getProperty(Utils.PACK_ARGS); > } > > //2: Defaults set in one of our containing jars > for (Iterator iterator = containers.iterator(); iterator.hasNext();) { > Properties container = (Properties) iterator.next(); > if (container.containsKey(Utils.DEFAULT_PACK_ARGS)) { >- arguments = container.getProperty(Utils.DEFAULT_PACK_ARGS); >- return arguments; >+ return container.getProperty(Utils.DEFAULT_PACK_ARGS); > } > } > >@@ -158,19 +153,15 @@ > Properties options = getOptions(); > String argsKey = input.getName() + Utils.PACK_ARGS_SUFFIX; > if (options.containsKey(argsKey)) { >- arguments = options.getProperty(argsKey); >- return arguments; >+ return options.getProperty(argsKey); > } > > //4: Set by default in outside pack.properties file > if (options.containsKey(Utils.DEFAULT_PACK_ARGS)) { >- arguments = options.getProperty(Utils.DEFAULT_PACK_ARGS); >- return arguments; >+ return options.getProperty(Utils.DEFAULT_PACK_ARGS); > } > >- if (arguments == null) >- arguments = ""; >- return arguments; >+ return ""; //$NON-NLS-1$ > } > > public String getStepName() { >@@ -190,15 +181,17 @@ > } > verbose = v; > >- //mark as conditioned >- inf.put(Utils.MARK_PROPERTY, "true"); //$NON-NLS-1$ >- >- //record arguments used >- String arguments = inf.getProperty(Utils.PACK_ARGS); >- if (arguments == null) { >- arguments = getArguments(input, inf, containers); >- if (arguments != null && arguments.length() > 0) >- inf.put(Utils.PACK_ARGS, arguments); >+ //mark as conditioned if not previously marked. A signed jar is assumed to be previously conditioned. >+ if (inf.getProperty(Utils.MARK_PROPERTY) == null) { >+ inf.put(Utils.MARK_PROPERTY, "true"); //$NON-NLS-1$ >+ >+ //record arguments used >+ String arguments = inf.getProperty(Utils.PACK_ARGS); >+ if (arguments == null) { >+ arguments = getArguments(input, inf, containers); >+ if (arguments != null && arguments.length() > 0) >+ inf.put(Utils.PACK_ARGS, arguments); >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226850
:
95844
|
95845
|
96041
|
96168
|
96210
| 96327