| ... | ... | @@ -160,15 +160,6 @@ public class RestClient { |
|
|
|
<javac srcdir="." destdir="build" classpathref="classpath" includeantruntime="false"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run-basic" depends="compile" description="Runs the BasicRestClient class">
|
|
|
|
<java fork="true" classname="BasicRestClient">
|
|
|
|
<classpath>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<path location="build"/>
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="compile" description="Runs the advanced RestClient class">
|
|
|
|
<java fork="true" classname="RestClient">
|
|
|
|
<classpath>
|
| ... | ... | @@ -179,4 +170,18 @@ public class RestClient { |
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|
|
|
|
```
|
|
|
|
|
|
|
|
# How To Build
|
|
|
|
|
|
|
|
Once you have downloaded the json-smart JAR, created the RestClient.java file and the build.xml run the following command.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ant run
|
|
|
|
```
|
|
|
|
|
|
|
|
To run outside of the ant environment you will need the following command
|
|
|
|
|
|
|
|
```bash
|
|
|
|
java -classpath json-smart-1.2.jar:build RestClient
|
|
|
|
``` |
|
|
\ No newline at end of file |