Changeset 6052 for lang/scala

Show
Ignore:
Timestamp:
02/02/08 22:29:55 (6 years ago)
Author:
keisuken
Message:

Scala Compact library build rule add.

Location:
lang/scala/sandbox
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/scala/sandbox/build.xml

    r5962 r6052  
    1313  <property name="lib"     value="lib" /> 
    1414  <property name="api"     value="docs/api" /> 
     15  <property name="tmp"     value="tmp" /> 
    1516 
    1617  <property name="api-scala"  value="${api}/scala" /> 
     
    1819  <property name="scala-compiler-jar"  value="${lib}/scala-compiler.jar" /> 
    1920  <property name="scala-library-jar"  value="${lib}/scala-library.jar" /> 
     21  <property name="scala-library-compact-jar"  value="${lib}/scala-library-compact.jar" /> 
    2022 
    2123  <property name="scala-sandbox-jar"  value="${lib}/scala-sandbox.jar" /> 
     
    9597  </target> 
    9698 
     99 
     100  <!--================================================================ 
     101    Compact Library rules. 
     102  =================================================================--> 
     103 
     104  <target name="compact-library"> 
     105<!-- 
     106 scala/ 
     107 scala/collection/{_,immutable,mutable} 
     108 scala/comcat/ 
     109 scala/runtime/ 
     110 scala/util/_ 
     111 scala/xml/{_,parsing,pull}  
     112--> 
     113    <property name="original" value="${tmp}/scala-library-original"/> 
     114    <property name="compact" value="${tmp}/scala-library-compact"/> 
     115    <delete dir="${tmp}" quiet="true"/> 
     116    <mkdir dir="${original}"/> 
     117    <mkdir dir="${compact}"/> 
     118    <unjar src="${scala-library-jar}" dest="${original}"/> 
     119    <copy todir="${compact}"> 
     120      <fileset dir="${original}"> 
     121        <include name="library.properties"/> 
     122        <include name="scala/*.class"/> 
     123        <include name="scala/collection/*.class"/> 
     124        <include name="scala/collection/immutable/**.class"/> 
     125        <include name="scala/collection/mutable/**.class"/> 
     126        <include name="scala/compat/*.class"/> 
     127        <include name="scala/runtime/*.class"/> 
     128        <include name="scala/util/*.class"/> 
     129        <include name="scala/xml/*.class"/> 
     130        <include name="scala/xml/parsing/*.class"/> 
     131        <include name="scala/xml/pull/*.class"/> 
     132      </fileset> 
     133    </copy> 
     134    <jar jarfile="${scala-library-compact-jar}" 
     135      basedir="${compact}" 
     136      manifest="${original}/META-INF/MANIFEST.MF" 
     137    /> 
     138  </target> 
     139 
    97140  <!--================================================================ 
    98141    Release rules. 
     
    100143 
    101144  <target name="release" depends="clean,build,api"> 
    102     <delete dir="${classes}" /> 
     145    <delete dir="${classes}" quiet="true" /> 
    103146  </target> 
    104147 
     
    108151 
    109152  <target name="clean"> 
    110     <delete dir="${classes}" /> 
    111     <delete dir="${api}" /> 
     153    <delete dir="${classes}" quiet="true" /> 
     154    <delete dir="${api}" quiet="true" /> 
     155    <delete dir="${tmp}" quiet="true" /> 
    112156  </target> 
    113157