~ubuntu-branches/ubuntu/karmic/rhino/karmic

« back to all changes in this revision

Viewing changes to src/build.xml

  • Committer: Bazaar Package Importer
  • Author(s): Jerry Haltom
  • Date: 2005-03-19 16:56:07 UTC
  • mto: (11.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050319165607-geu3j3fnqlkpqkh1
Tags: upstream-1.6.R1
ImportĀ upstreamĀ versionĀ 1.6.R1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
 
3
 
<!-- 
4
 
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
5
 
Requires Ant version 1.2
6
 
-->
7
 
<project name="src" default="build" basedir=".">
8
 
 
9
 
  <target name="properties">
10
 
    <property name="nest" value=".."/> 
11
 
  </target>
12
 
 
13
 
  <target name="compile" depends="properties">
14
 
    <javac srcdir="."
15
 
           destdir="${nest}/${build.dest}" 
16
 
           includes="org/**/*.java"
17
 
           deprecation="on"
18
 
           debug="${debug}">
19
 
    </javac>
20
 
  </target>
21
 
 
22
 
  <target name="copy-properties">
23
 
    <copy todir="${nest}/${build.dest}">
24
 
      <fileset dir="." includes="org/**/*.properties" />
25
 
    </copy>
26
 
  </target>
27
 
 
28
 
  <target name="copy-source">
29
 
    <copy todir="${nest}/${dist.src}">
30
 
      <fileset dir="."
31
 
               includes="org/**/*.java,org/**/*.properties,build.xml,manifest"/>
32
 
    </copy>
33
 
  </target>
34
 
 
35
 
  <target name="build" depends="compile,copy-properties,copy-source"/>
36
 
 
37
 
</project>
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
 
 
3
<!--
 
4
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
 
5
Requires Ant version 1.2
 
6
-->
 
7
<project name="src" default="compile" basedir="..">
 
8
 
 
9
  <property file="build.properties"/>
 
10
 
 
11
  <target name="compile">
 
12
    <javac srcdir="src"
 
13
           destdir="${classes}"
 
14
           includes="org/**/*.java"
 
15
           deprecation="on"
 
16
           debug="${debug}"
 
17
           target="${target-jvm}"
 
18
           >
 
19
    </javac>
 
20
    <copy todir="${classes}">
 
21
      <fileset dir="src" includes="org/**/*.properties" />
 
22
      <filterset>
 
23
          <filter token="IMPLEMENTATION.VERSION" 
 
24
                  value="${implementation.version}"/>
 
25
      </filterset>      
 
26
    </copy>
 
27
  </target>
 
28
 
 
29
  <target name="copy-source">
 
30
    <mkdir dir="${dist.dir}/src"/>
 
31
    <copy todir="${dist.dir}/src">
 
32
      <fileset dir="src"
 
33
               includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
 
34
    </copy>
 
35
  </target>
 
36
 
 
37
  <target name="clean">
 
38
    <delete includeEmptyDirs="true">
 
39
      <fileset dir="${classes}"
 
40
               excludes="org/mozilla/javascript/tools/**"/>
 
41
    </delete>
 
42
  </target>
 
43
 
 
44
</project>