Permalink
Browse files

Merging changes from internal master branch. Continous integration fo…

…lder has been added to make sure that Hudson CI can be hooked up to this. YUI tests have also been added.
  • Loading branch information...
nukulb committed Aug 3, 2011
1 parent b12fe4e commit b2773b80459328ec97b43e68356ebfa010e13927
Showing 787 changed files with 117,613 additions and 4 deletions.
View
@@ -0,0 +1,7 @@
+# ignore build.num (an Ant artifact)
+build.num
+# ignore Flash Builder artifacts
+.actionScriptProperties
+.flexProperties
+.flexLibProperties
+.project
View
@@ -0,0 +1,3 @@
+#Build Number for ANT. Do not edit!
+#Wed Feb 02 15:43:43 EST 2011
+build.number=30
View
@@ -0,0 +1,30 @@
+packager.version=1.0.0
+
+installer.dir=${basedir}/installer
+packager.src.dir=${basedir}/packager/src
+packager.bin.dir=${basedir}/packager/bin
+
+installer.data.dir=${installer.dir}/installerdata
+installer.bbwp.dir=${installer.data.dir}/bbwp
+installer.sdk.dir=${installer.data.dir}/blackberry-tablet-sdk
+installer.air.templates.src.dir=${installer.bbwp.dir}/AirAppTemplates/src
+installer.air.bin.dir=${installer.bbwp.dir}/bin
+installer.js.global.dir=${installer.air.templates.src.dir}/WebWorksApplicationSharedJsRepository0/sharedglobal
+
+installer.ext.dir=${installer.bbwp.dir}/ext
+
+installer.output.dir=${installer.dir}/blackberry_webworks_sdk_Build_Output
+installer.migr.conf.dir=${installer.dir}/blackberry_webworks_sdklocales_Migrated_Configuration
+
+framework.dir=${basedir}/framework
+framework.src.dir=${framework.dir}/src
+
+jsapi.dir=${basedir}/js_api
+
+common.as.src.dir=${jsapi.dir}/Common_AS/JSONLibrary/src/
+
+sdk.zip.dir=M:/Mssga_share/snarf-build/tablet-sdks
+sdk.build.num=0008
+install.anywhere.home=C:/Program Files/InstallAnywhere 2010 Enterprise
+
+build.num.file=${basedir}/build.num
View
109 build.xml
@@ -0,0 +1,109 @@
+<project name="BuildSnarf" basedir=".">
+
+ <property name="build.properties.file" location="${basedir}/build.properties" />
+ <property file="${build.properties.file}" />
+
+ <!-- Ant task for "InstallAnywhere" found in "iaant.jar" -->
+ <taskdef name="buildinstaller"
+ classpath="${install.anywhere.home}/resource/build/iaant.jar"
+ classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask"/>
+
+
+ <target name="init">
+ <echo>Reading build number from ${build.num.file}...</echo>
+ <buildnumber file="${build.num.file}" />
+ <echo>Using build number: ${build.number}</echo>
+
+ <echo>Deleting previous build output from ${installer.output.dir} and ${installer.migr.conf.dir}...</echo>
+ <delete dir="${installer.output.dir}" />
+ <delete dir="${installer.migr.conf.dir}" />
+ </target>
+
+ <!--Compile the packager class files. Jar-up bbwp.jar. -->
+ <target name="build.bbwp.jar">
+ <echo>Building Java packager...</echo>
+ <javac srcdir="${packager.src.dir}" destdir="${packager.bin.dir}" excludes="TumblerLauncher/**"/>
+
+ <echo>Copying log message resource to output folder...</echo>
+ <copy todir="${packager.bin.dir}/net/rim/tumbler/log/resources">
+ <fileset dir="${packager.src.dir}/net/rim/tumbler/log/resources" />
+ </copy>
+
+ <echo>Packaging Java classes into JAR...</echo>
+ <jar destfile="${installer.air.bin.dir}\bbwp.jar" basedir="${packager.bin.dir}">
+ <manifest>
+ <attribute name="Implementation-Vendor" value="Research In Motion"/>
+ <attribute name="Implementation-Version" value="${packager.version}.${build.number}"/>
+ <attribute name="Main-Class" value="net.rim.tumbler.WidgetPackager"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!--
+ Prepare deployment files for installer:
+ 1) Copy bbwp.jar to installerdata.
+ 2) Copy the appropriate JavaScript APIs to the ext folder under installerdata, pruning filenames that begin with ".".
+ 3) Copy the JSON source files to the correct location under installerdata.
+ 4) Copy the shared global source files to the correct location under installerdata.
+ 5) Copy the template files to the correct location under installerdata.
+ 6) Delete the tablet SDK files under installerdata.
+ -->
+ <target name="prepare.installer.files">
+ <!-- Copy the framework/webworks package and root folder descriptor files/entry class -->
+ <echo>Copying framework source from ${framework.src.dir} to ${installer.air.templates.src.dir}...</echo>
+ <copy todir="${installer.air.templates.src.dir}">
+ <fileset dir="${framework.src.dir}" includes="webworks/**, *.xml, WebWorksAppTemplate*" />
+ </copy>
+ <!-- Copy JSON Library -->
+ <echo>Copying JSON Libary source from ${common.as.src.dir} to ${installer.air.templates.src.dir}...</echo>
+ <copy todir="${installer.air.templates.src.dir}">
+ <fileset dir="${common.as.src.dir}" includes="json/**" />
+ </copy>
+ <!-- Copy shared global files -->
+ <echo>Copying shared JS source from ${jsapi.dir}/globalJS to ${installer.js.global.dir}...</echo>
+ <copy todir="${installer.js.global.dir}" >
+ <fileset dir="${jsapi.dir}/globalJS" includes="*" />
+ </copy>
+ <!--Copy the API source -->
+ <echo>Copying API source to ${installer.ext.dir}...</echo>
+ <copy todir="${installer.ext.dir}" >
+ <fileset dir="${jsapi.dir}" includes="blackberry.*/**" excludes="**/.*"/>
+ </copy>
+
+ <!--
+ INSTABILITY ALERT!
+ M drive is a shared drive, SDK should be moved out of here as soon as QNX provides a tablet SDK that does not contain
+ non-distributable Adobe components.
+ -->
+ <!--Copy the BlackBerry SDK for temporary location on the M drive -->
+ <echo>Unzipping BlackBerry SDK to ${installer.data.dir} from ${sdk.zip.dir}/*b{sdk.build.num}/blackberry-tablet-sdk.zip...</echo>
+ <unzip dest="${installer.data.dir}" >
+ <fileset dir="${sdk.zip.dir}" includes="*b${sdk.build.num}/blackberry-tablet-sdk.zip" />
+ </unzip>
+ </target>
+
+ <target name="build.installer">
+ <echo>Building installer...</echo>
+ <buildinstaller
+ IAProjectFile="${installer.dir}/blackberry_webworks_sdk.iap_xml"
+ IALocation="${install.anywhere.home}"
+ failonerror="true"
+ />
+ </target>
+
+ <target name="cleanup">
+ <echo>Deleting temporary files from installer folder:</echo>
+ <!-- Delete all source files copied into installer folder during "copy.installer.files" step -->
+ <echo>${installer.air.templates.src.dir}...</echo>
+ <delete dir="${installer.air.templates.src.dir}" />
+
+ <echo>${installer.ext.dir}...</echo>
+ <delete dir="${installer.ext.dir}" />
+
+ <echo>${installer.air.bin.dir}/bbwp.jar...</echo>
+ <delete file="${installer.air.bin.dir}/bbwp.jar" />
+
+ <echo>Deleting tablet SDK...</echo>
+ <delete dir="${installer.sdk.dir}" />
+ </target>
+</project>
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Implementation-Vendor: Research In Motion
+Implementation-Version: 1.0.0.15
+Main-Class: net.rim.tumbler.WidgetPackager
+
Oops, something went wrong.

0 comments on commit b2773b8

Please sign in to comment.