Coverage Report - com.aurea.maven.plugins.sonic.esb.EsbPackageMojo
 
Classes in this File Line Coverage Branch Coverage Complexity
EsbPackageMojo
0%
0/9
N/A
1
 
 1  
 package com.aurea.maven.plugins.sonic.esb;
 2  
 
 3  
 import java.io.File;
 4  
 import java.util.ArrayList;
 5  
 import java.util.List;
 6  
 
 7  
 import org.apache.maven.model.Resource;
 8  
 
 9  
 /**
 10  
  * packages an ESB project as a .zip file.
 11  
  * 
 12  
  * <ol>
 13  
  * <li>artifacts from the deploy/generated-src/xar folder project are bundled into a .xar file
 14  
  * <li>the various .snippets files are generated
 15  
  * <li>artifact specific tailorings are generated
 16  
  * <li>the .xar file, snippets and tailoring files are is wrapped up into a .zip file
 17  
  * </ol>
 18  
  * 
 19  
  * @goal esb-package
 20  
  */
 21  
 
 22  0
 public class EsbPackageMojo extends AbstractEsbPackageMojo {
 23  
   
 24  
 
 25  
   /**
 26  
    * {@inheritDoc}
 27  
    */
 28  
   protected String getType() {
 29  
 
 30  0
     return "esb";
 31  
   }
 32  
   
 33  
   /**
 34  
    * {@inheritDoc}
 35  
    */
 36  
   @Override
 37  
   protected File getEsbTailorPropFile() {
 38  
 
 39  0
     return esbTailorPropFile;
 40  
   }
 41  
   
 42  
   /**
 43  
    * {@inheritDoc}
 44  
    */
 45  
   @Override
 46  
   protected String getGeneratedSrcDir() {
 47  
 
 48  0
     return deployGenSrcDir.getPath();
 49  
   }
 50  
   
 51  
   /**
 52  
    * {@inheritDoc}
 53  
    */
 54  
   @Override
 55  
   protected String getAssemblyDir() {
 56  
 
 57  0
     return getOutputDirectory() + "/sonicesb/assembly";
 58  
   }
 59  
   
 60  
   /**
 61  
    * {@inheritDoc}
 62  
    */
 63  
   @Override
 64  
   protected String getPackageXarDir() {
 65  
 
 66  0
     return getOutputDirectory() + "/sonicesb/packageXar/fileSystem";
 67  
   }
 68  
   
 69  
   /**
 70  
    * {@inheritDoc}
 71  
    */
 72  
   @Override
 73  
   protected String getPackageXarFileDir() {
 74  
 
 75  0
     return getOutputDirectory() + "/sonicesb/packageXar";
 76  
   }
 77  
   
 78  
   @Override
 79  
   protected ArrayList<String> getParameterMatches() {
 80  
 
 81  0
     return parameterMatches;
 82  
   }
 83  
   
 84  
   @Override
 85  
   protected List<Resource> getResources() {
 86  
 
 87  0
     return project.getResources();
 88  
   }
 89  
   
 90  
 }