Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing old todo and displaying proper output paths

  • Loading branch information...
commit f5c9ef1ddfb3834aafe567fadeab62d45f0cde1a 1 parent 75a3907
@bjtitus bjtitus authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 Generating/GBDocSetPublishGenerator.m
View
9 Generating/GBDocSetPublishGenerator.m
@@ -51,19 +51,18 @@ - (BOOL)generateOutputWithStore:(id)store error:(NSError **)error {
NSString *outputXMLPath = [outputDir stringByAppendingPathComponent:xmlName];
NSString *signer = self.settings.docsetCertificateSigner;
NSString *url = self.settings.docsetPackageURL;
- //TODO: Check for export formats and show this one in this message
- NSString *outputPaths = @"";
+ NSMutableArray *outputPaths = [NSMutableArray arrayWithCapacity:2];
if(self.settings.docsetFeedFormats & GBPublishedFeedFormatAtom)
{
- outputPaths = [outputPaths stringByAppendingString:outputAtomPath];
+ [outputPaths addObject:outputAtomPath];
}
if(self.settings.docsetFeedFormats & GBPublishedFeedFormatXML)
{
- outputPaths = [outputPaths stringByAppendingString:outputXMLPath];
+ [outputPaths addObject:outputXMLPath];
}
- if ([url length] == 0) GBLogWarn(@"--docset-package-url is required for publishing DocSet; placeholder will be used in '%@'!", outputPaths);
+ if ([url length] == 0) GBLogWarn(@"--docset-package-url is required for publishing DocSet; placeholder will be used in '%@'!", [outputPaths componentsJoinedByString:@", "]);
// Create destination directory.
if (![self initializeDirectoryAtPath:outputDir preserve:[NSArray arrayWithObject:atomName] error:error]) {
Please sign in to comment.
Something went wrong with that request. Please try again.