Bundle-Version ::= version
							Header
						
						
						
					- 
    Example: Bundle-Version: 1.23.4.build200903221000
- 
    Pattern: \d{1,9}(\.\d{1,9}(\.\d{1,9}(\.[-\w]+)?)?)?
Bundle-Version
The Bundle-Version header specifies the version of the bundle. If this header is not provided, a default version of 0 will be set. The version must follow the OSGi versioning scheme: major.minor.micro.qualifier.
Example:
Bundle-Version: 1.2.3
This header is important for managing updates and dependencies between bundles.
The version of the bundle. If no such header is provided, a version of 0 will be set.
	verifyHeader(Constants.BUNDLE_VERSION, VERSION, true);
		public final static Pattern	VERSION							= Pattern.compile(VERSION_STRING);
		public final static String	VERSION_STRING					= "[0-9]{1,9}(\\.[0-9]{1,9}(\\.[0-9]{1,9}(\\.[0-9A-Za-z_-]+)?)?)?";
	
	
		/**
 * Intercept the call to analyze and cleanup versions after we have analyzed
 * the setup. We do not want to cleanup if we are going to verify.
 */
@Override
public void analyze() throws Exception {
	super.analyze();
	cleanupVersion(getImports(), null);
	cleanupVersion(getExports(), getVersion());
	String version = getProperty(BUNDLE_VERSION);
	if (version != null) {
		version = cleanupVersion(version);
		if (version.endsWith(".SNAPSHOT")) {
			version = version.replaceAll("SNAPSHOT$", getProperty(SNAPSHOT, "SNAPSHOT"));
		}
		setProperty(BUNDLE_VERSION, version);
	}
}
	
	
				if (main.getValue(BUNDLE_VERSION) == null)
			main.putValue(BUNDLE_VERSION, "0");
TODO Needs review - AI Generated content
