~ubuntu-branches/debian/sid/libcommons-el-java/sid

« back to all changes in this revision

Viewing changes to debian/patches/05build_xml_version.patch

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-02 22:38:06 UTC
  • Revision ID: package-import@ubuntu.com-20110902223806-e94yrvtf1a8clq32
Tags: 1.0-7
* Team upload.
* Change Build-Depend-Indep: libservlet2.5-java.
* Refresh patches and update OSGi metadata.
* Remove Arnaud from Uploaders list.
* Remove Java runtime from Depends.
* Update Standards-Version: 3.9.1.
* Fix the name of the doc-base Document.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Allows the source and target version to be changed via a property.
2
 
Bug: http://bugs.debian.org/559323
3
 
 
4
 
--- a/build.xml 2010-02-12 19:41:31.842284948 +0100
5
 
+++ b/build.xml 2010-02-12 19:44:16.010284117 +0100
6
 
@@ -84,6 +84,12 @@
7
 
   <!-- Should Java compilations set the 'optimize' compiler option? -->
8
 
   <property name="compile.optimize"        value="true"/>
9
 
 
10
 
+  <!-- The java source version -->
11
 
+  <property name="compile.source"          value="1.5"/>
12
 
+
13
 
+  <!-- The java target version -->
14
 
+  <property name="compile.target"          value="1.5"/>
15
 
+
16
 
   <!-- Construct compile classpath -->
17
 
   <path id="compile.classpath">
18
 
     <pathelement location="${build.home}/classes"/>
19
 
@@ -170,6 +176,8 @@
20
 
   <target name="compile-only" >
21
 
     <javac  srcdir="${source.home}"
22
 
            destdir="${build.home}/classes"
23
 
+            source="${compile.source}"
24
 
+            target="${compile.target}"
25
 
              debug="${compile.debug}"
26
 
        deprecation="${compile.deprecation}"
27
 
           optimize="${compile.optimize}">
28
 
@@ -185,6 +193,8 @@
29
 
    description="Compile unit test cases">
30
 
     <javac  srcdir="${test.home}"
31
 
            destdir="${build.home}/tests"
32
 
+            source="${compile.source}"
33
 
+            target="${compile.target}"
34
 
              debug="${compile.debug}"
35
 
        deprecation="${compile.deprecation}"
36
 
           optimize="${compile.optimize}">