@@ -995,6 +995,7 @@ else if (addNonCFMLFiles) {
995995 else {
996996 filter = new ExtensionResourceFilter (true , true , false , new String [] { "class" , "MF" });
997997 }
998+
998999 String id = HashUtil .create64BitHashAsString (mapping .getStrPhysical (), Character .MAX_RADIX );
9991000 // String id = MD5.getDigestAsString(mapping.getStrPhysical());
10001001
@@ -1003,20 +1004,22 @@ else if (addNonCFMLFiles) {
10031004 else if (mappingType == MAPPING_CT ) type = "ct" ;
10041005 else type = "regular" ;
10051006
1006- String token = HashUtil .create64BitHashAsString (System .currentTimeMillis () + "" , Character .MAX_RADIX );
1007+ // String token = HashUtil.create64BitHashAsString((System.currentTimeMillis() / 10000L) + "",
1008+ // Character.MAX_RADIX);
1009+ String qualifier = Caster .toString (System .currentTimeMillis () / 10000L );
10071010
10081011 // create manifest
10091012 Manifest mf = new Manifest ();
10101013 // StringBuilder manifest=new StringBuilder();
10111014
10121015 // Write OSGi specific stuff
10131016 Attributes attrs = mf .getMainAttributes ();
1017+ String bundleName = ListUtil .trim (mapping .getVirtual ().replace ('/' , '.' ), "." );
10141018 attrs .putValue ("Bundle-ManifestVersion" , Caster .toString (BundleBuilderFactory .MANIFEST_VERSION ));
1015- attrs .putValue ("Bundle-SymbolicName" , id );
1016- attrs .putValue ("Bundle-Name" , ListUtil . trim ( mapping . getVirtual (). replace ( '/' , '.' ), "." ) );
1019+ attrs .putValue ("Bundle-SymbolicName" , "luceebundle." + bundleName );
1020+ attrs .putValue ("Bundle-Name" , bundleName );
10171021 attrs .putValue ("Bundle-Description" , "this is a " + type + " mapping generated by " + Constants .NAME + "." );
1018- attrs .putValue ("Bundle-Version" , "1.0.0." + token );
1019- // attrs.putValue("Import-Package","lucee.*");
1022+ attrs .putValue ("Bundle-Version" , "1.0.0." + qualifier );
10201023 attrs .putValue ("Require-Bundle" , "lucee.core" );
10211024
10221025 // Mapping
0 commit comments