summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-08-08 11:37:06 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-08 11:37:06 -0700
commite7876d5c41bbea0ee4679815edb5dc1ecef4c6a9 (patch)
tree6cbd1a1348a08855534f5b1344e49b701e70cd5b /build.xml
parent4c62f7db6f3913eedd92d85daf8f631149cc97b2 (diff)
parent02df8f3f9f16d67ba475829ed57b0d858b513031 (diff)
downloadscala-e7876d5c41bbea0ee4679815edb5dc1ecef4c6a9.tar.gz
scala-e7876d5c41bbea0ee4679815edb5dc1ecef4c6a9.tar.bz2
scala-e7876d5c41bbea0ee4679815edb5dc1ecef4c6a9.zip
Merge pull request #2741 from retronym/topic/intellij-modular
Scrubbing up the IntelliJ Config
Diffstat (limited to 'build.xml')
-rwxr-xr-xbuild.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index b36a04d9ef..4bfb0f8ba4 100755
--- a/build.xml
+++ b/build.xml
@@ -128,6 +128,7 @@ TODO:
<!-- Sets location of build folders -->
<property name="build.dir" value="${basedir}/build"/>
+ <property name="build-deps.dir" value="${build.dir}/deps"/>
<property name="build-libs.dir" value="${build.dir}/libs"/>
<property name="build-asm.dir" value="${build.dir}/asm"/>
<property name="build-forkjoin.dir" value="${build-libs.dir}"/>
@@ -192,6 +193,18 @@ TODO:
</touch>
</target>
+ <macrodef name="copy-deps" description="Copy a file set based on maven dependency resolution to a directory. Currently used by the IntelliJ config files.">
+ <attribute name="fileset.prefix"></attribute>
+ <attribute name="out"></attribute>
+ <sequential>
+ <delete dir="${build-deps.dir}/@{out}" includes="*.jar"/>
+ <copy todir="${build-deps.dir}/@{out}">
+ <fileset refid="@{fileset.prefix}.fileset" />
+ <mapper type="flatten" />
+ </copy>
+ </sequential>
+ </macrodef>
+
<target name="init" depends="boot">
<!-- Set up Ant contrib tasks so we can use <if><then><else> instead of the clunky `unless` attribute -->
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${lib-ant.dir}/ant-contrib.jar"/>
@@ -218,6 +231,7 @@ TODO:
<artifact:dependencies pathId="junit.classpath" filesetId="junit.fileset">
<dependency groupId="junit" artifactId="junit" version="${junit.version}"/>
</artifact:dependencies>
+ <copy-deps fileset.prefix="junit" out="junit"/>
<!-- Pax runner -->
<property name="pax.exam.version" value="2.5.0"/>
@@ -238,10 +252,12 @@ TODO:
<dependency groupId="com.googlecode.java-diff-utils" artifactId="diffutils" version="1.3.0"/>
<dependency groupId="org.scala-tools.testing" artifactId="test-interface" version="0.5" />
</artifact:dependencies>
+ <copy-deps fileset.prefix="partest.extras" out="partest"/>
<artifact:dependencies pathId="repl.deps.classpath" filesetId="repl.deps.fileset" versionsId="repl.deps.versions">
<dependency groupId="jline" artifactId="jline" version="${jline.version}"/>
</artifact:dependencies>
+ <copy-deps fileset.prefix="repl.deps" out="repl"/>
<!-- BND support -->
<typedef resource="aQute/bnd/ant/taskdef.properties" classpathref="extra.tasks.classpath" />