Skip to content

Commit

Permalink
Sets the version to 1.0.0-SNAPSHOT in preparation to olap4j 1.0. Also…
Browse files Browse the repository at this point in the history
… splits the main olap4j jar into two separate jars for the core API and the XMLA driver.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@405 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Mar 19, 2011
1 parent a0119c9 commit c62104f
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 12 deletions.
6 changes: 3 additions & 3 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# See also 'test.properties', which contains settings for the regression
# suite.

project.revision=0.9.9-SNAPSHOT
project.revision.major=0
project.revision.minor=9090404
project.revision=1.0.0-SNAPSHOT
project.revision.major=1
project.revision.minor=0000405
ivy.artifact.id=olap4j
ivy.artifact.group=org.olap4j
impl.title=olap4j
Expand Down
80 changes: 71 additions & 9 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ ${src.dir}/org/olap4j/mdx/parser/impl/DefaultMdxParserSym.java" />
<target name="setup" depends="version-properties,compile,create-dot-classpath"
description="Setups the project for eclipse." />

<target name="hudson" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,test,jar-jdk14"
<target name="hudson" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,xmla-jar,test,jar-jdk14"
description="Sugar goal to build olap4j from hudson." />

<target name="hudson-notest" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,jar-jdk14"
<target name="hudson-notest" depends="clean-all,clean-tests,version-properties,jar,source.jar,tck-jar,xmla-jar,jar-jdk14"
description="Sugar goal to build olap4j from hudson." />

<!-- Override to create a proper release. -->
<target name="dist"
depends="clean,version-properties,jar,tck-jar,javadoc,javadoc-pdf,javadoc-with-ydoc,jar-jdk14,source.zip"
depends="clean,version-properties,jar,tck-jar,xmla-jar,javadoc,javadoc-pdf,javadoc-with-ydoc,jar-jdk14,source.zip"
description="Creates a distribution">
<zip zipfile="${dist.dir}/${zip.filename}">
<zipfileset dir="${basedir}/doc" prefix="${ivy.artifact.id}-${project.revision}/doc"
Expand Down Expand Up @@ -92,7 +92,26 @@ olap4j_api.pdf"
<target name="jar" depends="checkIsNotJdk16,compile,compile-tests,compileJdk16,set-build.id,generate.manifest"
description="Jars up the bin directory after a compile">
<zip destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar">
<zipfileset dir="${classes.dir}" prefix="" includes="**/*" />
<zipfileset dir="${classes.dir}" prefix=""
includes="**/*"
excludes="
org/olap4j/driver/**,
META-INF/**"/>
<zipfileset dir="${basedir}" prefix=""
includes="
LICENSE.html,
README.txt,
VERSION.txt" />
</zip>
</target>

<target name="xmla-jar" depends="jar"
description="Jars up the bin directory after a compile">
<zip destfile="${dist.dir}/${ivy.artifact.id}-xmla-${project.revision}.jar">
<zipfileset dir="${classes.dir}" prefix=""
includes="
org/olap4j/driver/**,
META-INF/**"/>
<zipfileset dir="${basedir}" prefix=""
includes="
LICENSE.html,
Expand All @@ -103,7 +122,7 @@ VERSION.txt" />

<target name="tck-jar" depends="jar"
description="Jars up the Test Compatibility Kit (TCK) after a compile">
<zip destfile="${dist.dir}/olap4j-tck-${project.revision}.jar">
<zip destfile="${dist.dir}/${ivy.artifact.id}-tck-${project.revision}.jar">
<zipfileset dir="${testclasses.dir}" prefix="" includes="**/*"
excludes="jndi.properties" />
<zipfileset dir="${basedir}" prefix=""
Expand Down Expand Up @@ -232,16 +251,17 @@ class XmlaOlap4jDriverVersion {
<!-- create a retrowoven jar file which will work under jdk1.4 -->
<target name="jar-jdk14">
<copy todir="${classes-jdk14.dir}">
<fileset dir="${classes.dir}" includes="**/*"/>
<fileset dir="${classes.dir}"
includes="**/*"
excludes="org/olap4j/driver/**"/>
</copy>
<antcall target="retroweave"/>
<zip zipfile="${jar-jdk14.file}" update="true">
<zipfileset dir="${classes-jdk14.dir}"
includes="
**/*.class,
**/*.properties,
**/*.xml,
META-INF/**" />
**/*.xml"/>
</zip>
<delete includeemptydirs="true">
<fileset dir="${classes-jdk14.dir}" includes="**/*"/>
Expand Down Expand Up @@ -275,7 +295,7 @@ META-INF/**" />
</if>
</target>

<!-- override from subfloor to publish tck as well -->
<!-- override from subfloor to publish tck and xmla artifacts as well -->
<target name="publish-nojar">
<antcall target="subfloor.publish-nojar"/>
<property
Expand Down Expand Up @@ -320,6 +340,48 @@ META-INF/**" />
</else>
</if>
</sequential>
<property
name="publish.file"
value="${dist.dir}/${ivy.artifact.id}-xmla-${project.revision}.jar"/>
<sequential>
<fail message="No file found at: ${publish.file}">
<condition>
<not>
<available file="${publish.file}" />
</not>
</condition>
</fail>
<echo message="Publishing ${publish.file} to ${ivy.repository.publish}..." />
<if>
<isset property="isWindows" />
<then>
<exec executable="cmd" failonerror="true">
<arg value="/c" />
<arg value="mvn.bat" />
<arg value="deploy:deploy-file" />
<arg value="-DrepositoryId=${ivy.repository.id}" />
<arg value="-Durl=${ivy.repository.publish}" />
<arg value="-DgroupId=${ivy.artifact.group}" />
<arg value="-DartifactId=${ivy.artifact.id}-xmla" />
<arg value="-Dpackaging=jar" />
<arg value="-Dversion=${project.revision}" />
<arg value="-Dfile=${publish.file}" />
</exec>
</then>
<else>
<exec executable="mvn" failonerror="true">
<arg value="deploy:deploy-file" />
<arg value="-DrepositoryId=${ivy.repository.id}" />
<arg value="-Durl=${ivy.repository.publish}" />
<arg value="-DgroupId=${ivy.artifact.group}" />
<arg value="-DartifactId=${ivy.artifact.id}-xmla" />
<arg value="-Dpackaging=jar" />
<arg value="-Dversion=${project.revision}" />
<arg value="-Dfile=${publish.file}" />
</exec>
</else>
</if>
</sequential>
</target>

<target name="javadoc" depends="clean-stray-package-html">
Expand Down

0 comments on commit c62104f

Please sign in to comment.