Skip to content

Java util to merge package.xml metadata descriptors for Salesforce metadata packages

License

Notifications You must be signed in to change notification settings

JackVeromeev/Manifest-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salesforce manifest merge tool

This merge tool is a helping hand in case you have multiple Salesforce manifests that need to be combined some way: summarized together or found the components that both contain.

Build

You need Java 8+ and Maven 3

# build the package
mvn clean install;

# copy the result file to the parent
mv target/manifest-merge-0.1-IN\ DEVEOPMENT-jar-with-dependencies.jar .

# rename to the short name
mv manifest-merge-0.1-IN\ DEVEOPMENT-jar-with-dependencies.jar manifest-merge.jar

Usage

Use the built jar file "with dependencies"

java -jar manifest-merge.jar STRATEGY target.xml source1.xml soutce2.xml [...source.xml files]

Additional flags:

  • -h or --help to print the usage. You can also write the java -jar manifest-merge.jar HELP

Implemented component merge strategies

  • UNIFY (A ∩ B), allows as many sources as entered, at least 2
  • INTERSECT (A ∪ B), allows as many sources as entered, at least 2
  • SUBTRACT (A ∖ B), remove elements of source 2 from source 1

Implemented version choose strategy

  • Highest
  • Lowest
  • Custom
  • Form the first package
  • From the last package
  • Set as separate CLI argument <- WIP, currently takes the highest version, but can be changed through the source code

Implemented package name and description strategy

  • Custom
  • Form the first package
  • From the last package
  • Set as separate CLI argument <- WIP, currently takes nulls, but can be changed through the source code

License

MIT

About

Java util to merge package.xml metadata descriptors for Salesforce metadata packages

Topics

Resources

License

Stars

Watchers

Forks

Languages