diff options
-rw-r--r-- | build.xml | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1014,6 +1014,13 @@ GENERATES A DISTRIBUTION </section> </manifest> </jar> + <!-- version ::= major('.'minor('.'micro('.'qualifier)?)?)? --> + <!-- see http://www2.osgi.org/javadoc/r4/org/osgi/framework/Version.html --> + <propertyregex + property="osgi.version.number" input="${version.number}" + regexp="([^-]*)(-.*)?" select="\1" + /> + <echo level="verbose" message="OSGI version: ${osgi.version.number}"/> <jar destfile="${dist.current.dir}/lib/${lib.jar.name}"> <fileset dir="${strap.dir}/lib/library"/> <fileset dir="${strap.dir}/lib/actors"/> @@ -1034,10 +1041,10 @@ GENERATES A DISTRIBUTION <attribute name="Bundle-ManifestVersion" value="2"/> <attribute name="Bundle-Name" value="Scala Library Bundle"/> <attribute name="Bundle-SymbolicName" value="scala_library"/> - <attribute name="Bundle-Version" value="${version.number}"/> + <attribute name="Bundle-Version" value="${osgi.version.number}"/> <attribute name="Bundle-Vendor" value="${vendor.name}"/> <!-- CAUTION! Do not remove superflous blanks (Ant bug) --> - <attribute name="Export-Package" value="scala, scala.actors, scala.actors.remote, scala.collection, scala.collection.immutable, scala.collection.jcl, scala.collection.mutable, scala.compat, scala.concurrent, scala.io, scala.mobile, scala.ref, scala.reflect, scala.runtime,scala.testing, scala.text, scala.util, scala.util.automata, scala.util.grammar, scala.util.logging, scala.util.parsing, scala.util.regexp, scala.xml,scala.xml.dtd, scala.xml.factory, scala.xml.parsing, scala.xml.path, scala.xml.pull, scala.xml.transform;version="${version.number}""/> + <attribute name="Export-Package" value="scala, scala.actors, scala.actors.remote, scala.collection, scala.collection.immutable, scala.collection.jcl, scala.collection.mutable, scala.compat, scala.concurrent, scala.io, scala.mobile, scala.ref, scala.reflect, scala.runtime,scala.testing, scala.text, scala.util, scala.util.automata, scala.util.grammar, scala.util.logging, scala.util.parsing, scala.util.regexp, scala.xml,scala.xml.dtd, scala.xml.factory, scala.xml.parsing, scala.xml.path, scala.xml.pull, scala.xml.transform;version="${osgi.version.number}""/> <attribute name="Import-Package" value="javax.xml.parsers, org.xml.sax, org.xml.sax.helpers"/> <attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.4"/> </manifest> |