javaantjsonix

Java ant build jsonix


how do i build the following using ant?

http://sourceforge.net/p/jsonix/code/HEAD/tree/trunk/samples/

bash-3.2$ ant -buildfile project-build.xml
Buildfile: /Users/user/Desktop/sandbox/jsonix-code-293-trunk/samples/po/project-build.xml

generate-sources:

BUILD FAILED
/Users/user/Desktop/sandbox/jsonix-code-293-trunk/samples/po/project-build.xml:9: /Users/user/Desktop/sandbox/jsonix-code-293-trunk/samples/po/lib does not exist.

Total time: 0 seconds

Solution

  • Jsonix author here.

    Jsonix itselfs built with Maven. So you actually have to do something like:

    mvn clean install
    

    This will generate three ZIPs in target directory:

    (Or just get these ZIP from Sourceforge).

    These ZIPs are distrubutions of sample "Purchase Order" project for Ant, Maven and command line.

    Apparently you're interested in Ant sample, so unzip the jsonix-samples-po-<VERSION>-ant-src.zip and run ant.