From cc52b080fc2eaaed9b52b7c5994c1d2b774e93e4 Mon Sep 17 00:00:00 2001 From: Deepak Michael Date: Thu, 25 Aug 2011 09:34:24 +0530 Subject: [PATCH] Swagger: AS3 sdk - Updated build config for as3 code gen and sample file for build --- conf/as3/sample/as3_code_gen_conf.json | 10 +- conf/as3/sample/build.properties | 28 ++++++ conf/as3/sample/build.xml | 127 +++++++++++++++++++++++++ 3 files changed, 160 insertions(+), 5 deletions(-) create mode 100644 conf/as3/sample/build.properties create mode 100644 conf/as3/sample/build.xml diff --git a/conf/as3/sample/as3_code_gen_conf.json b/conf/as3/sample/as3_code_gen_conf.json index 7d95d614b7c..46b40260a2b 100644 --- a/conf/as3/sample/as3_code_gen_conf.json +++ b/conf/as3/sample/as3_code_gen_conf.json @@ -1,5 +1,5 @@ { - "apiUrl":"http://swagr.api.wordnik.com/v4/", + "apiUrl":"http://localhost:8002/api/", "apiKey":"special-key", @@ -20,11 +20,11 @@ "apiPackageName":"com.wordnik.swagger.api", - "ignoreMethods":["WordAPI.getWordFrequency","WordAPI.getAudio","WordAPI.getWordStats","WordAPI.getFlickrImages"], + "ignoreMethods":[], - "ignoreModels":["wordStats","photo","sizes"], + "ignoreModels":[], - "outputDirectory":"../api-server-temp/as3ApiSDK/src/main/as3/com/wordnik/swagger/", + "outputDirectory":"../swagger-sample-app/sdk-libs/src/main/as3/com/wordnik/swagger/", - "libraryHome":"../api-server-temp/as3ApiSDK" + "libraryHome":"../swagger-sample-app/sdk-libs" } \ No newline at end of file diff --git a/conf/as3/sample/build.properties b/conf/as3/sample/build.properties new file mode 100644 index 00000000000..296de251181 --- /dev/null +++ b/conf/as3/sample/build.properties @@ -0,0 +1,28 @@ +# Window and document title for the documentation +title=Sample app AS3 SDK API Documentation + +#Path to the source folder where the .as files are located +sourcepath = ./src/main/as3 + +# Class-folders you want to search for classes to be included in the docs, seperated by spaces (for example ../com/ ../net/ ) +# to include every .as and .mxml file within your project, just state ../ +domainextensions = ./src/main/as3 + +# The Location of deployment library on your Computer (PC/Mac) for compiled SWC file +liboutputfolder = bin +liboutputfile = as3-sample-sdk.swc +libpath = lib + +# The Location of the output folder for your generated documents +docsoutputfolder = asdoc + +# Home directory for flex sdk 3, change this to build for Mac or PC using # as comment +# SDK_HOME = C:/Program Files/Adobe/Flash Builder 4/sdks/3.5.0 +# SDK_HOME = /Applications/Adobe Flash Builder 4/sdks/3.5.0 +# SDK_HOME = /usr/local/flex_sdk_4.1.0/ +# FLEX_HOME = /usr/local/flex_sdk_4.1.0/ + +# The location of your asdoc.exe, change this to build for Mac or PC using # as comment +#asdoc.exe = C:/Program Files/Adobe/Flash Builder 4/sdks/3.5.0/bin/asdoc.exe +#asdoc.exe = /Applications/Adobe Flash Builder 4/sdks/3.5.0/bin/asdoc + diff --git a/conf/as3/sample/build.xml b/conf/as3/sample/build.xml new file mode 100644 index 00000000000..25d9820db8a --- /dev/null +++ b/conf/as3/sample/build.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + docs created + + + + + + + + + + + + + + + + + + + + SWC created + + + + + + + + + + + + + + + + + + + \ No newline at end of file