Package javapackages-tools

Macros and scripts for Java packaging support

https://git.fedorahosted.org/git/javapackages.git

This package provides macros and scripts to support Java packaging.

General Commands (Section 1)
abs2rel
The abs2rel command takes exactly two arguments - a destination path and a base path. It determines relative path from the base path to the destination path and...
build-classpath
Small utility to build a Java CLASSPATH with the named JARs or Maven artifact coordinates. Artifact coordinates specify Maven artifact and are in format...
build-jar-repository
Build a JAR repository in the named directory by copying files or creating symbolic links. The JARs can be identified by their names or Maven artifact...
diff-jars
Output the differences between two JAR files.
find-jar
The find-jar command tests the resolution of a given element. If successful it will return a JAR file or a directory. This command is solely intended for...
rebuild-jar-repository
Rebuild a jar repository (built by build-jar-repository) based on the current JVM settings
shade-jar
shade-jar utility is means for changing JAR file namespaces. Basically it replaces all occurences of given pattern with a given replacement. The replacament is...
Miscellanea (Section 7)
pom_add_dep
These macros patch specified POM or Ivy file adding a dependency on given Maven artifact specified by artifact coordinates. pom_add_dep adds the dependency to...
pom_add_parent
This macro patches specified POM file adding a reference to parent POM with specified groupId, artifactId and version. groupId and artifactId are identifiers of...
pom_add_plugin
This macro patches specified POM file adding plugin invocation of given groupId and artifactId. groupId and artifactId are identifiers of Maven plugin artifact...
pom_change_dep
These macros patch specified POM or Ivy file changing a dependency on given Maven artifact specified by artifact coordinates to artifact specified by second set...
pom_disable_module
This macro patches specified POM file not to contain reference to given project module. Module name is the exact name of the module to be disabled. It must not...
pom_remove_dep
This macro patches specified POM file not to contain dependencies on given Maven artifact. groupId and artifactId are identifiers of Maven group and artifact of...
pom_remove_parent
This macro patches specified POM file removing reference to parent POM. POM location can be either a full path to the POM file, or a path to the directory...
pom_remove_plugin
This macro patches specified POM file not to contain invocations of given Maven plugin. groupId and artifactId are identifiers of Maven group and artifact of...
pom_set_parent
This macro patches specified POM file setting reference to parent POM to specified groupId, artifactId and version. This macros first removes parent POM...
pom_xpath_disable
This macro recursively walks all enabled submodules of given POM and evaluates given XPath expression on them. If the expression returns a true value, matching...
pom_xpath_inject
This macro patches specified XML file appending given code as children of all XML nodes described by the XPath expression. XPath is an expression describing a...
pom_xpath_remove
This macro patches specified POM file removing all XML nodes described by the XPath expression. This also works on attributes and text nodes. XPath is an...
pom_xpath_replace
This macro patches specified POM file removing all XML nodes described by the XPath expression and injecting given XML code in their place. XPath is an...
pom_xpath_set
This macro patches specified POM file replacing contents of all XML nodes described by the XPath expression with given new text content. This works on both...