Opened 6 years ago

#5013 new defect

plugin.xml in osmosis-core contains bad version

Reported by: Sergey Astakhov Owned by: bretth
Priority: minor Milestone:
Component: osmosis Version:
Keywords: Cc:

Description

In lastest version of osmosis (0.43.1) in file \org\openstreetmap\osmosis\core\plugin\plugin.xml (inside osmosis-core-0.43.1.jar) there is used version string (version="0.42-6-gf39a160-dirty"), that is not compatible with JPF, because it's supported only dot delimiter. As result you can't use "requires" section in custom plugin.xml

  <requires>
    <import plugin-id="org.openstreetmap.osmosis.core.plugin.Core"
            plugin-version="0.42" reverse-lookup="false"/>
  </requires>

Test case:

import junit.framework.TestCase;
import org.java.plugin.registry.Version;

public class PluginVersionTest extends TestCase
{
  public void testVersionCompatible()
  {
    Version coreVersion = Version.parse("0.42-6-gf39a160-dirty");
    Version requiredCoreVersion = Version.parse("0.42");

    assertTrue(coreVersion.isCompatibleWith(requiredCoreVersion));
  }
}

Change History (0)

Note: See TracTickets for help on using tickets.