You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/04/25 07:34:21 UTC
[23/51] [partial] BlazeDS Donation from Adobe Systems Inc
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/team/features/withoutui/messaging_withoutUI.as
----------------------------------------------------------------------
diff --git a/apps/team/features/withoutui/messaging_withoutUI.as b/apps/team/features/withoutui/messaging_withoutUI.as
new file mode 100755
index 0000000..d226c70
--- /dev/null
+++ b/apps/team/features/withoutui/messaging_withoutUI.as
@@ -0,0 +1,145 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ import flash.display.Sprite;
+ import flash.events.Event;
+ import flash.text.TextField;
+
+ import mx.collections.ArrayCollection;
+ import mx.collections.ArrayList;
+ import mx.core.mx_internal;
+ import mx.events.PropertyChangeEvent;
+ import mx.messaging.ChannelSet;
+ import mx.messaging.Consumer;
+ import mx.messaging.Producer;
+ import mx.messaging.channels.AMFChannel;
+ import mx.messaging.config.ConfigMap;
+ import mx.messaging.config.LoaderConfig;
+ import mx.messaging.events.ChannelFaultEvent;
+ import mx.messaging.events.MessageAckEvent;
+ import mx.messaging.events.MessageEvent;
+ import mx.messaging.events.MessageFaultEvent;
+ import mx.messaging.messages.AcknowledgeMessage;
+ import mx.messaging.messages.AcknowledgeMessageExt;
+ import mx.messaging.messages.AsyncMessage;
+ import mx.messaging.messages.AsyncMessageExt;
+ import mx.messaging.messages.CommandMessage;
+ import mx.messaging.messages.CommandMessageExt;
+ import mx.messaging.messages.ErrorMessage;
+ import mx.messaging.messages.HTTPRequestMessage;
+ import mx.messaging.messages.MessagePerformanceInfo;
+ import mx.utils.ObjectProxy;
+ import mx.utils.ObjectUtil;
+ import mx.utils.RpcClassAliasInitializer;
+
+ use namespace mx_internal;
+
+ /**
+ * A messaging sample that does not use any Flex UI classes. To get this working,
+ * first the url of LoaderConfig needs to be set due to BLZ-522 bug. Then, some
+ * classes need to be registered with Flash, see the registerClassAliases method.
+ */
+ public class messaging_withoutUI extends Sprite
+ {
+ private static const CHANNEL_ID:String = "my-amf-poll";
+ private static const CHANNEL_URL:String = "http://localhost:8400/team/messagebroker/myamfpoll";
+ private static const DESTINATION_ID:String = "messaging_AMF_Poll";
+
+ private var channelSet:ChannelSet;
+ private var producer:Producer;
+ private var consumer:Consumer;
+ private var text:TextField;
+
+ public function messaging_withoutUI()
+ {
+ RpcClassAliasInitializer.registerClassAliases();
+
+ setupChannelSet();
+ setupProducer();
+ setupConsumer();
+ consumer.subscribe();
+
+ text = new TextField();
+ text.border = true;
+ text.width = 300;
+ text.text = "initializing. . .";
+ addChild(text);
+
+ }
+
+ private function consumerMsgHandler(event:Event):void
+ {
+ trace("Consumer received msg: " + ObjectUtil.toString(event));
+ text.text = "Consumer received message: " + (event as MessageEvent).message.body;
+ }
+
+ private function consumerPropChangeHandler(event:PropertyChangeEvent):void
+ {
+ // Make sure the ack is for a subscribe operation.
+ if(event.property == "subscribed" && consumer.subscribed)
+ {
+ // Send the message.
+ var msg:AsyncMessage = new AsyncMessage();
+ msg.body = "hello";
+ producer.send(msg);
+ }
+ }
+
+ private function setupChannelSet():void
+ {
+ channelSet = new ChannelSet();
+ var channel:AMFChannel = new AMFChannel(CHANNEL_ID, CHANNEL_URL);
+ channel.pollingEnabled = true;
+ channel.pollingInterval = 2000;
+ channelSet.addChannel(channel);
+ }
+
+ private function setupConsumer():void
+ {
+ consumer = new Consumer();
+ consumer.channelSet = channelSet;
+ consumer.destination = DESTINATION_ID;
+ consumer.addEventListener(MessageEvent.MESSAGE, consumerMsgHandler);
+ consumer.addEventListener(ChannelFaultEvent.FAULT, faultHandler);
+ consumer.addEventListener(MessageFaultEvent.FAULT, faultHandler);
+ consumer.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, consumerPropChangeHandler);
+ }
+
+ private function setupProducer():void
+ {
+ producer = new Producer();
+ producer.channelSet = channelSet;
+ producer.destination = DESTINATION_ID;
+ producer.addEventListener(MessageAckEvent.ACKNOWLEDGE, producerAckHandler);
+ producer.addEventListener(MessageFaultEvent.FAULT, faultHandler);
+ }
+
+ private function producerAckHandler(event:Event):void
+ {
+ trace("Producer received ack: " + ObjectUtil.toString(event));
+ }
+
+ private function faultHandler(event:Event):void
+ {
+ trace("Server fault: " + ObjectUtil.toString(event));
+ }
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/team/features/withoutui/remoting_withoutUI.as
----------------------------------------------------------------------
diff --git a/apps/team/features/withoutui/remoting_withoutUI.as b/apps/team/features/withoutui/remoting_withoutUI.as
new file mode 100755
index 0000000..a6f3d51
--- /dev/null
+++ b/apps/team/features/withoutui/remoting_withoutUI.as
@@ -0,0 +1,116 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ import flash.display.Sprite;
+ import flash.events.Event;
+ import flash.text.TextField;
+
+ import mx.collections.ArrayCollection;
+ import mx.collections.ArrayList;
+ import mx.core.mx_internal;
+ import mx.events.PropertyChangeEvent;
+ import mx.messaging.ChannelSet;
+ import mx.messaging.Consumer;
+ import mx.messaging.Producer;
+ import mx.messaging.channels.AMFChannel;
+ import mx.messaging.config.ConfigMap;
+ import mx.messaging.config.LoaderConfig;
+ import mx.messaging.events.ChannelFaultEvent;
+ import mx.messaging.events.MessageAckEvent;
+ import mx.messaging.events.MessageEvent;
+ import mx.messaging.events.MessageFaultEvent;
+ import mx.messaging.messages.AcknowledgeMessage;
+ import mx.messaging.messages.AcknowledgeMessageExt;
+ import mx.messaging.messages.AsyncMessage;
+ import mx.messaging.messages.AsyncMessageExt;
+ import mx.messaging.messages.CommandMessage;
+ import mx.messaging.messages.CommandMessageExt;
+ import mx.messaging.messages.ErrorMessage;
+ import mx.messaging.messages.HTTPRequestMessage;
+ import mx.messaging.messages.MessagePerformanceInfo;
+ import mx.rpc.events.FaultEvent;
+ import mx.rpc.events.ResultEvent;
+ import mx.rpc.remoting.RemoteObject;
+ import mx.utils.ObjectProxy;
+ import mx.utils.ObjectUtil;
+ import mx.utils.RpcClassAliasInitializer;
+
+ use namespace mx_internal;
+
+ /**
+ * A messaging sample that does not use any Flex UI classes. To get this working,
+ * first the url of LoaderConfig needs to be set due to BLZ-522 bug. Then, some
+ * classes need to be registered with Flash, see the registerClassAliases method.
+ */
+ public class remoting_withoutUI extends Sprite
+ {
+ private static const CHANNEL_ID:String = "my-amf";
+ private static const CHANNEL_URL:String = "http://localhost:8400/team/messagebroker/amf";
+ private static const DESTINATION_ID:String = "remoting_AMF";
+
+ private var channelSet:ChannelSet;
+ private var ro:RemoteObject;
+ private var text:TextField;
+
+ public function remoting_withoutUI()
+ {
+ RpcClassAliasInitializer.registerClassAliases();
+
+ setupChannelSet();
+ setupRO();
+
+ text = new TextField();
+ text.border = true;
+ text.width = 300;
+ text.text = "initializing. . .";
+ addChild(text);
+
+ ro.echo("hello");
+ }
+
+ private function resultHandler(event:Event):void
+ {
+ trace("RemoteObject received result: " + ObjectUtil.toString(event));
+ text.text = "RemoteObject receives result: " + (event as ResultEvent).message.body;
+ }
+
+ private function setupChannelSet():void
+ {
+ channelSet = new ChannelSet();
+ var channel:AMFChannel = new AMFChannel(CHANNEL_ID, CHANNEL_URL);
+ channelSet.addChannel(channel);
+ }
+
+ private function setupRO():void
+ {
+ ro = new RemoteObject();
+ ro.channelSet = channelSet;
+ ro.destination = DESTINATION_ID;
+ ro.addEventListener(ResultEvent.RESULT, resultHandler);
+ ro.addEventListener(ChannelFaultEvent.FAULT, faultHandler);
+ ro.addEventListener(FaultEvent.FAULT, faultHandler);
+ }
+
+ private function faultHandler(event:Event):void
+ {
+ trace("Server fault: " + ObjectUtil.toString(event));
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/build.properties
----------------------------------------------------------------------
diff --git a/build.properties b/build.properties
new file mode 100755
index 0000000..f633a8d
--- /dev/null
+++ b/build.properties
@@ -0,0 +1,97 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+
+
+
+src.depend=true
+src.debug=on
+
+blazeds.dir=${basedir}
+qa.dir=${basedir}/qa
+appserver.dir=${basedir}/servers/apache-tomcat-6.0.29
+
+local.sdk.lib.dir=./modules/sdk/lib
+local.sdk.frameworks.dir=./frameworks
+local.sdk.bundles.dir=./frameworks/locale
+
+sdk.bin.dir=${blazeds1.dir}/bin
+sdk.lib.dir=${blazeds1.dir}/lib
+compc.dir=${blazeds1.dir}/bin
+
+sdk.version=4
+sdk.frameworks=${local.sdk.frameworks.dir}
+sdk.zip.dir=${blazeds.dir}/resources/flex_sdk
+sdk.zip.file=flex_sdk_${sdk.version}.zip
+sdk.zip=${sdk.zip.dir}/${sdk.zip.file}
+
+min.sdk.version=3.5
+
+branch=blazeds/trunk
+
+webapp.ce.lib=flex-messaging-common.jar,flex-messaging-core.jar,flex-messaging-proxy.jar,flex-messaging-remoting.jar,flex-messaging-opt.jar,commons-logging-1.1.1.jar,commons-codec-1.5.jar,commons-httpclient-3.1.jar,backport-util-concurrent.jar,concurrent.jar,cfgatewayadapter.jar,xalan.jar,flex-rds-server.jar
+webapp.lib=flex-messaging-common.jar,flex-messaging-core.jar,flex-messaging-proxy.jar,flex-messaging-remoting.jar,flex-messaging-opt.jar,,commons-logging-1.1.1.jar,commons-codec-1.5.jar,commons-httpclient-3.1.jar,backport-util-concurrent.jar,concurrent.jar,jsafeJCE.jar,fxgutils.jar,flex-rds-server.jar
+webapp.classes=commons-logging.properties
+webtier.lib=flex-bootstrap.jar,flex-bootstrap-jsp.jar
+webtier.jars=asc.jar,batik*.jar,commons-collections-3.1.jar,commons-discovery.jar,commons-logging-1.1.1.jar,flex-messaging-common.jar,flex-webtier-jsp.jar,flex-webtier.jar,license.jar,velocity-dep-1.4-flex.jar,mxmlc.jar,oscache.jar,swfutils.jar,xercesImpl.jar,xercesPatch.jar,xmlParserAPIs.jar,flex-fontkit.jar,fxgutils.jar,mm-velocity-1.4.jar
+flex.libs=playerglobal.swc,automation.swc,datavisualization.swc,flex.swc,framework.swc,utilities.swc,fds.swc,rpc.swc
+axis.jars=activation.jar, axis.jar, commons-discovery-0.2.jar, jaxrpc.jar, saaj.jar, wsdl4j-1.5.1.jar
+qa-services.jars=qa-services.jar, qa-services-wm.jar, javax_mail.jar
+jgroups.jars=jgroups-core-2.9.0GA.jar,log4j.jar
+
+# Set this to true if you have an updated version of a non-fds swc in the frameworks/local-swcs directory
+# that needs to be used by the build until the regular approval process picks up the external
+# change.
+# This should always be false unless you are explicitly overriding a swc (or swcs).
+# See the readme.txt file in the local-swcs directory for more information.
+use.local.swcs=false
+
+servlet.jar=${blazeds.dir}/servers/apache-tomcat-6.0.29/lib/servlet-api.jar
+jms.jar=${blazeds.dir}/lib/jms.jar
+jta.jar=${blazeds.dir}/lib/jta.jar
+jmxri.jar=${blazeds.dir}/lib/jmxri.jar
+hsqldb.jar=${blazeds.dir}/lib/hsqldb/hsqldb.jar
+junit.jar=${ant.home}/lib/junit.jar
+
+#player uninstaller file names
+uninstaller.exe=uninstall_flash_player.exe
+
+#player 11 file names
+fp11.installer.exe=11.1/win/InstallAX.exe
+fp11.installer.plugin.exe=11.1/win/InstallPlugin.exe
+
+#player 10 file names
+fp10.installer.exe=10.2/win/InstallAX.exe
+fp10.installer.plugin.exe=10.2/win/InstallPlugin.exe
+
+#player 9 file name
+fp9.installer.exe=win/Install Flash Player 9 ActiveX.exe
+fp9.installer.plugin.exe=win/Install Flash Player 9 Plugin.exe
+
+
+# set the fb3 pro license in your environment if don't want watermarks
+# using environment variable so that we're not checking in a
+# plain text license into source control
+env.fb3_license=fake
+env.fb4_license=fake
+
+######################
+# Manifest Entries
+######################
+manifest.sealed=false
+manifest.Implementation-Title=BlazeDS
+manifest.Implementation-Version=4.6.0
+manifest.Implementation-Vendor=Adobe Systems Inc.
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
new file mode 100755
index 0000000..61d1abc
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,813 @@
+<?xml version="1.0"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+
+
+<!--
+
+Notes: If you're running the main target, then there is no need to call clean first.
+Each of the main targets for the modules will call clean themselves before proceeding.
+
+-->
+<project name="BlazeDS" default="main" basedir=".">
+ <property environment="env"/>
+
+ <!-- properties -->
+ <property file="${basedir}/build.properties" />
+ <property name="dist.dir" value="${basedir}/dist"/>
+ <property name="qa.dir" value="${basedir}/qa"/>
+
+ <!--if CruiseControl is used, label is set to SVN revision number-->
+ <property name="label" value="dev"/>
+ <property name="build.number" value="${label}"/>
+
+ <property name="subproject.target" value="main" />
+
+ <property name="server.baseurl" value="http://localhost:8400"/>
+
+ <property name="ant-contrib.jar" location="${env.ANT_HOME}/lib/ant-contrib-1.0b2.jar"/>
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${ant-contrib.jar}"/>
+
+ <property name="tmp.dir" value="${basedir}/packagetemp/temp" />
+ <property name="local.sdk.dir" value="resources/flex_sdk" />
+
+ <property name="env.FLEX_HOME" value="${basedir}/../flex-sdk"/>
+ <!-- set FLEX_HOME from environment if not already set -->
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
+
+ <target name="check-env"
+ depends="check-flex-home, load-more-properties, check-playerglobal-home" />
+
+ <target name="check-flex-home" unless="flexhome.exists"
+ description="Check FLEX_HOME for both a directory and a file">
+
+ <echo message="FLEX_HOME is ${env.FLEX_HOME}"/>
+
+ <available file="${env.FLEX_HOME}"
+ type="dir"
+ property="FLEX_HOME.set"/>
+
+ <fail message="The environment variable FLEX_HOME is not set to a directory"
+ unless="FLEX_HOME.set"/>
+
+ <property name="flex-sdk-description.xml"
+ value="${env.FLEX_HOME}/flex-sdk-description.xml"/>
+
+ <available file="${flex-sdk-description.xml}"
+ type="file"
+ property="flex-sdk-description.xml.exists"/>
+
+ <fail message="The file ${flex-sdk-description.xml} does not exist"
+ unless="flex-sdk-description.xml"/>
+
+ </target>
+
+ <target name="load-more-properties"
+ description="load the FLEX_HOME/build.properties to pick up playerglobal.version">
+ <property file="${FLEX_HOME}/build.properties" />
+ </target>
+
+ <target name="check-playerglobal-home" unless="playerglobal.swc.exists"
+ description="Check PLAYERGLOBAL_HOME for both a directory and a swc file">
+
+ <echo message="PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}"/>
+ <echo message="playerglobal.version is ${playerglobal.version}"/>
+
+ <available file="${env.PLAYERGLOBAL_HOME}"
+ type="dir"
+ property="PLAYERGLOBAL_HOME.set"/>
+
+ <fail message="The environment variable PLAYERGLOBAL_HOME is not set to a directory"
+ unless="PLAYERGLOBAL_HOME.set"/>
+
+ <property name="playerglobal.swc"
+ value="${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc"/>
+
+ <available file="${playerglobal.swc}"
+ type="file"
+ property="playerglobal.swc.exists"/>
+
+ <fail message="The file ${playerglobal.swc} does not exist"
+ unless="playerglobal.swc.exists"/>
+
+ <echo message="playerglobal.swc is ${playerglobal.swc}"/>
+ </target>
+
+ <target name="thirdparty-downloads" unless="no.thirdparty-downloads" description="Downloads all the required thirdparty code.">
+ <ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>
+ </target>
+
+ <target name="main" depends="check-env,clean,thirdparty-downloads,sdk,webtier,common,core,proxy,remoting,opt,apps,createMMSFile" description="full build">
+ <tstamp>
+ <format property="build.datetime" pattern="MM/dd/yyyy hh:mm:ss aa" />
+ </tstamp>
+ <echo>ant main target completed on ${build.datetime}</echo>
+ </target>
+
+ <target name="help">
+ <echo message="run ant -projecthelp to see the available targets"/>
+ </target>
+
+ <!-- must be setup before building other targets -->
+ <target name="sdk" description="get the sdk and add to the server">
+ <ant antfile="${basedir}/modules/sdk/build.xml"/>
+ </target>
+
+ <target name="webtier" description="get the webtier corresponding to the SDK used">
+ <ant antfile="${basedir}/qa/resources/webtier/build.xml"/>
+ </target>
+
+ <target name="common" description="full build of the common module">
+ <ant antfile="${basedir}/modules/common/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="core" description="full build of the core module">
+ <ant antfile="${basedir}/modules/core/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="proxy" description="full build of the proxy module">
+ <ant antfile="${basedir}/modules/proxy/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="remoting" description="full build of the remoting module">
+ <ant antfile="${basedir}/modules/remoting/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="opt" description="full build of the opt module">
+ <ant antfile="${basedir}/modules/opt/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="ajax" description="full build of the fds-ajax bridge">
+ <ant antfile="${basedir}/resources/fds-ajax-bridge/build.xml" dir="${basedir}/resources/fds-ajax-bridge"/>
+ </target>
+
+ <!-- removing aspectj dependencies
+ <target name="apps" depends="consoleapp,samplesapp,blazedsapp,blazeds-springapp,samples-springapp,qaapp,qa-manualapp,teamapp" description="full build of all active apps" />-->
+ <target name="apps" depends="consoleapp,samplesapp,blazedsapp,qaapp,qa-manualapp,teamapp" description="full build of all active apps" />
+
+ <target name="samplesapp" description="full build of the samples app">
+ <ant antfile="${basedir}/apps/samples/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="samples-springapp" description="full build of the spring-samples app">
+ <ant antfile="${basedir}/apps/samples-spring/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="blazedsapp" description="full build of the blazeds app">
+ <ant antfile="${basedir}/apps/blazeds/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="blazeds-springapp" description="full build of the blazeds-spring app">
+ <ant antfile="${basedir}/apps/blazeds-spring/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="consoleapp" description="full build of the flex admin app">
+ <if>
+ <equals arg1="${sdk.version}" arg2="3"/>
+ <then>
+ <echo message="Console app doesn't build with SDK 3, skipping."/>
+ </then>
+ <else>
+ <ant antfile="${basedir}/apps/ds-console/build.xml" target="${subproject.target}"/>
+ </else>
+ </if>
+ </target>
+
+ <target name="qaapp" description="full build of the qa app">
+ <ant antfile="${qa.dir}/apps/qa-regress/build.xml" dir="${qa.dir}"/>
+ </target>
+
+ <target name="qa-manualapp" description="full build of the qa manual testing app">
+ <ant antfile="${qa.dir}/apps/qa-manual/build.xml" />
+ </target>
+
+ <target name="teamapp" description="full build of the team app">
+ <ant antfile="${basedir}/apps/team/build.xml" target="${subproject.target}"/>
+ </target>
+
+ <target name="postbuilds">
+ <ant antfile="${basedir}/modules/core/build.xml" target="postbuilds"/>
+ </target>
+
+ <target name="createMMSFile"
+ description="create mms.cfg in order to enable local shared object access"
+ if="isWindows">
+ <if>
+ <isset property="env.WINDIR"/>
+ <then>
+ <property name="ocx.dir" value="${env.WINDIR}/system32/Macromed/Flash/" />
+ </then>
+ <else>
+ <if>
+ <isset property="env.WinDir"/>
+ <then>
+ <property name="ocx.dir" value="${env.WinDir}/system32/Macromed/Flash/" />
+ </then>
+ <else>
+ <property name="ocx.dir" value="${env.windir}/system32/Macromed/Flash/" />
+ </else>
+ </if>
+ </else>
+ </if>
+ <!-- Sets the default maximum local shared object storage size to unlimited -->
+ <echo file="${ocx.dir}/mms.cfg" append="false">LocalStorageLimit=6</echo>
+ </target>
+
+ <target name="package" depends="package-clean" description="package task which creates zips">
+ <mkdir dir="${dist.dir}"/>
+
+ <!-- package qa apps -->
+ <!-- <ant antfile="${qa.dir}/apps/qa-manual/build.xml" target="package"/> -->
+ <ant antfile="${qa.dir}/apps/qa-regress/build.xml" target="package"/>
+
+ <ant antfile="${basedir}/apps/samples/build.xml" target="package"/>
+ <ant antfile="${basedir}/apps/samples-spring/build.xml" target="package"/>
+ <ant antfile="${basedir}/apps/blazeds/build.xml" target="package"/>
+ <ant antfile="${basedir}/apps/blazeds-spring/build.xml" target="package"/>
+ <ant antfile="${basedir}/apps/ds-console/build.xml" target="package"/>
+
+ <ant antfile="${appserver.dir}/build.xml" target="package"/>
+
+ <antcall target="package-oem" />
+
+ <copy todir="${dist.dir}/lib">
+ <fileset dir="${basedir}/lib">
+ <include name="flex-messaging-common.jar"/>
+ <include name="flex-messaging-core.jar"/>
+ </fileset>
+ </copy>
+
+ <antcall target="javadoc" />
+
+ <!-- add apps to Tomcat -->
+ <unzip src="${dist.dir}/blazeds.war" dest="${dist.dir}/tomcat/webapps/blazeds" />
+ <unzip src="${dist.dir}/blazeds-spring.war" dest="${dist.dir}/tomcat/webapps/blazeds-spring" />
+ <unzip src="${dist.dir}/samples.war" dest="${dist.dir}/tomcat/webapps/samples" />
+ <unzip src="${dist.dir}/samples-spring.war" dest="${dist.dir}/tomcat/webapps/samples-spring" />
+ <unzip src="${dist.dir}/ds-console.war" dest="${dist.dir}/tomcat/webapps/ds-console" />
+
+ <!-- generate turnkey zip -->
+ <antcall target="package-turnkey"/>
+
+ <!-- generate binary zip -->
+ <zip destfile="${dist.dir}/blazeds-bin-${manifest.Implementation-Version}.${label}.zip"
+ comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label}">
+ <fileset dir="${dist.dir}" includes="blazeds.war"/>
+ <zipfileset dir="${basedir}/collateral" includes="blazeds-bin-readme.htm" fullpath="blazeds-bin-readme.htm"/>
+ </zip>
+
+ <!-- generate src zip -->
+ <antcall target="package-src"/>
+
+ <!-- generate java amf client zip -->
+ <zip destfile="${dist.dir}/blazeds-java-amf.${label}.zip"
+ comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label}">
+ <fileset dir="${dist.dir}/lib" includes="*"/>
+ </zip>
+
+ <!-- geneate md5 checksums for the four zips -->
+ <checksum forceOverwrite="yes" format="MD5SUM">
+ <fileset dir="${dist.dir}">
+ <include name="blazeds-*.zip" />
+ </fileset>
+ </checksum>
+
+ <antcall target="package-automation" />
+
+ </target>
+
+
+ <target name="package-turnkey">
+
+ <zip destfile="${dist.dir}/blazeds-turnkey-${manifest.Implementation-Version}.${label}.zip"
+ comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label}">
+ <fileset dir="${dist.dir}" includes="blazeds.war,blazeds-spring.war,samples.war,samples-spring.war,ds-console.war"/>
+ <zipfileset dir="${dist.dir}/tomcat" prefix="tomcat" excludes="bin,bin/*,work/"/>
+ <zipfileset dir="${dist.dir}/tomcat/bin" prefix="tomcat/bin" filemode="744"/>
+ <zipfileset dir="${dist.dir}/docs" prefix="docs"/>
+
+ <zipfileset dir="${basedir}/resources" prefix="resources">
+ <exclude name="fds-ajax-bridge/build.xml"/>
+ <exclude name="clustering/JGroups-2.9.0.GA.src.zip"/>
+ <exclude name="flex_sdk/*.zip"/>
+ <exclude name="flex_sdk/*.htm"/>
+ <exclude name="flex_sdk/readme.txt"/>
+ </zipfileset>
+
+ <zipfileset dir="${basedir}/lib" prefix="resources/clustering" includes="jgroups*"/>
+ <zipfileset dir="${basedir}/lib" prefix="resources/lib" includes="flex-messaging*"/>
+ <zipfileset dir="${basedir}/collateral" includes="blazeds-turnkey-readme.htm" fullpath="blazeds-turnkey-readme.htm"/>
+ <zipfileset dir="${dist.dir}/sampledb" prefix="sampledb" filemode="744"/>
+ </zip>
+ </target>
+
+
+
+ <target name="package-src">
+
+ <zip destfile="${dist.dir}/blazeds-src-${manifest.Implementation-Version}.${label}.zip"
+ comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label}">
+ <zipfileset dir="${basedir}/collateral" includes="blazeds-src-readme.htm" fullpath="blazeds-src-readme.htm"/>
+ <fileset dir="${basedir}">
+ <include name="adobe.header"/>
+ <include name="build.properties"/>
+ <include name="build.xml"/>
+ <include name="readme.txt"/>
+ <include name="collateral/**/*"/>
+ <include name="development/**/*"/>
+ <include name="sampledb/**/*"/>
+ </fileset>
+
+ <!-- apps folder -->
+ <zipfileset dir="${basedir}/apps" prefix="apps">
+
+ <!-- blazeds app -->
+ <include name="blazeds/**/*"/>
+ <exclude name="blazeds/WEB-INF/lib/"/>
+ <exclude name="blazeds/WEB-INF/src/"/>
+
+ <!-- blazeds-spring app -->
+ <include name="blazeds-spring/**/*"/>
+ <exclude name="blazeds-spring/WEB-INF/lib/"/>
+ <exclude name="blazeds-spring/WEB-INF/src/"/>
+
+ <!-- ds-console app -->
+ <include name="ds-console/**/*"/>
+ <exclude name="ds-console/history/"/>
+ <exclude name="ds-console/*.swf"/>
+ <exclude name="ds-console/*.html"/>
+ <exclude name="ds-console/*.js"/>
+ <exclude name="ds-console/WEB-INF/lib/"/>
+ <exclude name="ds-console/WEB-INF/classes/"/>
+
+ <!-- samples app -->
+ <include name="samples/images/"/>
+ <include name="samples/*.htm"/>
+ <include name="samples/main.css"/>
+ <include name="samples/README.txt"/>
+ <include name="samples/build.xml"/>
+
+ <include name="samples/WEB-INF/"/>
+ <exclude name="samples/WEB-INF/classes/"/>
+ <exclude name="samples/WEB-INF/lib/b*"/>
+ <exclude name="samples/WEB-INF/lib/c*"/>
+ <exclude name="samples/WEB-INF/lib/f*"/>
+ <exclude name="samples/WEB-INF/flex-src/*.zip"/>
+ <exclude name="samples/WEB-INF/flex-src/**/datavisualization*.swc"/>
+
+ <!-- samples-spring app -->
+ <include name="samples-spring/images/"/>
+ <include name="samples-spring/*.htm"/>
+ <include name="samples-spring/main.css"/>
+ <include name="samples-spring/README.txt"/>
+ <include name="samples-spring/build.xml"/>
+
+ <include name="samples-spring/WEB-INF/"/>
+ <exclude name="samples-spring/WEB-INF/classes/"/>
+ <exclude name="samples-spring/WEB-INF/lib/b*"/>
+ <exclude name="samples-spring/WEB-INF/lib/c*"/>
+ <exclude name="samples-spring/WEB-INF/lib/f*"/>
+ <exclude name="samples-spring/WEB-INF/flex-src/*.zip"/>
+ <exclude name="samples-spring/WEB-INF/flex-src/**/datavisualization*.swc"/>
+
+ <!-- team app -->
+ <include name="team/**/*"/>
+ <exclude name="team/WEB-INF/lib/"/>
+ <exclude name="team/WEB-INF/classes/"/>
+ <exclude name="team/WEB-INF/flex/jars/"/>
+ <exclude name="team/WEB-INF/flex/libs/"/>
+ <exclude name="team/WEB-INF/flex/locale/"/>
+ <exclude name="team/WEB-INF/flex/*.ser"/>
+ <exclude name="team/WEB-INF/flex/flash-unicode-table.xml"/>
+ <exclude name="team/WEB-INF/flex/flex-sdk-description.xml"/>
+ <exclude name="team/WEB-INF/flex/mxml-manifest.xml"/>
+
+ </zipfileset>
+
+ <!-- qa folder -->
+ <zipfileset dir="${basedir}/qa" prefix="qa">
+ <!-- qa-manual app -->
+ <include name="apps/qa-manual/**/*"/>
+ <exclude name="apps/qa-manual/bugs/"/>
+
+ <!-- common excludes for both qa-manual and qa-regress apps -->
+ <exclude name="apps/**/WEB-INF/classes/"/>
+ <exclude name="apps/**/WEB-INF/lib/"/>
+ <exclude name="apps/**/WEB-INF/flex/jars/"/>
+ <exclude name="apps/**/WEB-INF/flex/libs/"/>
+ <exclude name="apps/**/WEB-INF/flex/locale/"/>
+ <exclude name="apps/**/WEB-INF/flex/*.ser"/>
+ <exclude name="apps/**/WEB-INF/flex/flash-unicode-table.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/flex-sdk-description.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/mxml-manifest.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/flex-config.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/flex-webtier-config.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/messaging-config.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/proxy-config.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/remoting-config.xml"/>
+ <exclude name="apps/**/WEB-INF/flex/services-config.xml"/>
+
+ <!-- qa-regress app -->
+ <include name="apps/qa-regress/**/*"/>
+ <exclude name="apps/qa-regress/features/"/>
+ <exclude name="apps/qa-regress/lib/"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/bugs/"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/noproxy/"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/general/array*"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/general/attributesScript.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/general/deserializeDocLitArray.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/general/twoDimensionalArrayScript.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/DotNetDocLiteralTests/"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceAmpersandInWSDL.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceDotDotInWSDL.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceMethod*.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceSetEndpointURI.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceUseProxyFalseFault.mxml"/>
+ <exclude name="apps/qa-regress/testsuites/mxunit/tests/proxyService/webService/mxWebService/mxWebServiceUseProxyTrue.mxml"/>
+
+ <exclude name="apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/Query*.*"/>
+ <exclude name="apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/*DotNet*"/>
+ <exclude name="apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAPBuilderRound2CFCTest.as"/>
+ <exclude name="apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAPBuilderRound3Compound1.as"/>
+ <exclude name="apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAPBuilderRound3Compound1_WhiteMesaTest.as"/>
+
+ <include name="features/**/*"/>
+
+ <include name="lib/**/*"/>
+ <exclude name="lib/tools/"/>
+ <exclude name="lib/ms*.jar"/>
+ <exclude name="lib/commons-codec-1.3.jar"/>
+ <exclude name="lib/commons-httpclient-3.1.jar"/>
+ <exclude name="lib/commons-logging.jar"/>
+ <exclude name="lib/qa-config.jar"/>
+ <exclude name="lib/qa-flexunit.jar"/>
+ <exclude name="lib/qa-mxunit.jar"/>
+ <exclude name="lib/qa-utils.jar"/>
+ <exclude name="lib/browserServer.jar"/>
+ <exclude name="lib/xalan.jar"/>
+
+ <include name="resources/config/*"/>
+ <include name="resources/frameworks/*"/>
+ <include name="resources/webtier/"/>
+ <include name="src/**/*"/>
+ <include name="build.*"/>
+ </zipfileset>
+
+
+ <!-- frameworks folder -->
+ <zipfileset dir="${basedir}/frameworks" prefix="frameworks">
+ <include name="**/datavisualization*.swc"/>
+ <include name="local-swcs/*"/>
+ </zipfileset>
+
+ <!-- lib folder -->
+ <zipfileset dir="${basedir}/lib" prefix="lib">
+ <include name="hsqldb/*"/>
+ <include name="spring/*"/>
+
+ <include name="commons*.*"/>
+ <exclude name="commons-logging.jar"/>
+ <exclude name="commons-collections.jar"/>
+
+ <include name="j*.*"/>
+ <include name="flex-w*.*"/>
+ <include name="flex-b*.*"/>
+ <include name="xalan*.*"/>
+ <include name="backport*.*"/>
+ <include name="cfgatewayadapter.jar"/>
+ <include name="concurrent.jar"/>
+ <include name="oscache.jar"/>
+ <include name="servlet.jar"/>
+ </zipfileset>
+
+ <!-- modules folder -->
+ <zipfileset dir="${basedir}/modules" prefix="modules">
+ <include name="**/src/**/*"/>
+ <include name="**/lib/*"/>
+ <include name="core/test/src/**/*"/>
+ <include name="**/AdobeInfo.xml"/>
+ <include name="**/build.xml"/>
+ <exclude name="rds/"/>
+ </zipfileset>
+
+ <!-- servers folder -->
+ <zipfileset dir="${basedir}/servers" prefix="servers">
+ <exclude name="apache-tomcat-6.0.29/lib/blazeds/"/>
+ <exclude name="apache-tomcat-6.0.29/conf/Catalina/localhost/qa-perf.xml"/>
+ <exclude name="apache-tomcat-6.0.29/logs/"/>
+ <exclude name="apache-tomcat-6.0.29/work/"/>
+ </zipfileset>
+
+ <!-- resources folder -->
+ <zipfileset dir="${basedir}/resources" prefix="resources">
+ <exclude name="security/tomcat/*.jar"/>
+ <exclude name="flex_sdk/*.zip"/>
+ </zipfileset>
+
+ </zip>
+ </target>
+
+<!--
+***************************************************************************
+ Target - package-automation
+*************************************************************************** -->
+ <target name="package-automation" description="Create QA Automation package">
+ <zip destfile="${basedir}/dist/qa-automation.zip">
+ <zipfileset dir="${qa.dir}/automation"/>
+ </zip>
+ </target>
+
+ <target name="package-oem" description="Create OEM package">
+
+ <delete dir="${basedir}/packagetemp" failonerror="false" includeEmptyDirs="true"/>
+ <mkdir dir="${basedir}/dist"/>
+
+ <!-- Copy sdk zip and other community resources -->
+ <copy todir="${basedir}/packagetemp">
+ <fileset dir="${basedir}">
+ <include name="resources/**/*"/>
+ <exclude name="resources/flex_sdk/**/*"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy community jars -->
+ <copy todir="${basedir}/packagetemp/lib">
+ <fileset dir="${basedir}/lib">
+ <include name="flex-messaging-common.jar"/>
+ <include name="flex-messaging-core.jar"/>
+ <include name="flex-messaging-proxy.jar"/>
+ <include name="flex-messaging-remoting.jar"/>
+ <include name="flex-messaging-opt.jar"/>
+ <include name="flex-bootstrap.jar"/>
+ <include name="flex-bootstrap-jsp.jar"/>
+ <include name="flex-webtier.jar"/>
+ <include name="flex-webtier-jsp.jar"/>
+ <include name="oscache.jar"/>
+ <include name="cfgatewayadapter.jar"/>
+ <include name="flex-rds-server.jar"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${basedir}/packagetemp/console_src">
+ <fileset dir="${basedir}/apps/ds-console">
+ <include name="console/**/*"/>
+ <include name="*.mxml"/>
+ </fileset>
+ </copy>
+
+ <zip destfile="${basedir}/dist/blazeds-oem.zip">
+ <fileset dir="${dist.dir}" includes="ds-console.war"/>
+ <zipfileset dir="${basedir}/packagetemp"/>
+ </zip>
+ </target>
+
+ <target name="package-oem-small" depends="package-oem" description="Create Small OEM package">
+ <echo message="Creating smaller Flex_SDK. . ."/>
+ <mkdir dir="${tmp.dir}"/>
+ <unzip src="${basedir}/dist/blazeds-oem.zip" dest="${tmp.dir}"/>
+ <mkdir dir="${tmp.dir}/${local.sdk.dir}/expanded"/>
+ <unzip src="${basedir}/packagetemp/${local.sdk.dir}/${sdk.zip.file}" dest="${tmp.dir}/${local.sdk.dir}/expanded">
+ <!--<patternset>
+ <include name="ant/lib/flexTasks.jar" />
+ <include name="asdoc/**/*"/>
+ <include name="bin/*"/>
+ <include name="lib/*"/>
+ <include name="frameworks/*"/>
+ <include name="frameworks/libs/**"/>
+ <include name="frameworks/locale/**"/>
+ <include name="runtimes/player/**/*"/>
+ <include name="templates/**/*"/>
+ </patternset>-->
+ </unzip>
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="${tmp.dir}/${local.sdk.dir}" includes="${sdk.zip.file}" />
+ </delete>
+ <zip destfile="${tmp.dir}/${local.sdk.dir}/${sdk.zip.file}">
+ <fileset dir="${tmp.dir}/${local.sdk.dir}/expanded" includes="**/**"/>
+ </zip>
+ <delete dir="${tmp.dir}/${local.sdk.dir}/expanded" failonerror="false" />
+ <zip destfile="${basedir}/dist/blazeds-oem-small.zip">
+ <fileset dir="${tmp.dir}" includes="**/**"/>
+ </zip>
+ <delete dir="${tmp.dir}" failonerror="false" />
+ </target>
+
+ <target name="package-clean">
+ <delete failonerror="false" includeEmptyDirs="true">
+ <fileset dir="${dist.dir}" includes="**/*"/>
+ </delete>
+ </target>
+
+ <target name="clean" description="clean">
+ <ant antfile="${basedir}/modules/sdk/build.xml" target="clean"/>
+ <ant antfile="${basedir}/modules/remoting/build.xml" target="clean"/>
+ <ant antfile="${basedir}/modules/proxy/build.xml" target="clean"/>
+ <ant antfile="${basedir}/modules/common/build.xml" target="clean"/>
+ <ant antfile="${basedir}/modules/core/build.xml" target="clean"/>
+ <ant antfile="${basedir}/modules/opt/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/blazeds/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/blazeds-spring/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/ds-console/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/samples/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/samples-spring/build.xml" target="clean"/>
+ <ant antfile="${basedir}/apps/team/build.xml" target="clean"/>
+ <ant antfile="${basedir}/resources/fds-ajax-bridge/build.xml" target="clean"/>
+ <ant antfile="${basedir}/qa/apps/qa-manual/build.xml" target="clean"/>
+ <ant antfile="${basedir}/qa/apps/qa-regress/build.xml" target="clean"/>
+ <ant antfile="${basedir}/qa/resources/webtier/build.xml" target="clean"/>
+ <ant antfile="${basedir}/qa/src/build.xml" target="clean"/>
+ <delete>
+ <fileset dir="." includes="TEST-*.xml"/>
+ </delete>
+ <delete quiet="true" dir="${basedir}/dist"/>
+ <delete quiet="true" dir="${basedir}/sampledb" includes="hsqldb.jar"/>
+ <delete quiet="true" dir="${basedir}/templates"/>
+ <delete>
+ <fileset dir="resources/clustering" includes="{jgroups.jars},jgroups-LICENSE.txt" />
+ </delete>
+ </target>
+
+ <target name="super-clean" depends="thirdparty-clean,clean" description="Cleans everything including thirdparty downloads."/>
+
+ <target name="thirdparty-clean" unless="no.thirdparty-clean" description="Removes all thirdparty downloads.">
+ <ant antfile="${basedir}/downloads.xml" target="clean" dir="${basedir}"/>
+ </target>
+
+ <target name="generated-clean">
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="${basedir}/apps" includes="**/generated/*" />
+ </delete>
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="${basedir}/apps" includes="**/generated" />
+ </delete>
+ </target>
+
+ <target name="unit" description="Runs JUnit tests">
+ <ant antfile="${basedir}/modules/core/build.xml" target="unit">
+ <property name="feature" value="${feature}" /> <!-- runs subset of unit tests -->
+ </ant>
+ </target>
+
+ <!-- Don't try to start server if it is already running -->
+ <target name="check.server">
+ <condition property="server.running">
+ <http url="${server.baseurl}"/>
+ </condition>
+ </target>
+
+ <target name="set.extension" description="set vars per os">
+ <osfamily property="os.family"/>
+ <switch value="${os.family}">
+ <case value="windows">
+ <property name="shellext" value="bat"/>
+ </case>
+ <case value="unix">
+ <property name="shellext" value="sh"/>
+ </case>
+ <case value="mac">
+ <property name="shellext" value="sh"/>
+ </case>
+ </switch>
+ </target>
+
+ <target name="startserver" description="Start Tomcat Server" depends="set.extension, check.server"
+ unless="server.running">
+ <exec spawn="true" executable="${appserver.dir}/bin/catalina.${shellext}"
+ dir="${appserver.dir}/bin">
+ <arg line="start" />
+ </exec>
+ </target>
+
+ <target name="stopserver" description="Stop Tomcat Server"
+ depends="set.extension">
+ <exec spawn="true" executable="${appserver.dir}/bin/catalina.${shellext}"
+ dir="${appserver.dir}/bin">
+ <arg line="stop" />
+ </exec>
+ </target>
+
+ <target name="waitforAppserverToStart" >
+ <echo message="Waiting for appserver to start: requesting ${server.baseurl}/qa-regress"/>
+ <waitfor maxwait="120" maxwaitunit="second" checkevery="15" timeoutproperty="bTimeout">
+ <http url="${server.baseurl}/qa-regress"/>
+ </waitfor>
+ <switch value="${bTimeout}">
+ <case value="true">
+ <property name="bAppServerStarted" value="false"/>
+ </case>
+ <default>
+ <property name="bAppServerStarted" value="true"/>
+ </default>
+ </switch>
+ <echo>Flex has started: ${bAppServerStarted} ...continuing</echo>
+ </target>
+
+ <target name="checkintests" description="checkintests">
+
+ <!-- run flexunit-->
+ <ant antfile="${qa.dir}/apps/qa-regress/testsuites/flexunit/build.xml" target="main" >
+ <property name="basedir" value="${qa.dir}" />
+ <property name="feature" value="checkintests" /> <!-- runs rpc and messaging -->
+ <property name="alwaysshowreport" value="false" /> <!-- will only show report if there are failures -->
+ </ant>
+
+ <!-- JUnit tests already start the server, if necessary
+ <antcall target="startserver"/>
+ -->
+ <!-- run java unit tests -->
+ <property name="feature" value="checkintests-all"/>
+ <antcall target="unit" >
+ <param name="feature" value="${feature}" /> <!-- runs subset of unit tests -->
+ </antcall>
+
+ <antcall target="stopserver"/>
+ </target>
+
+ <target name="parseresults">
+ <java classname="utils.TestResultsParser">
+ <classpath>
+ <pathelement location="${qa.dir}/classes"/>
+ <fileset dir="${qa.dir}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </classpath>
+ <arg line="${qa.dir}/sdk/testsuites/mxunit/reports"/>
+ </java>
+ </target>
+
+ <target name="ocx" description="Update the ActiveX player to the latest. You must CLOSE YOUR BROWSERS for this to work.">
+ <property name="ant-contrib.jar" location="${env.ANT_HOME}/lib/ant-contrib-1.0b2.jar"/>
+
+
+ <if>
+ <equals arg1="${sdk.version}" arg2="3"/>
+ <then>
+ <property name="installer.exe" value="${fp9.installer.exe}"/>
+ <property name="installer.plugin.exe" value="${fp9.installer.plugin.exe}"/>
+ </then>
+ <else>
+ <property name="installer.exe" value="${fp11.installer.exe}"/>
+ <property name="installer.plugin.exe" value="${fp11.installer.plugin.exe}"/>
+ </else>
+ </if>
+
+
+ <available file="${basedir}/qa/automation/bin/${uninstaller.exe}" property="uninstaller.exists" />
+
+ <if>
+ <and>
+ <equals arg1="${uninstaller.exists}" arg2="true" />
+ <not>
+ <equals arg1="${skip.uninstall}" arg2="true" />
+ </not>
+ </and>
+ <then>
+ <echo>Uninstalling the old ActiveX and Plugin players.</echo>
+ <exec dir="${basedir}" executable="${basedir}/qa/automation/bin/${uninstaller.exe}" >
+ <arg line="-uninstall" />
+ </exec>
+ </then>
+ <else>
+ <echo>Uninstall was skipped.</echo>
+ <echo> - skip.uninstall? ${skip.uninstall}</echo>
+ </else>
+ </if>
+
+ <echo>Installing the new player.</echo>
+ <exec dir="${basedir}/bin" executable="${basedir}/bin/${installer.exe}">
+ <arg line="-install"/>
+ </exec>
+ <echo>Installing the plugin player.</echo>
+ <exec dir="${basedir}/bin" executable="${basedir}/bin/${installer.plugin.exe}">
+ <arg line="-install"/>
+ </exec>
+ </target>
+
+ <target name="javadoc">
+ <delete dir="${basedir}/docs" failonerror="false" includeEmptyDirs="true" />
+ <ant antfile="${basedir}/modules/core/build.xml" target="javadoc" >
+ <property name="build.number" value="${build.number}"/>
+ </ant>
+ <copy todir="${dist.dir}/docs" >
+ <fileset dir="${basedir}/docs" includes="javadoc.zip"/>
+ </copy>
+ </target>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/collateral/blazeds-bin-readme.htm
----------------------------------------------------------------------
diff --git a/collateral/blazeds-bin-readme.htm b/collateral/blazeds-bin-readme.htm
new file mode 100755
index 0000000..bc556c1
--- /dev/null
+++ b/collateral/blazeds-bin-readme.htm
@@ -0,0 +1,270 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<html>
+
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
+<title>BlazeDS Binary Readme</title>
+<style>
+<!--
+ /* Font Definitions */
+ @font-face
+ {font-family:"Cambria Math";
+ panose-1:2 4 5 3 5 4 6 3 2 4;}
+@font-face
+ {font-family:Verdana;
+ panose-1:2 11 6 4 3 5 4 4 2 4;}
+ /* Style Definitions */
+ p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {margin:0in;
+ margin-bottom:.0001pt;
+ font-size:12.0pt;
+ font-family:"Times New Roman","serif";
+ color:windowtext;}
+h3
+ {mso-style-link:"Heading 3 Char";
+ margin-right:0in;
+ margin-left:0in;
+ font-size:13.5pt;
+ font-family:"Times New Roman","serif";
+ color:black;
+ font-weight:bold;}
+a:link, span.MsoHyperlink
+ {color:blue;
+ text-decoration:underline;}
+a:visited, span.MsoHyperlinkFollowed
+ {color:purple;
+ text-decoration:underline;}
+p
+ {margin-right:2.6pt;
+ margin-left:2.6pt;
+ font-size:12.0pt;
+ font-family:"Verdana","sans-serif";
+ color:black;}
+pre
+ {mso-style-link:"HTML Preformatted Char";
+ margin:0in;
+ margin-bottom:.0001pt;
+ font-size:10.0pt;
+ font-family:"Courier New";
+ color:windowtext;}
+span.Heading3Char
+ {mso-style-name:"Heading 3 Char";
+ mso-style-link:"Heading 3";
+ font-family:"Cambria","serif";
+ color:#4F81BD;
+ font-weight:bold;}
+span.HTMLPreformattedChar
+ {mso-style-name:"HTML Preformatted Char";
+ mso-style-link:"HTML Preformatted";
+ font-family:"Courier New";}
+.MsoChpDefault
+ {font-size:10.0pt;}
+@page Section1
+ {size:8.5in 11.0in;
+ margin:1.0in 1.25in 1.0in 1.25in;}
+div.Section1
+ {page:Section1;}
+ /* List Definitions */
+ ol
+ {margin-bottom:0in;}
+ul
+ {margin-bottom:0in;}
+-->
+</style>
+
+</head>
+
+<body lang=EN-US link=blue vlink=purple>
+
+<div class=Section1>
+
+<p class=MsoNormal> </p>
+
+<p class=MsoNormal>BlazeDS Binary Distribution</p>
+
+<p class=MsoNormal> </p>
+
+<p class=MsoNormal>This BlazeDS Binary distribution includes
+the Adobe BlazeDS web application whose licenses are described below:</p>
+
+<p class=MsoNormal> </p>
+
+<p class=MsoNormal> </p>
+
+<p class=MsoNormal><u><span style='font-size:14.0pt'>Adobe BlazeDS License
+Information</span></u><span style='font-size:14.0pt'>:</span></p>
+
+<p class=MsoNormal> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>�
+2004-2008 Adobe Systems Incorporated. All rights reserved.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>This
+program is free software: you can redistribute it and/or modify it under the
+terms of the GNU Lesser General Public License, Version 3, as published by the
+Free Software Foundation.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>This
+program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE.� See the GNU Lesser General Public License for more
+details.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>You
+should have received a copy of the GNU Lesser General Public License along with
+this program.� If not, see http://www.gnu.org/licenses/.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>You
+shall not disclaim warranty or limit liability differently from the terms of
+Sections 15 and 16 of the GNU General Public License, Version 3, which is
+incorporated into the GNU Lesser General Public License.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>You
+shall preserve all legal notices or author attributions in the program.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>You
+shall not misrepresent the original version of the program, and you shall mark
+all modified versions of the program in reasonable ways to show the differences
+from the original version of the program.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>�</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>In
+accordance with Section 7(f) of the GNU General Public License, Version 3,
+which is incorporated into the GNU Lesser General Public License, certain
+portions of this program are licensed under Apache 2.0 which requires the
+indemnification of the author or licensors of the software licensed under
+Apache 2.0 license by those who convey the program.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>If
+you have any questions regarding this agreement or if you wish to request any
+information from Adobe please use the address and contact information included
+with this program to contact the Adobe office serving your jurisdiction.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>By
+downloading, using, modifying, distributing and/or accessing the program, you
+agree to the GNU Lesser General Public License, Version 3.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>The name “BlazeDS” and the BlazeDS logo must not be used to endorse or promote products derived from this software without prior written permission from Adobe. Similarly, products derived from this open source software may not be called "BlazeDS", nor may "BlazeDS" appear in their name or the BlazeDS logo appear with such products, without prior written permission of Adobe.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt'> </span></b></p>
+
+<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt'>NOTICES
+RELATED TO CERTAIN THIRD PARTY MATERIALS:</span></b></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><u><span style='font-size:10.0pt'>Apache
+1.1 Licensed Products</span></u><span style='font-size:10.0pt'>:� </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>This
+product includes software listed below that were developed by the Apache
+Software Foundation (http://www.apache.org/).� Such software is licensed under
+the Apache Software License, Version 1.1; you may obtain a copy of such license
+at� http://apache.org/licenses/LICENSE-1.1.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>-
+Apache Commons</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- commons-codec-1.3.jar</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- commons-fileupload-1.1.jar</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- commons-httpclient-3.0.1.jar</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- commons-io-1.1.jar</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>- Apache
+Velocity</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- mm-velocity-1.4.jar</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>-
+Apache XML</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>��
+-- xalan.jar (version 2.5.2)</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><u><span style='font-size:10.0pt'>Creative
+Commons Licensed Products</span></u><span style='font-size:10.0pt'>: </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>This
+software uses the java.util.concurrent (concurrent.jar version 1.3.3) API and
+the backport of java.util.concurrent API. Both packages are public-domain
+sources from the JSR 166 CVS repository, the dl.util.concurrent package, and
+the Doug Lea's collections package.backport-util-concurrent.jar (version 2.2)
+The license terms of these packages can be found here
+(http://creativecommons.org:81/licenses/publicdomain/). </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><u><span style='font-size:10.0pt'>GNU
+LGPLv.2.1 Licensed Products</span></u><span style='font-size:10.0pt'>: </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'> </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>This
+software uses the JGroups toolkit library for reliable multicast communication
+(jgroups.jar).� Such JGroups library is licensed under� the GNU Lesser General
+Public License, Version 2.1, a copy of which is included with such library.�
+You may also obtain a copy of such license at <a
+href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.�� </span></p>
+
+
+</div>
+
+</body>
+
+</html>