~etherpad/etherpad/ubuntu-lucid-backport

« back to all changes in this revision

Viewing changes to infrastructure/rhino1_7R1/toolsrc/build.xml

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<!-- ***** BEGIN LICENSE BLOCK *****
 
3
   - Version: MPL 1.1/GPL 2.0
 
4
   -
 
5
   - The contents of this file are subject to the Mozilla Public License Version
 
6
   - 1.1 (the "License"); you may not use this file except in compliance with
 
7
   - the License. You may obtain a copy of the License at
 
8
   - http://www.mozilla.org/MPL/
 
9
   -
 
10
   - Software distributed under the License is distributed on an "AS IS" basis,
 
11
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
12
   - for the specific language governing rights and limitations under the
 
13
   - License.
 
14
   -
 
15
   - The Original Code is Rhino code, released May 6, 1999.
 
16
   -
 
17
   - The Initial Developer of the Original Code is
 
18
   - Netscape Communications Corporation.
 
19
   - Portions created by the Initial Developer are Copyright (C) 1997-1999
 
20
   - the Initial Developer. All Rights Reserved.
 
21
   -
 
22
   - Contributor(s):
 
23
   -
 
24
   - Alternatively, the contents of this file may be used under the terms of
 
25
   - the GNU General Public License Version 2 or later (the "GPL"), in which
 
26
   - case the provisions of the GPL are applicable instead of those above. If
 
27
   - you wish to allow use of your version of this file only under the terms of
 
28
   - the GPL and not to allow others to use your version of this file under the
 
29
   - MPL, indicate your decision by deleting the provisions above and replacing
 
30
   - them with the notice and other provisions required by the GPL. If you do
 
31
   - not delete the provisions above, a recipient may use your version of this
 
32
   - file under either the MPL or the GPL.
 
33
   -
 
34
   - ***** END LICENSE BLOCK ***** -->
 
35
 
 
36
 
 
37
<!--
 
38
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
 
39
Requires Ant version 1.2
 
40
-->
 
41
<project name="toolsrc" default="compile" basedir="..">
 
42
 
 
43
  <target name="properties">
 
44
    <property file="build.properties"/>
 
45
    <property name="debugger"
 
46
              value="org/mozilla/javascript/tools/debugger"/>
 
47
  </target>
 
48
 
 
49
  <target name="compile" depends="properties">
 
50
    <javac srcdir="toolsrc"
 
51
           destdir="${classes}"
 
52
           includes="org/**/*.java"
 
53
           excludes="org/**/debugger/*.java"
 
54
           deprecation="on"
 
55
           debug="${debug}"
 
56
           target="${target-jvm}"
 
57
           source="${source-level}"
 
58
    >
 
59
    </javac>
 
60
    <copy todir="${classes}">
 
61
      <fileset dir="toolsrc" includes="org/**/*.properties" />
 
62
    </copy>
 
63
  </target>
 
64
 
 
65
  <target name="copy-source" depends="properties">
 
66
    <mkdir dir="${dist.dir}/toolsrc"/>
 
67
    <copy todir="${dist.dir}/toolsrc">
 
68
      <fileset dir="toolsrc"
 
69
               includes="**/*.java,**/*.properties,**/*.xml"
 
70
               excludes="${debugger}/downloaded/**" />
 
71
    </copy>
 
72
  </target>
 
73
 
 
74
  <target name="download-debugger" depends="properties">
 
75
    <ant dir="toolsrc/${debugger}" target="download"/>
 
76
  </target>
 
77
 
 
78
  <target name="compile-debugger" depends="download-debugger">
 
79
    <mkdir dir="classes"/>
 
80
    <javac srcdir="toolsrc"
 
81
           destdir="classes"
 
82
           includes="org/**/debugger/*.java,org/**/debugger/downloaded/*.java"
 
83
           classpath="js.jar"
 
84
           deprecation="on"
 
85
           target="${target-jvm}"
 
86
           source="${source-level}"/>
 
87
    <copy todir="classes">
 
88
      <fileset dir="toolsrc" includes="org/**/*.properties" />
 
89
    </copy>
 
90
    <jar jarfile="js.jar"
 
91
         basedir="classes"
 
92
         update="yes"
 
93
     />
 
94
  </target>
 
95
 
 
96
  <target name="clean" depends="properties">
 
97
    <delete includeEmptyDirs="true">
 
98
      <fileset dir="${classes}"
 
99
               includes="org/mozilla/javascript/tools/**"/>
 
100
    </delete>
 
101
  </target>
 
102
 
 
103
</project>