[jboss-cvs] JBossAS SVN: r99785 - projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 21 16:56:03 EST 2010
Author: thomas.diesler at jboss.com
Date: 2010-01-21 16:56:03 -0500 (Thu, 21 Jan 2010)
New Revision: 99785
Modified:
projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/deployers/OSGiNativeCodePolicyDeployer.java
Log:
Add milliseconds to the generated libfile name
Modified: projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/deployers/OSGiNativeCodePolicyDeployer.java
===================================================================
--- projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/deployers/OSGiNativeCodePolicyDeployer.java 2010-01-21 21:54:48 UTC (rev 99784)
+++ projects/jboss-osgi/projects/runtime/framework/trunk/src/main/java/org/jboss/osgi/framework/deployers/OSGiNativeCodePolicyDeployer.java 2010-01-21 21:56:03 UTC (rev 99785)
@@ -152,10 +152,9 @@
private File getUniqueLibraryFile(final OSGiBundleState bundleState, final String libpath)
{
OSGiBundleManager bundleManager = bundleState.getBundleManager();
- BundleStoragePlugin plugin = bundleManager.getPlugin(BundleStoragePlugin.class);
- Date lmdate = new Date(bundleState.getLastModified());
- String timestamp = new SimpleDateFormat("yyyyMMdd-HHmmssSSS").format(lmdate);
+ String timestamp = new SimpleDateFormat("-yyyyMMdd-HHmmssSSS").format(new Date(bundleState.getLastModified()));
String uniquePath = new StringBuffer(libpath).insert(libpath.lastIndexOf("."), timestamp).toString();
+ BundleStoragePlugin plugin = bundleManager.getPlugin(BundleStoragePlugin.class);
return plugin.getDataFile(bundleState, uniquePath);
}
}
More information about the jboss-cvs-commits
mailing list