Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit f7e1d7c

Browse files
committed
Include ASM as a dependency in ANT build
The classfiles are still integrated into scala-compiler.jar.
1 parent e12ba55 commit f7e1d7c

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

build-ant-macros.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
<macrodef name="simple-javac">
9393
<attribute name="project"/>
94-
<!-- project: asm/forkjoin -->
94+
<!-- project: forkjoin -->
9595
<attribute name="args" default=""/>
9696
<attribute name="jar" default="yes"/>
9797
<sequential>
@@ -371,6 +371,10 @@
371371
<then>
372372
<mkdir dir="${build-pack.dir}/${@{project}.targetdir}"/>
373373
<pre/>
374+
<!-- can't check if a fileset is defined, so we have an additional property -->
375+
<if><not><isset property="pack.@{project}.include-jars.defined"/></not><then>
376+
<fileset id="pack.@{project}.include-jars" dir="." excludes="**" />
377+
</then></if>
374378
<if>
375379
<not>
376380
<equals arg1="@{manifest}" arg2=""/>
@@ -380,6 +384,7 @@
380384
<!-- update="true" makes no difference on my machine, so starting from scratch-->
381385
<jar-opts/>
382386
<path refid="pack.@{project}.files"/>
387+
<zipgroupfileset refid="pack.@{project}.include-jars"/>
383388
</jar>
384389
</then>
385390
<else>

build.xml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ TODO:
165165
<property name="build.dir" value="${basedir}/build"/>
166166
<property name="build-deps.dir" value="${build.dir}/deps"/>
167167
<property name="build-libs.dir" value="${build.dir}/libs"/>
168-
<property name="build-asm.dir" value="${build-libs.dir}"/>
169168
<property name="build-forkjoin.dir" value="${build-libs.dir}"/>
170169
<property name="build-locker.dir" value="${build.dir}/locker"/>
171170
<property name="build-quick.dir" value="${build.dir}/quick"/>
@@ -353,6 +352,11 @@ TODO:
353352
<prepareCross name="partest"/>
354353
<prepareCross name="scalacheck"/>
355354

355+
<artifact:dependencies pathId="asm.classpath" filesetId="asm.fileset">
356+
<dependency groupId="org.scala-lang.modules" artifactId="scala-asm" version="${scala-asm.version}"/>
357+
</artifact:dependencies>
358+
<copy-deps project="asm"/>
359+
356360
<!-- TODO: delay until absolutely necessary to allow minimal build, also move out partest dependency from scaladoc -->
357361
<artifact:dependencies pathId="partest.classpath" filesetId="partest.fileset" versionsId="partest.versions">
358362
<!-- uncomment the following if you're deploying your own partest locally -->
@@ -624,9 +628,7 @@ TODO:
624628
</then></if>
625629

626630
<path id="forkjoin.classpath" path="${build-forkjoin.dir}/classes/forkjoin"/>
627-
<path id="asm.classpath" path="${build-asm.dir}/classes/asm"/>
628631
<property name="forkjoin-classes" refid="forkjoin.classpath"/>
629-
<property name="asm-classes" refid="asm.classpath"/>
630632

631633
<!-- the following properties fully define staged-docs, staged-pack, make-bundle, copy-bundle and mvn-package for each of the projects -->
632634
<property name="library.description" value="Scala Standard Library"/>
@@ -693,7 +695,7 @@ TODO:
693695
<property name="partest-extras.description" value="Scala Compiler Testing Tool (compiler-specific extras)"/>
694696
<property name="partest-javaagent.description" value="Scala Compiler Testing Tool (compiler-specific java agent)"/>
695697

696-
<!-- projects without project-specific options: asm, forkjoin, manual, bin, repl -->
698+
<!-- projects without project-specific options: forkjoin, manual, bin, repl -->
697699
<for list="actors,compiler,interactive,scaladoc,library,parser-combinators,partest,partest-extras,partest-javaagent,reflect,scalap,swing,xml,continuations-plugin,continuations-library" param="project">
698700
<sequential>
699701
<!-- description is mandatory -->
@@ -878,8 +880,9 @@ TODO:
878880
<fileset dir="${build-quick.dir}/classes/scaladoc"/>
879881
<fileset dir="${build-quick.dir}/classes/interactive"/>
880882
<fileset dir="${build-quick.dir}/classes/repl"/>
881-
<fileset dir="${asm-classes}"/>
882883
</path>
884+
<fileset id="pack.compiler.include-jars" refid="asm.fileset"/>
885+
<property name="pack.compiler.include-jars.defined" value="yeah"/>
883886

884887
<!-- TODO modularize compiler.
885888
<path id="pack.scaladoc.files"> <fileset dir="${build-quick.dir}/classes/scaladoc"/> </path>
@@ -1078,9 +1081,9 @@ TODO:
10781081
<!-- ===========================================================================
10791082
CLEANLINESS
10801083
=============================================================================-->
1081-
<target name="libs.clean"> <clean build="libs"/> <clean build="asm"/> </target>
1082-
<target name="quick.clean" depends="libs.clean"> <clean build="quick"/> <clean build="pack"/> <clean build="strap"/> </target>
1083-
<target name="locker.clean" depends="quick.clean"> <clean build="locker"/> </target>
1084+
<target name="libs.clean"> <clean build="libs"/> </target>
1085+
<target name="quick.clean" depends="libs.clean"> <clean build="quick"/> <clean build="pack"/> <clean build="strap"/> </target>
1086+
<target name="locker.clean" depends="quick.clean"> <clean build="locker"/> </target>
10841087

10851088
<target name="docs.clean"> <clean build="docs"/> <delete dir="${build.dir}/manmaker" includeemptydirs="yes" quiet="yes" failonerror="no"/> </target>
10861089
<target name="dist.clean"> <delete dir="${dists.dir}" includeemptydirs="yes" quiet="yes" failonerror="no"/> </target>
@@ -1098,7 +1101,6 @@ TODO:
10981101
LOCAL DEPENDENCIES
10991102
============================================================================ -->
11001103

1101-
<target name="asm.done" depends="init"> <simple-javac project="asm" jar="no"/> </target>
11021104
<target name="forkjoin.done" depends="init"> <simple-javac project="forkjoin" args="-XDignore.symbol.file" jar="no"/></target>
11031105

11041106
<!-- For local development only. We only allow released versions of Scala for STARR.
@@ -1121,7 +1123,7 @@ TODO:
11211123
<!-- ===========================================================================
11221124
LOCAL REFERENCE BUILD (LOCKER)
11231125
============================================================================ -->
1124-
<target name="locker.start" depends="asm.done, forkjoin.done">
1126+
<target name="locker.start" depends="forkjoin.done">
11251127
<condition property="locker.locked"><available file="${build-locker.dir}/locker.locked"/></condition></target>
11261128

11271129
<target name="locker.lib" depends="locker.start" unless="locker.locked">
@@ -1189,7 +1191,7 @@ TODO:
11891191
<target name="pack.reflect" depends="quick.reflect"> <staged-pack project="reflect"/> </target>
11901192

11911193
<!-- TODO modularize compiler. Remove other quick targets when they become modules. -->
1192-
<target name="pack.comp" depends="quick.comp, quick.scaladoc, quick.interactive, quick.repl, asm.done">
1194+
<target name="pack.comp" depends="quick.comp, quick.scaladoc, quick.interactive, quick.repl">
11931195
<staged-pack project="compiler" manifest="${build-pack.dir}/META-INF/MANIFEST.MF">
11941196
<pre> <!-- TODO the files copied here do not influence actuality of this target (nor does the manifest) -->
11951197
<copy todir="${build-pack.dir}/lib">

versions.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ scala-swing.version.number=1.0.1
2525
akka-actor.version.number=2.3.4
2626
actors-migration.version.number=1.1.0
2727
jline.version=2.12.1
28+
scala-asm.version=5.0.3-scala-3
2829

2930
# external modules, used internally (not shipped)
3031
partest.version.number=1.0.6

0 commit comments

Comments
 (0)