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"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry excluding="**/.svn|**/.svn/**/*" kind="src" output="build/main" path="src"/> <classpathentry kind="src" path="src/main/java"/>
<classpathentry excluding="**/.svn|**/.svn/**/*" kind="src" output="build/test" path="test"/> <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.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/> <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> </classpath>

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<projectDescription> <projectDescription>
<name>json.simple</name> <name>json-simple</name>
<comment></comment> <comment></comment>
<projects> <projects>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand> <buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name> <name>org.eclipse.jdt.core.javabuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

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 Yidong Fang
Chris Nokleberg Chris Nokleberg
Dave Hughes

View File

@@ -1,5 +1,9 @@
ChangeLog 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) Version 1.1 (2009/01/23)
* Supports stoppable SAX-like content handler for streaming of JSON text * Supports stoppable SAX-like content handler for streaming of JSON text
* Added JSONStreamAware to support streaming 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="."> <project name="json-simple" default="main" basedir=".">
<property name="current-version" value="1.1"/> <property name="current-version" value="1.1.1"/>
<property name="jar-name" value="json_simple-${current-version}.jar"/> <property name="targetDir" value="target"/>
<property name="javaSourceDir" value="src/main/java"/>
<target name="main" depends="jar"> <property name="javaTargetDir" value="target/classes"/>
</target>
<target name="main" depends="jar"></target>
<target name="clean"> <target name="clean">
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset dir="build/main" includes="**/*"/> <fileset dir="${targetDir}" includes="**/*"/>
</delete> </delete>
<delete file="lib/${jar-name}"/>
</target> </target>
<target name="mkdir"> <target name="mkdir">
<mkdir dir="build/main"/> <mkdir dir="${javaTargetDir}"/>
</target> </target>
<target name="compile" depends="mkdir"> <target name="compile" depends="mkdir">
<javac srcdir="src" <javac srcdir="${javaSourceDir}"
destdir="build/main" destdir="${javaTargetDir}"
includes="**/*.java" includes="**/*.java"
target="1.2" target="1.2"
source="1.2"/> source="1.2"/>
</target> </target>
<target name="jar" depends="compile"> <target name="jar" depends="compile">
<jar destfile="lib/${jar-name}" <jar destfile="${targetDir}/json-simple-${current-version}.jar"
basedir="build/main" basedir="${javaTargetDir}"
includes="**/*.class"/> 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> </target>
</project> </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>