| OLD | NEW |
| (Empty) |
| 1 <!-- Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 for details. All rights reserved. Use of this source code is governed by a | |
| 3 BSD-style license that can be found in the LICENSE file. --> | |
| 4 <project name="fling" default="build"> | |
| 5 <property name="build.dir" location="out" /> | |
| 6 <property name="fling.dir" location="${build.dir}/fling" /> | |
| 7 <property name="root.dir" location="../.." /> | |
| 8 | |
| 9 <target name="setup-eclipse"> | |
| 10 <copy file="eclipse/classpath" toFile=".classpath"> | |
| 11 <filterset> | |
| 12 <filter token="BUILD_DIR" value="${build.dir}" /> | |
| 13 <filter token="ROOT_DIR" value="${root.dir}" /> | |
| 14 </filterset> | |
| 15 </copy> | |
| 16 <copy file="eclipse/project" tofile=".project" /> | |
| 17 <copy todir="."> | |
| 18 <fileset dir="eclipse" includes="settings/*" /> | |
| 19 <filtermapper> | |
| 20 <replacestring from="settings" to=".settings" /> | |
| 21 </filtermapper> | |
| 22 </copy> | |
| 23 </target> | |
| 24 | |
| 25 <target name="build"> | |
| 26 <mkdir dir="${fling.dir}/classes" /> | |
| 27 <mkdir dir="${fling.dir}/fling" /> | |
| 28 | |
| 29 <!-- Copy the dist template directory --> | |
| 30 <copy todir="${fling.dir}/fling"> | |
| 31 <fileset dir="dist" /> | |
| 32 </copy> | |
| 33 | |
| 34 <!-- Copy all deps into runtime --> | |
| 35 <copy todir="${fling.dir}/fling/runtime" flatten="true"> | |
| 36 <fileset dir="../../third_party/deftserver" includes="**/*.jar" /> | |
| 37 <fileset dir="../../third_party/guava" includes="**/*.jar" /> | |
| 38 <fileset dir="${build.dir}/compiler/lib" includes="**/*.jar" /> | |
| 39 </copy> | |
| 40 | |
| 41 <!-- Build fling.jar --> | |
| 42 <javac srcdir="src/java/core" destdir="${fling.dir}/classes" source="1.6"> | |
| 43 <classpath> | |
| 44 <fileset dir="${fling.dir}/fling/runtime" includes="*.jar" /> | |
| 45 </classpath> | |
| 46 </javac> | |
| 47 <copy todir="${fling.dir}/classes"> | |
| 48 <fileset dir="src/java/core" includes="**/*.js" /> | |
| 49 </copy> | |
| 50 <jar destfile="${fling.dir}/fling/runtime/fling.jar"> | |
| 51 <fileset dir="${fling.dir}/classes" /> | |
| 52 </jar> | |
| 53 | |
| 54 <chmod file="${fling.dir}/fling/fling" perm="555" /> | |
| 55 </target> | |
| 56 | |
| 57 <target name="clean"> | |
| 58 <delete dir="${fling.dir}" /> | |
| 59 <delete file=".classpath" /> | |
| 60 <delete file=".project" /> | |
| 61 <delete dir=".settings" /> | |
| 62 </target> | |
| 63 </project> | |
| OLD | NEW |