mirror of
https://github.com/maxkratz/fastutil.git
synced 2024-09-16 11:58:09 +00:00
Tweaking
This commit is contained in:
parent
1afb0906b2
commit
a23d352de9
4 changed files with 48 additions and 12 deletions
2
TODO
2
TODO
|
@ -9,7 +9,5 @@
|
|||
- Try tripartite quickSort or TimSort for generic sorting.
|
||||
- http://zimbry.blogspot.com/2011/09/better-bit-mixing-improving-on.html
|
||||
- http://java-performance.info/large-hashmap-overview-jdk-fastutil-goldman-sachs-hppc-koloboke-trove
|
||||
- Check in gencsources.sh the cases in which testing for null is no longer useful (hashes, etc.)
|
||||
- http://shipilev.net/
|
||||
- http://java-performance.info/jmh/
|
||||
- Improve contains/remove method of entrySet()
|
||||
|
|
41
build.xml
41
build.xml
|
@ -1,4 +1,6 @@
|
|||
<project name="fastutil" default="jar" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
|
||||
<project name="fastutil" default="jar" basedir="."
|
||||
xmlns:artifact="antlib:org.apache.maven.artifact.ant"
|
||||
xmlns:ivy="antlib:org.apache.ivy.ant">
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
|
@ -9,8 +11,10 @@
|
|||
<property name="artifactId" value="fastutil" />
|
||||
<property name="version" value="${version}" />
|
||||
|
||||
<property name="maven-jar" value="${dist}/lib/fastutil-${version}.jar" />
|
||||
|
||||
<!-- define artifacts' name, which follows the convention of Maven -->
|
||||
<property name="maven-jar" value="${dist}/lib/${artifactId}-${version}.jar" />
|
||||
|
||||
<property name="maven-javadoc-jar" value="${dist}/lib/${artifactId}-${version}-javadoc.jar" />
|
||||
<property name="maven-sources-jar" value="${dist}/lib/${artifactId}-${version}-sources.jar" />
|
||||
|
||||
|
@ -20,11 +24,26 @@
|
|||
<property name="maven-staging-repository-id" value="sonatype-nexus-staging" />
|
||||
<property name="maven-staging-repository-url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2/" />
|
||||
|
||||
<target name="dist" depends="compile,javadoc" description="generate the distribution">
|
||||
|
||||
<!-- build the main artifact -->
|
||||
<jar jarfile="${maven-jar}" basedir="${build}" />
|
||||
<!-- OSGi manifest generation -->
|
||||
<target name="resolve" description="run Ivy to fetch jars">
|
||||
<ivy:retrieve />
|
||||
</target>
|
||||
|
||||
<target name="osgi" depends="resolve,compile">
|
||||
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="lib/bnd-2.4.0.jar"/>
|
||||
<bnd
|
||||
classpath="build"
|
||||
eclipse="false"
|
||||
failok="false"
|
||||
exceptions="true"
|
||||
output="${maven-jar}"
|
||||
files="fastutil.bnd"/>
|
||||
</target>
|
||||
|
||||
<!-- end OSGi manifest generation -->
|
||||
|
||||
<target name="dist" depends="osgi,javadoc" description="generate the distribution">
|
||||
<!-- build the javadoc artifact (from symbolic link created in init) -->
|
||||
<jar jarfile="${maven-javadoc-jar}">
|
||||
<fileset dir="${dist}/javadoc" />
|
||||
|
@ -36,12 +55,20 @@
|
|||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="dist" description="deploy snapshot version to Maven snapshot repository">
|
||||
<target name="pom" depends="dist" description="insert version into pom">
|
||||
<copy todir="${build}" file="pom.xml">
|
||||
<filterset>
|
||||
<filter token="version" value="${version}"/>
|
||||
</filterset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="pom" description="deploy snapshot version to Maven snapshot repository">
|
||||
<artifact:mvn>
|
||||
<arg value="org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file" />
|
||||
<arg value="-Durl=${maven-snapshots-repository-url}" />
|
||||
<arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
|
||||
<arg value="-DpomFile=pom.xml" />
|
||||
<arg value="-DpomFile=${build}/pom.xml" />
|
||||
<arg value="-Dfile=${maven-jar}" />
|
||||
</artifact:mvn>
|
||||
</target>
|
||||
|
|
4
fastutil.bnd
Normal file
4
fastutil.bnd
Normal file
|
@ -0,0 +1,4 @@
|
|||
Bundle-Name: it.unimi.dsi.fastutil
|
||||
Bundle-SymbolicName: it.unimi.dsi.fastutil
|
||||
Export-Package: it.unimi.dsi.fastutil.*
|
||||
Bundle-Version: ${version}
|
7
ivy.xml
Normal file
7
ivy.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<ivy-module version="2.0">
|
||||
<info organisation="it.unimi.dsi" module="fastutil"/>
|
||||
<dependencies>
|
||||
<dependency org="biz.aQute.bnd" name="bndlib" rev="2.4.0"/>
|
||||
<dependency org="biz.aQute.bnd" name="bnd" rev="2.4.0"/>
|
||||
</dependencies>
|
||||
</ivy-module>
|
Loading…
Reference in a new issue