Skip to content

Commit

Permalink
- Completed javadoc in preparation for release. Performed some refact…
Browse files Browse the repository at this point in the history
…oring and deadcode removal in the process

- Added example for registering custom ParseObject subclass to ParseObjectTest
- Improved custom test runner in JavaTest application to report test results at end
- Refined project dependencies
- Updated readme
- Added  java test application to illustrate how parse4cn1.jar can be used in a normal java context
  • Loading branch information
sidiabale committed May 6, 2015
1 parent ee562b3 commit 6fc3aa8
Show file tree
Hide file tree
Showing 310 changed files with 43,890 additions and 3,662 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ nbproject/private/private.properties
nbproject/private/private.xml
test/testapp/nbproject/private/private.properties
test/testapp/nbproject/private/private.xml
/test/JavaTestApplication/nbproject/private/
/test/JavaTestApplication/build/
/test/CN1TestApp/build/
/test/CN1TestApp/dist/
/test/CN1TestApp/nbproject/private/
test/CN1TestApp/lib/impl/cls/ca/weblite/codename1/json/JSONArray.class
/test/JavaTestApplication/dist/
/test/JavaTestApplication/lib/CN1JSON.cn1lib
/test/JavaTestApplication/lib/JavaSE.jar
test/CN1TestApp/lib/impl/
/dist/
948 changes: 43 additions & 905 deletions README.md

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<target name="Stubs">
<delete dir="build/stubs"/>
<javadoc sourcepath="src"
classpath="lib/CodenameOne.jar:lib/CLDC11.jar:lib/cn1json/build/classes"
classpath="lib/CodenameOne.jar:lib/CLDC11.jar:lib/CN1JSON.jar"
docletpath="Stubber.jar"
doclet="com.codename1.build.client.StubGenerator">
<!-- TODO: Fix me!!!
Expand Down Expand Up @@ -76,7 +76,7 @@
</javadoc>
</target>

<target name="jar" depends="compile,Stubs">
<target name="-post-compile" depends="Stubs">
<mkdir dir="build/lib" />
<zip basedir="${build.classes.dir}" compress="false" destfile="build/lib/main.zip" />
<zip basedir="build/stubs" compress="false" destfile="build/lib/stubs.zip" />
Expand All @@ -89,12 +89,11 @@
<antcall target="buildNativeME" />
<mkdir dir="dist" />
<zip basedir="build/lib" compress="true" destfile="dist/${application.title}.cn1lib" />
<copy file="dist/${application.title}.cn1lib" todir="test/testapp/lib" failonerror="true" />
<copy file="lib/VERSIONS.txt" todir="dist" failonerror="true" />
<copy file="lib/VERSIONS.txt" todir="dist" failonerror="true" />
<copy file="lib/CN1JSON.cn1lib" todir="dist" failonerror="true" />
<copy file="lib/CN1JSON.cn1lib" todir="test/testapp/lib" failonerror="true" />
<copy file="test/CN1TestApp/JavaSE.jar" todir="dist/lib" failonerror="true" />
</target>

<target name="buildNativeRIM">
<path id="rimNativeDir">
<fileset dir="native/rim"/>
Expand Down
32 changes: 32 additions & 0 deletions dist/README.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
========================
BUILD OUTPUT DESCRIPTION
========================

When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).

To run the project from the command line, go to the dist folder and
type the following:

java -jar "parse4cn1.jar"

To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.

Notes:

* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
3 changes: 2 additions & 1 deletion dist/VERSIONS.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Versions:

CN1JSON.cn1lib: Untagged version retrieved on March 8, 2013 from https://github.com/shannah/CN1JSON/blob/master/dist/CN1JSON.cn1lib?raw=true
CN1JSON.cn1lib: Untagged version retrieved on March 8, 2013 from https://github.com/shannah/CN1JSON/blob/master/dist/CN1JSON.cn1lib?raw=true
CN1JSON.jar: Regular jar version of CN1JSON.cn1lib retrieved on May 2, 2015 from https://github.com/shannah/CN1JSON/blob/master/dist/CN1JSON.jar?raw=true
74 changes: 74 additions & 0 deletions dist/javadoc/allclasses-frame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Tue May 05 21:31:12 CEST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (Parse4CN1 API Documentation)</title>
<meta name="date" content="2015-05-05">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1 class="bar">All&nbsp;Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="com/parse4cn1/operation/AddToArrayOperation.html" title="class in com.parse4cn1.operation" target="classFrame">AddToArrayOperation</a></li>
<li><a href="com/parse4cn1/operation/AddUniqueToArrayOperation.html" title="class in com.parse4cn1.operation" target="classFrame">AddUniqueToArrayOperation</a></li>
<li><a href="com/parse4cn1/callback/CountCallback.html" title="class in com.parse4cn1.callback" target="classFrame">CountCallback</a></li>
<li><a href="com/parse4cn1/callback/DeleteCallback.html" title="class in com.parse4cn1.callback" target="classFrame">DeleteCallback</a></li>
<li><a href="com/parse4cn1/operation/DeleteFieldOperation.html" title="class in com.parse4cn1.operation" target="classFrame">DeleteFieldOperation</a></li>
<li><a href="com/parse4cn1/callback/FindCallback.html" title="class in com.parse4cn1.callback" target="classFrame">FindCallback</a></li>
<li><a href="com/parse4cn1/callback/FunctionCallback.html" title="class in com.parse4cn1.callback" target="classFrame">FunctionCallback</a></li>
<li><a href="com/parse4cn1/callback/GetCallback.html" title="class in com.parse4cn1.callback" target="classFrame">GetCallback</a></li>
<li><a href="com/parse4cn1/callback/GetDataCallback.html" title="class in com.parse4cn1.callback" target="classFrame">GetDataCallback</a></li>
<li><a href="com/parse4cn1/operation/IncrementFieldOperation.html" title="class in com.parse4cn1.operation" target="classFrame">IncrementFieldOperation</a></li>
<li><a href="com/parse4cn1/encode/IParseObjectEncodingStrategy.html" title="interface in com.parse4cn1.encode" target="classFrame"><span class="interfaceName">IParseObjectEncodingStrategy</span></a></li>
<li><a href="com/parse4cn1/callback/LocationCallback.html" title="class in com.parse4cn1.callback" target="classFrame">LocationCallback</a></li>
<li><a href="com/parse4cn1/util/Logger.html" title="class in com.parse4cn1.util" target="classFrame">Logger</a></li>
<li><a href="com/parse4cn1/callback/LoginCallback.html" title="class in com.parse4cn1.callback" target="classFrame">LoginCallback</a></li>
<li><a href="com/parse4cn1/util/MimeType.html" title="class in com.parse4cn1.util" target="classFrame">MimeType</a></li>
<li><a href="com/parse4cn1/Parse.html" title="class in com.parse4cn1" target="classFrame">Parse</a></li>
<li><a href="com/parse4cn1/Parse.DefaultParseObjectFactory.html" title="class in com.parse4cn1" target="classFrame">Parse.DefaultParseObjectFactory</a></li>
<li><a href="com/parse4cn1/Parse.IParseObjectFactory.html" title="interface in com.parse4cn1" target="classFrame"><span class="interfaceName">Parse.IParseObjectFactory</span></a></li>
<li><a href="com/parse4cn1/Parse.IPersistable.html" title="interface in com.parse4cn1" target="classFrame"><span class="interfaceName">Parse.IPersistable</span></a></li>
<li><a href="com/parse4cn1/callback/ParseCallback.html" title="class in com.parse4cn1.callback" target="classFrame">ParseCallback</a></li>
<li><a href="com/parse4cn1/ParseCloud.html" title="class in com.parse4cn1" target="classFrame">ParseCloud</a></li>
<li><a href="com/parse4cn1/command/ParseCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParseCommand</a></li>
<li><a href="com/parse4cn1/ParseConstants.html" title="class in com.parse4cn1" target="classFrame">ParseConstants</a></li>
<li><a href="com/parse4cn1/encode/ParseDecoder.html" title="class in com.parse4cn1.encode" target="classFrame">ParseDecoder</a></li>
<li><a href="com/parse4cn1/command/ParseDeleteCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParseDeleteCommand</a></li>
<li><a href="com/parse4cn1/command/ParseDownloadCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParseDownloadCommand</a></li>
<li><a href="com/parse4cn1/encode/ParseEncoder.html" title="class in com.parse4cn1.encode" target="classFrame">ParseEncoder</a></li>
<li><a href="com/parse4cn1/ParseException.html" title="class in com.parse4cn1" target="classFrame">ParseException</a></li>
<li><a href="com/parse4cn1/ParseFile.html" title="class in com.parse4cn1" target="classFrame">ParseFile</a></li>
<li><a href="com/parse4cn1/ParseGeoPoint.html" title="class in com.parse4cn1" target="classFrame">ParseGeoPoint</a></li>
<li><a href="com/parse4cn1/command/ParseGetCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParseGetCommand</a></li>
<li><a href="com/parse4cn1/ParseObject.html" title="class in com.parse4cn1" target="classFrame">ParseObject</a></li>
<li><a href="com/parse4cn1/operation/ParseOperation.html" title="interface in com.parse4cn1.operation" target="classFrame"><span class="interfaceName">ParseOperation</span></a></li>
<li><a href="com/parse4cn1/operation/ParseOperationDecoder.html" title="class in com.parse4cn1.operation" target="classFrame">ParseOperationDecoder</a></li>
<li><a href="com/parse4cn1/operation/ParseOperationUtil.html" title="class in com.parse4cn1.operation" target="classFrame">ParseOperationUtil</a></li>
<li><a href="com/parse4cn1/command/ParsePostCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParsePostCommand</a></li>
<li><a href="com/parse4cn1/command/ParsePutCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParsePutCommand</a></li>
<li><a href="com/parse4cn1/ParseQuery.html" title="class in com.parse4cn1" target="classFrame">ParseQuery</a></li>
<li><a href="com/parse4cn1/util/ParseRegistry.html" title="class in com.parse4cn1.util" target="classFrame">ParseRegistry</a></li>
<li><a href="com/parse4cn1/ParseRelation.html" title="class in com.parse4cn1" target="classFrame">ParseRelation</a></li>
<li><a href="com/parse4cn1/command/ParseResponse.html" title="class in com.parse4cn1.command" target="classFrame">ParseResponse</a></li>
<li><a href="com/parse4cn1/ParseRole.html" title="class in com.parse4cn1" target="classFrame">ParseRole</a></li>
<li><a href="com/parse4cn1/command/ParseUploadCommand.html" title="class in com.parse4cn1.command" target="classFrame">ParseUploadCommand</a></li>
<li><a href="com/parse4cn1/ParseUser.html" title="class in com.parse4cn1" target="classFrame">ParseUser</a></li>
<li><a href="com/parse4cn1/encode/PointerEncodingStrategy.html" title="class in com.parse4cn1.encode" target="classFrame">PointerEncodingStrategy</a></li>
<li><a href="com/parse4cn1/encode/PointerOrLocalIdEncodingStrategy.html" title="class in com.parse4cn1.encode" target="classFrame">PointerOrLocalIdEncodingStrategy</a></li>
<li><a href="com/parse4cn1/callback/ProgressCallback.html" title="class in com.parse4cn1.callback" target="classFrame">ProgressCallback</a></li>
<li><a href="com/parse4cn1/operation/RelationOperation.html" title="class in com.parse4cn1.operation" target="classFrame">RelationOperation</a></li>
<li><a href="com/parse4cn1/operation/RelationOperation.ERelationType.html" title="enum in com.parse4cn1.operation" target="classFrame">RelationOperation.ERelationType</a></li>
<li><a href="com/parse4cn1/operation/RemoveFromArrayOperation.html" title="class in com.parse4cn1.operation" target="classFrame">RemoveFromArrayOperation</a></li>
<li><a href="com/parse4cn1/callback/RequestPasswordResetCallback.html" title="class in com.parse4cn1.callback" target="classFrame">RequestPasswordResetCallback</a></li>
<li><a href="com/parse4cn1/callback/SaveCallback.html" title="class in com.parse4cn1.callback" target="classFrame">SaveCallback</a></li>
<li><a href="com/parse4cn1/callback/SendCallback.html" title="class in com.parse4cn1.callback" target="classFrame">SendCallback</a></li>
<li><a href="com/parse4cn1/operation/SetFieldOperation.html" title="class in com.parse4cn1.operation" target="classFrame">SetFieldOperation</a></li>
<li><a href="com/parse4cn1/callback/SignUpCallback.html" title="class in com.parse4cn1.callback" target="classFrame">SignUpCallback</a></li>
</ul>
</div>
</body>
</html>
74 changes: 74 additions & 0 deletions dist/javadoc/allclasses-noframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Tue May 05 21:31:12 CEST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (Parse4CN1 API Documentation)</title>
<meta name="date" content="2015-05-05">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1 class="bar">All&nbsp;Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="com/parse4cn1/operation/AddToArrayOperation.html" title="class in com.parse4cn1.operation">AddToArrayOperation</a></li>
<li><a href="com/parse4cn1/operation/AddUniqueToArrayOperation.html" title="class in com.parse4cn1.operation">AddUniqueToArrayOperation</a></li>
<li><a href="com/parse4cn1/callback/CountCallback.html" title="class in com.parse4cn1.callback">CountCallback</a></li>
<li><a href="com/parse4cn1/callback/DeleteCallback.html" title="class in com.parse4cn1.callback">DeleteCallback</a></li>
<li><a href="com/parse4cn1/operation/DeleteFieldOperation.html" title="class in com.parse4cn1.operation">DeleteFieldOperation</a></li>
<li><a href="com/parse4cn1/callback/FindCallback.html" title="class in com.parse4cn1.callback">FindCallback</a></li>
<li><a href="com/parse4cn1/callback/FunctionCallback.html" title="class in com.parse4cn1.callback">FunctionCallback</a></li>
<li><a href="com/parse4cn1/callback/GetCallback.html" title="class in com.parse4cn1.callback">GetCallback</a></li>
<li><a href="com/parse4cn1/callback/GetDataCallback.html" title="class in com.parse4cn1.callback">GetDataCallback</a></li>
<li><a href="com/parse4cn1/operation/IncrementFieldOperation.html" title="class in com.parse4cn1.operation">IncrementFieldOperation</a></li>
<li><a href="com/parse4cn1/encode/IParseObjectEncodingStrategy.html" title="interface in com.parse4cn1.encode"><span class="interfaceName">IParseObjectEncodingStrategy</span></a></li>
<li><a href="com/parse4cn1/callback/LocationCallback.html" title="class in com.parse4cn1.callback">LocationCallback</a></li>
<li><a href="com/parse4cn1/util/Logger.html" title="class in com.parse4cn1.util">Logger</a></li>
<li><a href="com/parse4cn1/callback/LoginCallback.html" title="class in com.parse4cn1.callback">LoginCallback</a></li>
<li><a href="com/parse4cn1/util/MimeType.html" title="class in com.parse4cn1.util">MimeType</a></li>
<li><a href="com/parse4cn1/Parse.html" title="class in com.parse4cn1">Parse</a></li>
<li><a href="com/parse4cn1/Parse.DefaultParseObjectFactory.html" title="class in com.parse4cn1">Parse.DefaultParseObjectFactory</a></li>
<li><a href="com/parse4cn1/Parse.IParseObjectFactory.html" title="interface in com.parse4cn1"><span class="interfaceName">Parse.IParseObjectFactory</span></a></li>
<li><a href="com/parse4cn1/Parse.IPersistable.html" title="interface in com.parse4cn1"><span class="interfaceName">Parse.IPersistable</span></a></li>
<li><a href="com/parse4cn1/callback/ParseCallback.html" title="class in com.parse4cn1.callback">ParseCallback</a></li>
<li><a href="com/parse4cn1/ParseCloud.html" title="class in com.parse4cn1">ParseCloud</a></li>
<li><a href="com/parse4cn1/command/ParseCommand.html" title="class in com.parse4cn1.command">ParseCommand</a></li>
<li><a href="com/parse4cn1/ParseConstants.html" title="class in com.parse4cn1">ParseConstants</a></li>
<li><a href="com/parse4cn1/encode/ParseDecoder.html" title="class in com.parse4cn1.encode">ParseDecoder</a></li>
<li><a href="com/parse4cn1/command/ParseDeleteCommand.html" title="class in com.parse4cn1.command">ParseDeleteCommand</a></li>
<li><a href="com/parse4cn1/command/ParseDownloadCommand.html" title="class in com.parse4cn1.command">ParseDownloadCommand</a></li>
<li><a href="com/parse4cn1/encode/ParseEncoder.html" title="class in com.parse4cn1.encode">ParseEncoder</a></li>
<li><a href="com/parse4cn1/ParseException.html" title="class in com.parse4cn1">ParseException</a></li>
<li><a href="com/parse4cn1/ParseFile.html" title="class in com.parse4cn1">ParseFile</a></li>
<li><a href="com/parse4cn1/ParseGeoPoint.html" title="class in com.parse4cn1">ParseGeoPoint</a></li>
<li><a href="com/parse4cn1/command/ParseGetCommand.html" title="class in com.parse4cn1.command">ParseGetCommand</a></li>
<li><a href="com/parse4cn1/ParseObject.html" title="class in com.parse4cn1">ParseObject</a></li>
<li><a href="com/parse4cn1/operation/ParseOperation.html" title="interface in com.parse4cn1.operation"><span class="interfaceName">ParseOperation</span></a></li>
<li><a href="com/parse4cn1/operation/ParseOperationDecoder.html" title="class in com.parse4cn1.operation">ParseOperationDecoder</a></li>
<li><a href="com/parse4cn1/operation/ParseOperationUtil.html" title="class in com.parse4cn1.operation">ParseOperationUtil</a></li>
<li><a href="com/parse4cn1/command/ParsePostCommand.html" title="class in com.parse4cn1.command">ParsePostCommand</a></li>
<li><a href="com/parse4cn1/command/ParsePutCommand.html" title="class in com.parse4cn1.command">ParsePutCommand</a></li>
<li><a href="com/parse4cn1/ParseQuery.html" title="class in com.parse4cn1">ParseQuery</a></li>
<li><a href="com/parse4cn1/util/ParseRegistry.html" title="class in com.parse4cn1.util">ParseRegistry</a></li>
<li><a href="com/parse4cn1/ParseRelation.html" title="class in com.parse4cn1">ParseRelation</a></li>
<li><a href="com/parse4cn1/command/ParseResponse.html" title="class in com.parse4cn1.command">ParseResponse</a></li>
<li><a href="com/parse4cn1/ParseRole.html" title="class in com.parse4cn1">ParseRole</a></li>
<li><a href="com/parse4cn1/command/ParseUploadCommand.html" title="class in com.parse4cn1.command">ParseUploadCommand</a></li>
<li><a href="com/parse4cn1/ParseUser.html" title="class in com.parse4cn1">ParseUser</a></li>
<li><a href="com/parse4cn1/encode/PointerEncodingStrategy.html" title="class in com.parse4cn1.encode">PointerEncodingStrategy</a></li>
<li><a href="com/parse4cn1/encode/PointerOrLocalIdEncodingStrategy.html" title="class in com.parse4cn1.encode">PointerOrLocalIdEncodingStrategy</a></li>
<li><a href="com/parse4cn1/callback/ProgressCallback.html" title="class in com.parse4cn1.callback">ProgressCallback</a></li>
<li><a href="com/parse4cn1/operation/RelationOperation.html" title="class in com.parse4cn1.operation">RelationOperation</a></li>
<li><a href="com/parse4cn1/operation/RelationOperation.ERelationType.html" title="enum in com.parse4cn1.operation">RelationOperation.ERelationType</a></li>
<li><a href="com/parse4cn1/operation/RemoveFromArrayOperation.html" title="class in com.parse4cn1.operation">RemoveFromArrayOperation</a></li>
<li><a href="com/parse4cn1/callback/RequestPasswordResetCallback.html" title="class in com.parse4cn1.callback">RequestPasswordResetCallback</a></li>
<li><a href="com/parse4cn1/callback/SaveCallback.html" title="class in com.parse4cn1.callback">SaveCallback</a></li>
<li><a href="com/parse4cn1/callback/SendCallback.html" title="class in com.parse4cn1.callback">SendCallback</a></li>
<li><a href="com/parse4cn1/operation/SetFieldOperation.html" title="class in com.parse4cn1.operation">SetFieldOperation</a></li>
<li><a href="com/parse4cn1/callback/SignUpCallback.html" title="class in com.parse4cn1.callback">SignUpCallback</a></li>
</ul>
</div>
</body>
</html>
Loading

0 comments on commit 6fc3aa8

Please sign in to comment.