maven_version ‘;’ MAVEN-VERSION
Description: layout: default
Date: 2019-10-12T19:48:23-04:00

- # maven_version ';' MAVEN-VERSION

  layout: default

      /**
       * A macro to convert a maven version to an OSGi version
       */

      public String _maven_version(String args[]) {
      	if (args.length > 2)
      		error("${maven_version} macro receives too many arguments " + Arrays.toString(args));
      	else if (args.length < 2)
      		error("${maven_version} macro has no arguments, use ${maven_version;1.2.3-SNAPSHOT}");
      	else {
      		return cleanupVersion(args[1]);
      	}
      	return null;
      }