|
Scala example source code file (pack.xml)
The Scala pack.xml source code<?xml version="1.0" encoding="UTF-8"?> <project name="sabbus-pack"> <description> SuperSabbus extension for packaging a distribution to Sbaz or other distribution methods. THIS FILE IS NOT STAND-ALONE AND SHOULD ONLY BE USED THROUGH ENTRY POINTS IN SUPERSABBUS. </description> <!-- =========================================================================== PROPERTIES ============================================================================ --> <property name="sbaz.universe" value="http://www.scala-lang.org/downloads/packages"/> <!-- =========================================================================== MAIN DISTRIBUTION PACKAGING ============================================================================ --> <target name="pack-archives.start"> <mkdir dir="${dists.dir}/archives"/> </target> <target name="pack-archives.tar" depends="pack-archives.start"> <tar destfile="${dists.dir}/archives/scala-${version.number}" compression="none" longfile="gnu"> <tarfileset dir="${dist.dir}" prefix="scala-${version.number}" includes="bin/**" mode="755"/> <tarfileset dir="${dist.dir}" prefix="scala-${version.number}" excludes="bin/**"/> </tar> <gzip src="${dists.dir}/archives/scala-${version.number}" destfile="${dists.dir}/archives/scala-${version.number}.tgz"/> <exec executable="xz" failifexecutionfails="false"> <arg line="-k -9e -S .txz ${dists.dir}/archives/scala-${version.number}"/> </exec> <delete file="${dists.dir}/archives/scala-${version.number}" /> <checksum fileext=".md5"> <fileset dir="${dists.dir}/archives"> <include name="scala-${version.number}.t?z"/> </fileset> </checksum> </target> <target name="pack-archives.zip" depends="pack-archives.tar"> <zip destfile="${dists.dir}/archives/scala-${version.number}.zip"> <zipfileset prefix="scala-${version.number}" dir="${dist.dir}"/> </zip> <checksum file="${dists.dir}/archives/scala-${version.number}.zip" fileext=".md5"/> </target> <target name="pack-devel-docs.tar" depends="pack-archives.zip"> <tar destfile="${dists.dir}/archives/scala-${version.number}-devel-docs" compression="none" longfile="gnu"> <tarfileset dir="${dist.dir}/doc/scala-devel-docs" prefix="scala-${version.number}-devel-docs"/> </tar> <gzip src="${dists.dir}/archives/scala-${version.number}-devel-docs" destfile="${dists.dir}/archives/scala-${version.number}-devel-docs.tgz"/> <exec executable="xz" failifexecutionfails="false"> <arg line="-k -9e -S .txz ${dists.dir}/archives/scala-${version.number}-devel-docs"/> </exec> <delete file="${dists.dir}/archives/scala-${version.number}-devel-docs" /> <checksum fileext=".md5"> <fileset dir="${dists.dir}/archives"> <include name="scala-${version.number}-devel-docs.t?z"/> </fileset> </checksum> </target> <target name="pack-archives.src" depends="pack-devel-docs.tar"> <tar destfile="${dists.dir}/archives/scala-${version.number}-sources" compression="none" longfile="gnu"> <tarfileset dir="${basedir}" prefix="scala-${version.number}-sources"> <exclude name="bin/**"/> <exclude name="build/**"/> <exclude name="debian/**"/> <exclude name="dists/**"/> <exclude name="logs/**"/> <exclude name="sandbox/**"/> <exclude name="test/partest"/> </tarfileset> <tarfileset dir="${basedir}" prefix="scala-${version.number}-sources" filemode="755"> <include name="test/partest"/> </tarfileset> </tar> <gzip src="${dists.dir}/archives/scala-${version.number}-sources" destfile="${dists.dir}/archives/scala-${version.number}-sources.tgz"/> <exec executable="xz" failifexecutionfails="false"> <arg line="-k -9e -S .txz ${dists.dir}/archives/scala-${version.number}-sources"/> </exec> <delete file="${dists.dir}/archives/scala-${version.number}-sources" /> <checksum fileext=".md5"> <fileset dir="${dists.dir}/archives"> <include name="scala-${version.number}-sources.t?z"/> </fileset> </checksum> </target> <target name="pack-archives.done" depends="pack-archives.src"/> <!-- =========================================================================== MAIN DISTRIBUTION SBAZ ============================================================================ --> <target name="pack-sbaz.start"> <mkdir dir="${dists.dir}/sbaz"/> </target> <target name="pack-sbaz.lib" depends="pack-sbaz.start"> <sbaz file="${dists.dir}/sbaz/scala-library-${version.number}.sbp" adfile="${dists.dir}/sbaz/scala-library-${version.number}.advert" name="scala-library" version="${version.number}" desc="The Scala library. This is the minimal requirement to run any Scala program." link="${sbaz.universe}/scala-library-${version.number}.sbp"> <libset dir="${dist.dir}/lib" includes="scala-library.jar,scala-dbc.jar,scala-swing.jar"/> <srcset dir="${dist.dir}/src" includes="scala-library-src.jar,scala-dbc-src.jar,scala-swing-src.jar"/> <looseset destination="doc"> <fileset dir="${dist.dir}/doc" includes="LICENSE,README"/> </looseset> </sbaz> </target> <target name="pack-sbaz.comp" depends="pack-sbaz.lib"> <sbaz file="${dists.dir}/sbaz/scala-devel-${version.number}.sbp" adfile="${dists.dir}/sbaz/scala-devel-${version.number}.advert" name="scala-devel" version="${version.number}" desc="The Scala developer tools. This contains everything that is required to write, test and document new Scala programs." depends="scala-library" link="${sbaz.universe}/scala-devel-${version.number}.sbp"> <binset dir="${dist.dir}/bin" includes="scala,scala.bat,scalac,scalac.bat,scaladoc,scaladoc.bat,fsc,fsc.bat"/> <libset dir="${dist.dir}/lib" includes="scala-compiler.jar,jline.jar"/> <miscset dir="${dist.dir}/misc/scala-devel" includes="plugins/continuations.jar"/> <manset dir="${dist.dir}/man" includes="**"/> <srcset dir="${dist.dir}/src" includes="scala-compiler-src.jar"/> </sbaz> </target> <target name="pack-sbaz.test" depends="pack-sbaz.comp"> <sbaz file="${dists.dir}/sbaz/scala-test-${version.number}.sbp" adfile="${dists.dir}/sbaz/scala-test-${version.number}.advert" name="scala-test" version="${version.number}" desc="The Scala test package contains everything needed to test Scala." link="${sbaz.universe}/scala-test-${version.number}.sbp"> <binset dir="${basedir}/test" includes="clitest,diff/diff.*,diff/lib*.dll,partest,partest.bat"/> <miscset dir="${basedir}/test" includes="files/**/*.args,files/**/*.check,files/**/*.dll,files/**/*.jar,files/**/*.java,files/**/*.scala,files/**/*.flags,files/cli/**/*.check.*,files/jvm/*.so,files/shootout/*.javaopts,files/shootout/*.runner,files/shootout/*.txt,files/specialized/*.txt,files/**/*.test" excludes="files/presentation"/> <!-- Other Scala examples (source code examples)Here is a short list of links related to this Scala pack.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.