Exemple #1
0
 /*
  *  Create the Mashup package (*.mashup) from the specified Mashup Manifest.
  *  Inspired by Mashup.Designer.DeploymentHelper.SaveMashupFile
  */
 static bool SaveMashupFile(ManifestDesigner manifest)
 {
     try
     {
         // validate Manifest
         typeof(DeploymentHelper).InvokeMember("ValidateManifest", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Static, null, null, new Object[] { manifest });
         // create Mashup package
         string   defaultFileName = manifest.DeploymentName + "_" + manifest.Version + Defines.ExtensionMashup;
         FileInfo packageFile     = new FileInfo(manifest.File.Directory + "\\" + defaultFileName);
         PackageHelper.CreatePackageFromManifest(manifest, manifest.File, packageFile, PackageHelper.DeployTarget_LSO);
         // check Mashup profile
         if (manifest.GetProfileNode() != null)
         {
             string message = "Please note that this Mashup contains a profile section and should be deployed using Life Cycle Manager. Warning - Using this tool will not result in a merge of profile information into the profile.";
             Console.WriteLine(message);
         }
         return(true);
     }
     catch (Exception exception)
     {
         Console.Error.WriteLine(exception);
         return(false);
     }
 }