Merged mavenization branch into trunk.

This commit is contained in:
nosslived@gmail.com
2012-02-07 03:53:36 +00:00
parent 8f55f3a0d0
commit 50559d892e
23 changed files with 114 additions and 41 deletions

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/.svn|**/.svn/**/*" kind="src" output="build/main" path="src"/>
<classpathentry excluding="**/.svn|**/.svn/**/*" kind="src" output="build/test" path="test"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/>
<classpathentry kind="output" path="build/main"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>json.simple</name>
<name>json-simple</name>
<comment></comment>
<projects>
</projects>

View File

@@ -0,0 +1,3 @@
#Mon Feb 06 00:32:07 CST 2012
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@@ -1,2 +1,3 @@
Yidong Fang
Chris Nokleberg
Dave Hughes

View File

@@ -1,5 +1,9 @@
ChangeLog
Version 1.1.1 (2012/01/29)
* Supports OSGi
* Accepts a java.util.Map parameter in constructor of JSONObject
Version 1.1 (2009/01/23)
* Supports stoppable SAX-like content handler for streaming of JSON text
* Added JSONStreamAware to support streaming JSON text

View File

@@ -1 +1 @@
1.1
1.1.1

View File

@@ -1,32 +1,41 @@
<project name="json-simple" default="main" basedir=".">
<property name="current-version" value="1.1"/>
<property name="jar-name" value="json_simple-${current-version}.jar"/>
<property name="current-version" value="1.1.1"/>
<property name="targetDir" value="target"/>
<property name="javaSourceDir" value="src/main/java"/>
<property name="javaTargetDir" value="target/classes"/>
<target name="main" depends="jar">
</target>
<target name="main" depends="jar"></target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="build/main" includes="**/*"/>
<fileset dir="${targetDir}" includes="**/*"/>
</delete>
<delete file="lib/${jar-name}"/>
</target>
<target name="mkdir">
<mkdir dir="build/main"/>
<mkdir dir="${javaTargetDir}"/>
</target>
<target name="compile" depends="mkdir">
<javac srcdir="src"
destdir="build/main"
<javac srcdir="${javaSourceDir}"
destdir="${javaTargetDir}"
includes="**/*.java"
target="1.2"
source="1.2"/>
</target>
<target name="jar" depends="compile">
<jar destfile="lib/${jar-name}"
basedir="build/main"
includes="**/*.class"/>
<jar destfile="${targetDir}/json-simple-${current-version}.jar"
basedir="${javaTargetDir}"
includes="**/*.class">
<manifest>
<attribute name="Bundle-Name" value="JSON.simple"/>
<attribute name="Bundle-SymbolicName" value="com.googlecode.json-simple.json-simple"/>
<attribute name="Bundle-Version" value="${current-version}"/>
<attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
<attribute name="Bundle-Description" value="A simple Java toolkit for JSON"/>
<attribute name="Export-Package" value="org.json.simple, org.json.simple.parser"/>
</manifest>
</jar>
</target>
</project>

Binary file not shown.

56
pom.xml Normal file
View File

@@ -0,0 +1,56 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<packaging>bundle</packaging>
<name>JSON.simple</name>
<version>1.1.1</version>
<description>A simple Java toolkit for JSON</description>
<url>http://code.google.com/p/json-simple/</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>Yidong</id>
<name>Yidong Fang</name>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
<scm>
<connection>scm:svn:http://json-simple.googlecode.com/svn/trunk/</connection>
<developerConnection>scm:svn:http://json-simple.googlecode.com/svn/trunk/</developerConnection>
<url>http://json-simple.googlecode.com/svn/trunk/</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.6</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>