The build file only creates symbolic links on UNIX platforms, copies otherwise.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@5507 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
dubochet 2006-01-12 09:55:02 +00:00
parent a5f97d9ce9
commit dd5f16778b
1 changed files with 30 additions and 6 deletions

View File

@ -321,6 +321,8 @@ BUILD LOCAL REFERENCE (LOCKER) LAYER
<!-- Copy support files to build folder -->
<build.support build.dir="${locker.dir}"/>
<!-- Link to libraries -->
<if><isset property="os.unix"/>
<then>
<symlink link="${locker.dir}/${fjbg.name}"
resource="${fjbg.jar}"
overwrite="yes"
@ -329,6 +331,12 @@ BUILD LOCAL REFERENCE (LOCKER) LAYER
resource="${msil.jar}"
overwrite="yes"
failonerror="no"/>
</then>
<else>
<copy file="${fjbg.jar}" tofile="${locker.dir}/${fjbg.name}"/>
<copy file="${msil.jar}" tofile="${locker.dir}/${msil.name}"/>
</else>
</if>
<!-- Build executable files -->
<mkdir dir="${locker.dir}/${exec.dir.name}"/>
<starrtool file="${locker.dir}/${exec.dir.name}/${scalac.exec.name}"
@ -408,6 +416,8 @@ BUILD QUICK-TEST LAYER
<!-- Copy templates to build -->
<build.support build.dir="${quick.dir}"/>
<!-- Link to libraries -->
<if><isset property="os.unix"/>
<then>
<symlink link="${quick.dir}/${fjbg.name}"
resource="${fjbg.jar}"
overwrite="yes"
@ -416,6 +426,12 @@ BUILD QUICK-TEST LAYER
resource="${msil.jar}"
overwrite="yes"
failonerror="no"/>
</then>
<else>
<copy file="${fjbg.jar}" tofile="${quick.dir}/${fjbg.name}"/>
<copy file="${msil.jar}" tofile="${quick.dir}/${msil.name}"/>
</else>
</if>
<!-- Build executable files -->
<mkdir dir="${quick.dir}/${exec.dir.name}"/>
<lockertool file="${quick.dir}/${exec.dir.name}/${scalac.exec.name}"
@ -496,6 +512,8 @@ TEST
<!-- Copy templates to build -->
<build.support build.dir="${strap.dir}"/>
<!-- Link to libraries -->
<if><isset property="os.unix"/>
<then>
<symlink link="${strap.dir}/${fjbg.name}"
resource="${fjbg.jar}"
overwrite="yes"
@ -504,6 +522,12 @@ TEST
resource="${msil.jar}"
overwrite="yes"
failonerror="no"/>
</then>
<else>
<copy file="${fjbg.jar}" tofile="${strap.dir}/${fjbg.name}"/>
<copy file="${msil.jar}" tofile="${strap.dir}/${msil.name}"/>
</else>
</if>
<!-- Build executable files -->
<mkdir dir="${strap.dir}/${exec.dir.name}"/>
<quicktool file="${strap.dir}/${exec.dir.name}/${scalac.exec.name}"