Wrapper to handle artwork combination.
Exemplo n.º 1
0
        public void TestImageCombination()
        {
            StringWriter outputWriter = new StringWriter ();
            StringWriter errorWriter = new StringWriter ();

            ArtworkCombiner combiner = new ArtworkCombiner ();
            combiner.Combine (".", outputWriter, errorWriter);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Combines the artwork.
        /// </summary>
        public static void CombineArtwork(IProgressMonitor monitor, MonobjcProject project, BundleMaker maker)
        {
            if (!project.CombineArtwork) {
                return;
            }

            monitor.BeginTask (GettextCatalog.GetString ("Combining artwork..."), 0);
            using (StringWriter outputWriter = new StringWriter()) {
                using (StringWriter errorWriter = new StringWriter()) {
                    ArtworkCombiner combiner = new ArtworkCombiner();
                    combiner.Combine(maker.ResourcesFolder, outputWriter, errorWriter);
                    LoggingService.LogInfo ("Combiner returns: " + outputWriter.ToString ());
                }
            }
            monitor.EndTask ();
        }
Exemplo n.º 3
0
        public override bool Execute()
        {
            // TODO: I18N
            this.Log.LogMessage("Combining artwork...");

            using (StringWriter outputWriter = new StringWriter()) {
                using (StringWriter errorWriter = new StringWriter()) {
                    ArtworkCombiner combiner = new ArtworkCombiner();
                    combiner.Logger = new ExecutionLogger(this);
                    combiner.Combine(this.Directory.GetMetadata("FullPath"), outputWriter, errorWriter);
                    String outputLog = outputWriter.ToString ();
                    String errorLog = errorWriter.ToString ();
                    this.Log.LogMessage (outputLog);
                    this.Log.LogMessage (errorLog);
                }
            }

            return true;
        }