Gentoo Archives: gentoo-commits

From: "Petteri Raty (betelgeuse)" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/json-simple/files: build.xml extra-constructors-from-azureus.patch
Date: Sun, 20 Apr 2008 14:33:18
Message-Id: E1JnabU-00056u-D5@stork.gentoo.org
1 betelgeuse 08/04/20 14:33:16
2
3 Added: build.xml extra-constructors-from-azureus.patch
4 Log:
5 Initial addition. Thanks to serkan for the original ebuild which was then improved by me.
6 (Portage version: 2.1.5_rc3)
7
8 Revision Changes Path
9 1.1 dev-java/json-simple/files/build.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/json-simple/files/build.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/json-simple/files/build.xml?rev=1.1&content-type=text/plain
13
14 Index: build.xml
15 ===================================================================
16 <project name="TimingFramework" default="dist" basedir=".">
17 <description>
18 simple example build file
19 </description>
20 <!-- set global properties for this build -->
21 <property name="src" location="src"/>
22 <property name="build" location="build"/>
23 <property name="dist" location="dist"/>
24 <property name="javadoc" location="javadoc"/>
25
26 <target name="init">
27 <!-- Create the time stamp -->
28 <tstamp/>
29 <!-- Create the build directory structure used by compile -->
30 <mkdir dir="${build}"/>
31 </target>
32
33 <target name="compile" depends="init"
34 description="compile the source " >
35 <!-- Compile the java code from ${src} into ${build} -->
36 <javac srcdir="${src}" destdir="${build}"/>
37 </target>
38
39 <target name="dist" depends="compile"
40 description="generate the distribution" >
41 <!-- Create the distribution directory -->
42 <mkdir dir="${dist}/lib"/>
43
44 <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
45 <jar jarfile="${dist}/lib/json-simple.jar" basedir="${build}"/>
46 </target>
47
48 <target name="clean"
49 description="clean up" >
50 <!-- Delete the ${build} and ${dist} directory trees -->
51 <delete dir="${build}"/>
52 <delete dir="${dist}"/>
53 <delete dir="${javadoc}"/>
54 </target>
55
56 <target name="javadoc" description="Produce package javadoc">
57 <javadoc destdir="${javadoc}" >
58 <fileset dir="src" defaultexcludes="yes">
59 <include name="org/json/**"/>
60 </fileset>
61 </javadoc>
62 </target>
63
64 </project>
65
66
67
68 1.1 dev-java/json-simple/files/extra-constructors-from-azureus.patch
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/json-simple/files/extra-constructors-from-azureus.patch?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/json-simple/files/extra-constructors-from-azureus.patch?rev=1.1&content-type=text/plain
72
73 Index: extra-constructors-from-azureus.patch
74 ===================================================================
75 Only in work/org/json/simple: AUTHORS.txt
76 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/ItemList.java work/org/json/simple/ItemList.java
77 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/ItemList.java 2006-04-16 04:04:26.000000000 +0300
78 +++ work/org/json/simple/ItemList.java 2007-06-04 17:43:56.000000000 +0300
79 @@ -1,5 +1,5 @@
80 /*
81 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
82 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
83 * Created on 2006-3-24
84 */
85 package org.json.simple;
86 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONArray.java work/org/json/simple/JSONArray.java
87 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONArray.java 2006-04-16 04:04:24.000000000 +0300
88 +++ work/org/json/simple/JSONArray.java 2007-06-04 17:43:56.000000000 +0300
89 @@ -1,10 +1,11 @@
90 /*
91 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
92 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
93 * Created on 2006-4-10
94 */
95 package org.json.simple;
96
97 import java.util.ArrayList;
98 +import java.util.Collection;
99 import java.util.Iterator;
100
101
102 @@ -12,6 +13,18 @@
103 * @author FangYidong<fangyidong@×××××××××.cn>
104 */
105 public class JSONArray extends ArrayList {
106 + public JSONArray() {
107 + super();
108 + }
109 +
110 + public JSONArray(Collection arg0) {
111 + super(arg0);
112 + }
113 +
114 + public JSONArray(int initialCapacity) {
115 + super(initialCapacity);
116 + }
117 +
118 public String toString(){
119 ItemList list=new ItemList();
120
121 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONObject.java work/org/json/simple/JSONObject.java
122 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONObject.java 2006-04-16 11:26:38.000000000 +0300
123 +++ work/org/json/simple/JSONObject.java 2007-06-04 17:43:56.000000000 +0300
124 @@ -1,5 +1,5 @@
125 /*
126 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
127 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
128 * Created on 2006-4-10
129 */
130 package org.json.simple;
131 @@ -13,6 +13,22 @@
132 */
133 public class JSONObject extends HashMap{
134
135 + public JSONObject() {
136 + super();
137 + }
138 +
139 + public JSONObject(int initialCapacity, float loadFactor) {
140 + super(initialCapacity, loadFactor);
141 + }
142 +
143 + public JSONObject(int initialCapacity) {
144 + super(initialCapacity);
145 + }
146 +
147 + public JSONObject(Map arg0) {
148 + super(arg0);
149 + }
150 +
151 public String toString(){
152 ItemList list=new ItemList();
153 Iterator iter=entrySet().iterator();
154 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONValue.java work/org/json/simple/JSONValue.java
155 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/JSONValue.java 2006-04-16 04:04:42.000000000 +0300
156 +++ work/org/json/simple/JSONValue.java 2007-06-04 17:43:56.000000000 +0300
157 @@ -1,5 +1,5 @@
158 /*
159 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
160 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
161 * Created on 2006-4-15
162 */
163 package org.json.simple;
164 Only in work/org/json/simple: LICENSE.txt
165 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/parser/JSONParser.java work/org/json/simple/parser/JSONParser.java
166 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/parser/JSONParser.java 2006-04-16 04:04:44.000000000 +0300
167 +++ work/org/json/simple/parser/JSONParser.java 2007-06-04 17:43:56.000000000 +0300
168 @@ -1,5 +1,5 @@
169 /*
170 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
171 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
172 * Created on 2006-4-15
173 */
174 package org.json.simple.parser;
175 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/parser/Yytoken.java work/org/json/simple/parser/Yytoken.java
176 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/parser/Yytoken.java 2006-04-16 04:04:44.000000000 +0300
177 +++ work/org/json/simple/parser/Yytoken.java 2007-06-04 17:43:56.000000000 +0300
178 @@ -1,5 +1,5 @@
179 /*
180 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
181 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
182 * Created on 2006-4-15
183 */
184 package org.json.simple.parser;
185 Only in work/org/json/simple: README.txt
186 diff -ur /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/Test.java work/org/json/simple/Test.java
187 --- /var/tmp/portage/dev-java/json-simple-20080420/work/json_simple/src/org/json/simple/Test.java 2006-04-16 13:56:20.000000000 +0300
188 +++ work/org/json/simple/Test.java 2007-06-04 17:43:56.000000000 +0300
189 @@ -1,5 +1,5 @@
190 /*
191 - * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
192 + * $Id: extra-constructors-from-azureus.patch,v 1.1 2008/04/20 14:33:15 betelgeuse Exp $
193 * Created on 2006-4-15
194 */
195 package org.json.simple;
196
197
198
199 --
200 gentoo-commits@l.g.o mailing list