http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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 deleted file mode 100755 index d226c70..0000000 --- a/apps/team/features/withoutui/messaging_withoutUI.as +++ /dev/null @@ -1,145 +0,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. -// -//////////////////////////////////////////////////////////////////////////////// -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/75229759/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 deleted file mode 100755 index a6f3d51..0000000 --- a/apps/team/features/withoutui/remoting_withoutUI.as +++ /dev/null @@ -1,116 +0,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. -// -//////////////////////////////////////////////////////////////////////////////// -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/75229759/assembly/pom.xml ---------------------------------------------------------------------- diff --git a/assembly/pom.xml b/assembly/pom.xml new file mode 100755 index 0000000..607f7da --- /dev/null +++ b/assembly/pom.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex.blazeds</groupId> + <artifactId>flex-messaging</artifactId> + <version>4.8.0-SNAPSHOT</version> + </parent> + + <artifactId>flex-messaging-assembly</artifactId> + <packaging>pom</packaging> + + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.5.1</version> + <executions> + <execution> + <id>assemble-sources-releases</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <finalName>apache-flex-blazeds</finalName> + <descriptors> + <descriptor>src/assembly/assemble-zip.xml</descriptor> + <descriptor>src/assembly/assemble-gz.xml</descriptor> + </descriptors> + </configuration> + </plugin> + </plugins> + </build> + +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/assembly/src/assembly/assemble-gz.xml ---------------------------------------------------------------------- diff --git a/assembly/src/assembly/assemble-gz.xml b/assembly/src/assembly/assemble-gz.xml new file mode 100644 index 0000000..8b13e5d --- /dev/null +++ b/assembly/src/assembly/assemble-gz.xml @@ -0,0 +1,40 @@ +<?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. + + --> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> + <id>source-release</id> + <formats> + <format>tar.gz</format> + </formats> + <fileSets> + <fileSet> + <directory>${basedir}/..</directory> + <outputDirectory>/</outputDirectory> + <useDefaultExcludes>false</useDefaultExcludes> + <excludes> + <exclude>**/target/**</exclude> + <exclude>attic/**</exclude> + <exclude>**/*.iml</exclude> + <exclude>.idea/**</exclude> + </excludes> + </fileSet> + </fileSets> +</assembly> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/assembly/src/assembly/assemble-zip.xml ---------------------------------------------------------------------- diff --git a/assembly/src/assembly/assemble-zip.xml b/assembly/src/assembly/assemble-zip.xml new file mode 100644 index 0000000..80a8f85 --- /dev/null +++ b/assembly/src/assembly/assemble-zip.xml @@ -0,0 +1,40 @@ +<?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. + + --> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> + <id>source-release</id> + <formats> + <format>zip</format> + </formats> + <fileSets> + <fileSet> + <directory>${basedir}/..</directory> + <outputDirectory>/</outputDirectory> + <useDefaultExcludes>false</useDefaultExcludes> + <excludes> + <exclude>**/target/**</exclude> + <exclude>attic/**</exclude> + <exclude>**/*.iml</exclude> + <exclude>.idea/**</exclude> + </excludes> + </fileSet> + </fileSets> +</assembly> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/ApproveBlazeDS.xml ---------------------------------------------------------------------- diff --git a/attic/ApproveBlazeDS.xml b/attic/ApproveBlazeDS.xml new file mode 100644 index 0000000..ec88d2e --- /dev/null +++ b/attic/ApproveBlazeDS.xml @@ -0,0 +1,385 @@ +<?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. + +--> + +<project name="ApproveApacheFlexBlazeDS" default="main" basedir="."> + + + <!-- Required for OSX 10.6 / Snow Leopard Performance. --> + <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only --> + <!-- local.d32 is set/used in build.properties so this needs to be done first. --> + <condition property="local.d32" value="-d32"> + <and> + <os family="windows"/> + <equals arg1="${sun.arch.data.model}" arg2="64"/> + <equals arg1="${os.arch}" arg2="x86_64"/> + <equals arg1="${ant.java.version}" arg2="1.6"/> + </and> + </condition> + + <condition property="isMac" value="mac"> + <os family="mac" /> + </condition> + <condition property="isWindows" value="windows"> + <os family="windows" /> + </condition> + <condition property="isLinux" value="linux"> + <and> + <os family="unix" /> + <not> + <isset property="isMac" /> + </not> + </and> + </condition> + <condition property="package.suffix" value="zip"> + <os family="windows" /> + </condition> + <property name="package.suffix" value="tar.gz" /> + + <property name="rat.report" value="${basedir}/rat-report.txt"/> + <property name="apache.rat.jar" value="apache-rat-0.8.jar" /> + <property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" /> + <property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" /> + + <property name="mac.text.display" value="cat" /> + <property name="win.text.display" value="type" /> + <property name="linux.text.display" value="cat" /> + + <property file="${basedir}/approveblazeds.properties"/> + <property environment="env"/> + + <property name="build.target" value="main" /> + + <condition property="do.copy.downloads" > + <isset property="download.cache.dir" /> + </condition> + + <fail message="The ANT_HOME environment variable is not set." + unless="env.ANT_HOME"/> + + <available file="${env.FLEX_HOME}" + type="dir" + property="FLEX_HOME" value="${env.FLEX_HOME}" /> + + <fail message="The FLEX_HOME property is not set in environment or command-line." + unless="FLEX_HOME"/> + + <available file="${env.AIR_HOME}" + type="dir" + property="AIR_HOME" value="${env.AIR_HOME}" /> + + <fail message="The AIR_HOME property is not set in environment or command-line." + unless="AIR_HOME"/> + + <available file="${env.ANT_HOME}/lib/${apache.rat.jar}" + type="file" + property="apache.rat.found"/> + <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" + type="file" + property="apache.rat.tasks.found"/> + + <fail message="The release version is not set. Specify -Drelease.version=<release version (e.g. 3.1, 3.2, etc)>" + unless="release.version"/> + + <fail message="The folder number is not set. Specify -Dfolder.number=<folder number (e.g. 1001, 1002, etc)>" + unless="folder.number"/> + + <property name="package.url.path" value="https://repository.apache.org/content/repositories/orgapacheflex-${folder.number}/org/apache/flex/blazeds/blazeds/${release.version}" /> + <property name="package.url.name" value="blazeds-${release.version}-source-release" /> + + <condition property="zip.compressed"> + <equals arg1="zip" arg2="${package.suffix}" /> + </condition> + + <target name="display-text-mac" if="isMac"> + <echo>========================= Begin ${file} ==============================</echo> + <exec executable="${mac.text.display}" > + <arg value="${file}" /> + </exec> + <echo>========================= End ${file} ==============================</echo> + </target> + <target name="display-text-win" if="isWindows"> + <pathconvert targetos="windows" property="winfile"> + <path path="${file}" /> + </pathconvert> + <echo>========================= Begin ${winfile} ==============================</echo> + <exec executable="cmd.exe" > + <arg value="/c" /> + <arg value="${win.text.display}" /> + <arg value="${winfile}" /> + </exec> + <echo>========================= End ${winfile} ==============================</echo> + </target> + <target name="display-text-linux" if="isLinux"> + <echo>========================= Begin ${file} ==============================</echo> + <exec executable="${linux.text.display}" > + <arg value="${file}" /> + </exec> + <echo>========================= End ${file} ==============================</echo> + </target> + + <target name="install-rat" depends="install-rat.jar,install-rat.tasks.jar" /> + <target name="install-rat.jar" unless="apache.rat.found"> + <get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" /> + </target> + <target name="install-rat.tasks.jar" unless="apache.rat.tasks.found"> + <get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" /> + </target> + + <target name="rat-taskdef" description="Rat taskdef"> + <typedef resource="org/apache/rat/anttasks/antlib.xml" + uri="antlib:org.apache.rat.anttasks" + classpathref="anttask.classpath"/> + </target> + + <target name="main" depends="install-rat,download,check-sigs,uncompress,rat-check,check-notices,build,approve" description="Perform required release approval steps"> + </target> + + <target name="main-no-download" depends="install-rat,check-sigs,uncompress,rat-check,check-notices,build,approve" description="Perform required release approval steps"> + </target> + + <target name="test" > + <echo>${rat.report}.bin.txt</echo> + <replaceregexp file="${rat.report}.bin.txt" match="..AL.*" replace="" byline="true"/> + </target> + + <target name="display-text" > + <antcall target="display-text-mac" /> + <antcall target="display-text-win" /> + <antcall target="display-text-linux" /> + </target> + + <target name="display-text-test" > + <antcall target="display-text" > + <param name="file" value="${basedir}/rat-report.txt" /> + </antcall> + </target> + + <target name="download" depends="download-asc" description="download the release package"> + <get src="${package.url.path}/${package.url.name}.${package.suffix}" + dest="${basedir}/${package.url.name}.${package.suffix}" /> + <get src="${package.url.path}/${package.url.name}.${package.suffix}.md5" + dest="${basedir}/${package.url.name}.${package.suffix}.md5" /> + </target> + + <target name="download-asc" unless="no.asc" description="download the release package"> + <get src="${package.url.path}/${package.url.name}.${package.suffix}.asc" + dest="${basedir}/${package.url.name}.${package.suffix}.asc" /> + </target> + + <target name="check-md5" description="check md5"> + <echo message="Checking MD5..."/> + <replace file="${basedir}/${package.url.name}.${package.suffix}.md5" + token=" " /> + <checksum file="${basedir}/${package.url.name}.${package.suffix}" algorithm="md5" verifyproperty="md5.ok" /> + <condition property="MD5Invalid"> + <not> + <equals arg1="${md5.ok}" arg2="true" /> + </not> + </condition> + <fail message="MD5 checksum did not match" if="MD5Invalid" /> + </target> + + <target name="check-sigs" depends="check-md5" unless="no.asc" description="check md5 and gpg sigs"> + <exec executable="gpg" failonerror="true"> + <arg value="--verify" /> + <arg value="${basedir}/${package.url.name}.${package.suffix}.asc" /> + <arg value="${basedir}/${package.url.name}.${package.suffix}" /> + </exec> + </target> + + + <target name="uncompress" depends="pre-clean, untar-file, unzip-file" /> + + <target name="pre-clean" description="remove old uncompressed package" > + <delete dir="${basedir}/${package.url.name}" failonerror="false" /> + </target> + + <target name="untar-file" unless="zip.compressed" description="Untars zipFile"> + <untar src="${basedir}/${package.url.name}.${package.suffix}" + dest="${basedir}/${package.url.name}" compression="gzip"/> + </target> + + <target name="unzip-file" if="zip.compressed" description="Unzips zipFile"> + <unzip src="${basedir}/${package.url.name}.${package.suffix}" + dest="${basedir}/${package.url.name}"/> + </target> + + <target name="rat-check" > + + <echo message="Checking files at ${basedir}/${package.url.name}, report is ${rat.report}"/> + + <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" + reportFile="${rat.report}"> + <fileset dir="${basedir}/${package.url.name}"> + <!-- exclude media (png, gif, jpg, mp3, flv) --> + <exclude name="**/*.png"/> + <exclude name="**/*.gif"/> + <exclude name="**/*.jpg"/> + <exclude name="**/*.mp3"/> + <exclude name="**/*.flv"/> + <exclude name="installer/build.number"/> + <exclude name="**/swfobject.js"/> + <exclude name="**/DoNotDeleteUntilFile.txt" /> + <exclude name="CONTRIBUTORS"/> + <exclude name="CONTRIBUTING"/> + </fileset> + </rat:report> + <antcall target="display-text" > + <param name="file" value="${rat.report}" /> + </antcall> + <input + message="Check that there are no unknown or unapproved licenses or archives. Is it ok?" + validargs="y,n" + defaultvalue="y" + addproperty="rat.license.ok"/> + <echo>filtering out AL files to make it easier to see binary files</echo> + <copy file="${rat.report}" tofile="${rat.report}.bin.txt" /> + <replaceregexp file="${rat.report}.bin.txt" match="..AL.*" replace="" byline="true"/> + <antcall target="display-text" > + <param name="file" value="${rat.report}.bin.txt" /> + </antcall> + <input + message="Check that there are no unexpected binaries. Is it ok?" + validargs="y,n" + defaultvalue="n" + addproperty="rat.binaries.ok"/> + </target> + + <target name="check-notices" description="open each notice file for review, grep for a few things" > + <fail message="README not in package"> + <condition> + <not> + <available file="${basedir}/${package.url.name}/blazeds-${release.version}/README" /> + </not> + </condition> + </fail> + <fail message="RELEASE_NOTES not in package"> + <condition> + <not> + <available file="${basedir}/${package.url.name}/blazeds-${release.version}/RELEASE_NOTES" /> + </not> + </condition> + </fail> + <fail message="NOTICE not in package"> + <condition> + <not> + <available file="${basedir}/${package.url.name}/blazeds-${release.version}/NOTICE" /> + </not> + </condition> + </fail> + <fail message="LICENSE not in package"> + <condition> + <not> + <available file="${basedir}/${package.url.name}/blazeds-${release.version}/LICENSE" /> + </not> + </condition> + </fail> + <antcall target="display-text" > + <param name="file" value="${basedir}/${package.url.name}/blazeds-${release.version}/README" /> + </antcall> + <input + message="Check the README for version numbers, spelling, grammar, accuracy. Is it ok?" + validargs="y,n" + defaultvalue="y" + addproperty="readme.ok"/> + + <antcall target="display-text" > + <param name="file" value="${basedir}/${package.url.name}/blazeds-${release.version}/RELEASE_NOTES" /> + </antcall> + <input + message="Check the RELEASE_NOTES for copyright years, spelling, grammar, accuracy. Is it ok?" + validargs="y,n" + defaultvalue="y" + addproperty="releasenotes.ok"/> + + <antcall target="display-text" > + <param name="file" value="${basedir}/${package.url.name}/blazeds-${release.version}/NOTICE" /> + </antcall> + <input + message="Check the NOTICE for required notices from third-parties. Is it ok?" + validargs="y,n" + defaultvalue="y" + addproperty="notice.ok"/> + + <antcall target="display-text" > + <param name="file" value="${basedir}/${package.url.name}/blazeds-${release.version}/LICENSE" /> + </antcall> + <input + message="Check the LICENSE for the Apache License and third-party licenses. Is it ok?" + validargs="y,n" + defaultvalue="y" + addproperty="license.ok"/> + </target> + + <target name="build" depends="copy.downloads"> + <input + message="The final step is to run the build and any tests the build script runs. This can take several minutes. Press y to start the build." + validargs="y" + defaultvalue="y" /> + <exec dir="${basedir}/${package.url.name}/blazeds-${release.version}" executable="mvn" > + <arg value="install" /> + </exec> + </target> + + <target name="copy.downloads" if="${do.copy.downloads}" description="instead of actually downloading all of the dependencies, you can save lots of time by just copying from some other folder in some other SDK."> + <echo>Copying downloads</echo> + <copy todir="${basedir}/${package.url.name}/in" > + <fileset dir="${download.cache.dir}" /> + </copy> + </target> + + <target name="approve" > + <condition property="vote" value="+1"> + <and> + <equals arg1="${rat.license.ok}" arg2="y" /> + <equals arg1="${rat.binaries.ok}" arg2="y" /> + <equals arg1="${readme.ok}" arg2="y" /> + <equals arg1="${releasenotes.ok}" arg2="y" /> + <equals arg1="${notice.ok}" arg2="y" /> + <equals arg1="${license.ok}" arg2="y" /> + </and> + </condition> + <property name="vote" value="-1" /> + <echo> +${vote} +Package ${package.url.path}/${package.url.name}.${package.suffix} +Java ${ant.java.version} +OS: ${os.name} ${os.arch} ${os.version} +Source kit signatures match: y +Source kit builds: y +README is ok: ${readme.ok} +RELEASE_NOTES is ok: ${releasenotes.ok} +NOTICE is ok: ${notice.ok} +LICENSE is ok: ${license.ok} +No unapproved licenses or archives: ${rat.license.ok} +No unapproved binaries: ${rat.binaries.ok} + </echo> + <fail> + <condition> + <equals arg1="-1" arg2="${vote}"/> + </condition> + </fail> + <antcall target="no-asc" /> + </target> + + <target name="no-asc" if="no.asc" > + <echo>PGP signature not checked</echo> + </target> +</project> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/LICENSE ---------------------------------------------------------------------- diff --git a/attic/LICENSE b/attic/LICENSE new file mode 100644 index 0000000..6b0b127 --- /dev/null +++ b/attic/LICENSE @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed 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. + http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/NOTICE ---------------------------------------------------------------------- diff --git a/attic/NOTICE b/attic/NOTICE new file mode 100644 index 0000000..ecee85c --- /dev/null +++ b/attic/NOTICE @@ -0,0 +1,9 @@ +Apache Flex BlazeDS +Copyright 2014-2015 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +The Initial Developer of the Original Code, known as Adobe Flex, +is Adobe Systems Incorporated (http://www.adobe.com/). + Copyright 2003 - 2012 Adobe Systems Incorporated. All Rights Reserved. http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/README ---------------------------------------------------------------------- diff --git a/attic/README b/attic/README new file mode 100644 index 0000000..28e3980 --- /dev/null +++ b/attic/README @@ -0,0 +1,442 @@ +Apache Flex BlazeDS +================== + + Apache Flex SDK is an application development framework for easily building + Flash-based applications for mobile devices, web browsers, and desktops. + + Apache Flex BlazeDS is the server-based Java remoting and web messaging + technology that enables developers to easily connect to back-end distributed + data and push data in real-time to Adobe® Flex® and Adobe AIR⢠applications + for more responsive rich Internet application (RIA) experiences.. + + Apache Flex BlazeDS 4.7 is the initial release of BlazeDS from the Apache + Software Foundation. Prior to this, releases were provided by Adobe + Systems Inc. This version adds new features and implements bug fixes + that were unavailable in previous versions. It is compatible with most code + written to target Adobe Flex 4.6. + + For detailed information about Apache Flex please visit + http://flex.apache.org/ + + Apache Flex BlazeDS is a large project with many pieces. The software is + implemented partially in ActionScript and partially in Java. + + Currently supported platforms include: + + Microsoft Windows + Mac OS X + Apple iOS + Google Android + RIM BlackBerry + Linux + + Apache Flex is the software evolution of the popular Adobe BlazeDS project. + + The community surrounding Flex is vast, diverse, distributed globally, and + with all levels of proficiency in software development. + + There has been more that 30,000 installs of Apache Flex. The Apache Flex web + site gets 3 quarters of a million page views a year and more than 250,000 + unique visitors a year. + + +Getting the convenience packages for Apache Flex +================================================ + + TBD + +Getting the latest sources via git +================================== + + Getting the source code is the recommended way to get Apache Flex BlazeDS. + + You can always checkout the latest source via git using the following + command: + + git clone https://git-wip-us.apache.org/repos/asf/flex-blazeds.git blazeds + cd blazeds + git checkout develop + + Apache Flex BlazeDS also requires source code from other Apache Flex git + repositories. To get the latest source via git for the Apache Flex SDK + use the following command: + + git clone https://git-wip-us.apache.org/repos/asf/flex-sdk.git sdk + cd sdk + git checkout develop + + Linux support is currently experimental and you may run into issues. Apache + Flex would like to see a fully supported Linux release, but we need support + from the community in order to do that. Please help out if you can. + + For further information visit http://flex.apache.org/download-source.html + +Building Apache Flex BlazeDS 4.7 +================================ + + Apache Flex BlazeDS is a large project. It requires some build tools which must be + installed prior to building BlazeDS and it depends on some external software + which are downloaded as part of the build process. Some of these have + different licenses. See the Software Dependencies section for more + information on the external software dependencies. + + From Apache's perspective, the Adobe Flash Player and Adobe AIR have + excluded licenses so they can not be bundled with the Apache Flex binaries. + They must be installed prior to building Apache Flex. + + Linux support is currently experimental and while it is possible to compile + BlazeDS it has not been fully tested so you may run into issues. + +Install Prerequisites +--------------------- + + Before building BlazeDS you must install the following software and set the + corresponding environment variables using absolute file paths. Relative + file paths will result in build errors. + + The environment variables PLAYERGLOBAL_HOME, AIR_HOME, FLASHPLAYER_DEBUGGER, + FLEX_HOME can also be set in the property file + called env.properties. See the env-template.properties file for + instructions. + + The Adobe Flash Player playerglobal.swc is needed to compile all the + ActionScript components. The Adobe Flash Player + content debugger is used by checkintests and other pieces of the test + subsystem to run compiled applications. + + ================================================================================== + SOFTWARE ENVIRONMENT VARIABLE (absolute paths) + ================================================================================== + + Java SDK 1.6 or greater (*1) JAVA_HOME + (for Java 1.7 see note at (*2)) + + Ant 1.7.1 or greater (*1) ANT_HOME + (for Java 1.7 see note at (*2)) + + Adobe AIR Integration Kit (*3) AIR_HOME + + Adobe Flash Player Content Debugger (*4) FLASHPLAYER_DEBUGGER + + Adobe Flash Player playerglobal swcs (*5) PLAYERGLOBAL_HOME + + Apache Flex SDK (*6) FLEX_HOME + + ================================================================================== + + *1) The bin directories for ANT_HOME and JAVA_HOME should be added to your + PATH. + + On Windows, set PATH to + + PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin + + On the Mac (bash), set PATH to + + export PATH="$PATH:$ANT_HOME/bin:$JAVA_HOME/bin" + + On Linux make sure you path include ANT_HOME and JAVA_HOME. + + *2) If you are using Java SDK 1.7 or greater on a Mac you must use Ant 1.8 + or greater. If you use Java 1.7 with Ant 1.7, ant reports the java + version as 1.6 so the JVM args for the data model (-d32/-d64) will not + be set correctly and you will get compile errors. + + *3) The Adobe AIR integration kit for Windows can be downloaded from: + http://airdownload.adobe.com/air/win/download/13.0/AdobeAIRSDK.zip + + The Adobe AIR integration kit for Mac can be downloaded from: + http://airdownload.adobe.com/air/mac/download/13.0/AdobeAIRSDK.tbz2 + + The Adobe AIR integration kit for Linux can be downloaded from: + http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRSDK.tbz2 + + This version of Apache Flex was certified for use with AIR 13.0, and + should be compatible with other versions of AIR newer than 3.1. However + it hasn't been fully tested on AIR 3.2, 3.3, 3.5, 3.6 or 3.7. + + Download the AIR SDK for your platform and unzip it. Set AIR_HOME to the + absolute path of the AIR SDK directory. + + *4) The Adobe Flash Player content debuggers can be found here: + http://www.adobe.com/support/flashplayer/downloads.html + + This version of Apache Flex was certified for use with Adobe Flash + Player 11.1, and is compatible with versions 10.2 through 13.0. It has + been tested with versions 11.1, 11.7, 11.8, 11.9 and 12.0 on Windows + and Mac. It has been compiled against other Adobe Flash Player versions + but has not been fully tested. It has not been fully tested on Linux. + + On Windows, set FLASHPLAYER_DEBUGGER to the absolute path including the + filename of the FlashPlayerDebugger.exe. Note the filename of flash + player debugger maybe different. + e.g. C:\MyPath\FlashPlayerDebugger.exe + + On the Mac, set FLASHPLAYER_DEBUGGER to the absolute path of + Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger + + On Linux, set FLASHPLAYER_DEBUGGER to the absolute path of + flashplayerdebugger + + *5) The Adobe Flash Player playerglobal.swc for 11.1 can be downloaded from: + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_1.swc + + Use URL above to download playerglobal11_1.swc. Create the directory, + player/11.1 and copy playerglobal11_1.swc to + player/11.1/playerglobal.swc. + + Set PLAYERGLOBAL_HOME to the absolute path of the player directory (not + including the version subdirectory). The target-player option controls + which PLAYERGLOBAL_HOME subdirectory is used. + + Other more recent versions of Adobe Flash Player playerglobal.swc can be + downloaded from: + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_2.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_3.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_4.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_5.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_6.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_7.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_8.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_9.swc + http://download.macromedia.com/get/flashplayer/updaters/12/playerglobal12_0.swc + http://download.macromedia.com/get/flashplayer/updaters/13/playerglobal13_0.swc + + These can be used with Apache Flex but not all have not been fully + tested. + + *6) The Apache Flex SDK is required to build some of the ActionScript code. + + Set FLEX_HOME to the absolute path of Apache Flex SDK. + +FlashPlayer Configuration +------------------------- + + For testing, the Adobe Flash Player's mm.cfg file must have the following + entries + + ErrorReportingEnable=1 + TraceOutputFileEnable=1 + + and a FlashPlayerTrust file must allow local SWFs to access local files. + + +Adobe Flash Player Version Support +---------------------------------- + + Apache Flex BlazeDS defaults to using the Adobe Flash Player 11.1. The SDK + can be used with Flash Player versions 10.2, 10.3, 11.0, 11.1, 11.2, 11.3, + 11.4, 11.5, 11.6, 11.7, 11.8, 11.9, 12.0 and 13.0. + + It is recommended that you update to the latest version of Adobe Flash + Player. Newer versions of the Adobe Flash player address security + vulnerabilities, fix bugs/issues, increase stability, and implement new + features. + + To use the SDK for another version of the Adobe Flash Player either: + + Change the flex-config.xml configuration file to specify another version of + the Adobe Flash Player. + + OR + + Change the playerglobal.version in the build.properties file to have a value + other than "11.1". For this change to take effect the SDK needs to be + recompiled. For example to compile against the latest version of the Adobe + Flash Player set the value of playerglobal.version to be "12.0" like so: + + playerglobal.version = 13.0 + + OR + + Compile the SDK with a -Dplayerglobal.version=<version> option, where + <version> is the Adobe Flash Player version to compile the SDK against. + + + Different versions of the Adobe Flash Player require different versions of + playerglobal.swc. + + These can be found at: + + http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_2.swc + http://download.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal10_3.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_0.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_1.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_2.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_3.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_4.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_5.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_6.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_7.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_8.swc + http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_9.swc + http://download.macromedia.com/get/flashplayer/updaters/12/playerglobal12_0.swc + http://download.macromedia.com/get/flashplayer/updaters/13/playerglobal13_0.swc + + Copy the target playerglobal.swc to the directory: + + frameworks/libs/player/<version>/playerglobal.swc + + Where <version> is the major and minor version numbers of the Adobe Flash + Player separated by a period or full stop. + + If all of the playerglobal swcs where installed the frameworks/libs/player + directory structure would look like this. + + /frameworks + /libs + /player + /10.2 + /playerglobal.swc + /10.3 + /playerglobal.swc + /11.0 + /playerglobal.swc + /11.2 + /playerglobal.swc + /11.2 + /playerglobal.swc + /11.3 + /playerglobal.swc + /11.4 + /playerglobal.swc + /11.5 + /playerglobal.swc + /11.6 + /playerglobal.swc + /11.7 + /playerglobal.swc + /11.8 + /playerglobal.swc + /11.9 + /playerglobal.swc + /12.0 + /playerglobal.swc + /13.0 + /playerglobal.swc + + Apache Flex has been tested with Adobe Flash Player 11.1, 11.5, 11.7, 11.8, + 11.9, 12.0 nd 13.0 on Windows and Mac. + + Apache Flex has not been tested on Linux so some issue may exist in this + release. + + It compiles against other Adobe Flash Player versions and is expected to + work but their may be some issues, particularly with the earlier 10.2 and + 10.3 versions of the Adobe Flash Player. + +Software Dependencies +--------------------- + + Apache Flex uses third-party code that will be downloaded as part of the + Apache Flex build. In addition, there is some optional third-party code + that you can choose to download if you would like to take advantage of the + features offered and you agree to the license terms. + + The Apache Version 2.0 license is in the LICENSE file. + + The following dependencies have licenses which are, or are compatible with, + the Apache Version 2.0 license. You will not be prompted to acknowledge the + download. Most of the jars are installed in lib/external. + + activemq - http://archive.apache.org/dist/activemq/apache-activemq/5.3.1/apache-activemq-5.3.1-bin.zip + codec - http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.5-bin.zip + commons-collections - http://archive.apache.org/dist/commons/collections/binaries/commons-collections-3.1.tar.gz + commons-fileupload - http://archive.apache.org/dist/commons/fileupload/binaries/commons-fileupload-1.1.zip + commons-httpclient - http://archive.apache.org/dist/httpcomponents/commons-httpclient/binary/commons-httpclient-3.1.zip + commons-logging - http://archive.apache.org/dist/commons/logging/binaries/commons-logging-1.1.1-bin.zip + hsqldb - http://downloads.sourceforge.net/project/hsqldb/hsqldb/hsqldb_1_8_0/hsqldb_1_8_0_10.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fhsqldb%2Ffiles%2Fhsqldb%2Fhsqldb_1_8_0%2F&ts=1378509998&use_mirror=softlayer-dal + jms - http://downloads.sourceforge.net/project/openjms/openjms/openjms-0.7.6.1/openjms-0.7.6.1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopenjms%2Ffiles%2Fopenjms%2Fopenjms-0.7.6.1%2F&ts=1378512874&use_mirror=hivelocity + log4j - http://archive.apache.org/dist/logging/log4j/1.2.14/logging-log4j-1.2.14.zip + spring-framework - http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.3.RELEASE.zip + spring-security - http://s3.amazonaws.com/dist.springframework.org/release/SEC/spring-security-3.0.3.RELEASE.zip + spring-flex - http://repo1.maven.org/maven2/org/springframework/flex/spring-flex-core/1.5.2.RELEASE/spring-flex-core-1.5.2.RELEASE.jar + jakarta-taglibs - http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/jakarta-taglibs-standard-1.1.2.zip + aopalliance - http://downloads.sourceforge.net/project/aopalliance/aopalliance/1.0/aopalliance.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Faopalliance%2Ffiles%2Faopalliance%2F1.0%2F&ts=1378515484&use_mirror=softlayer-dal + backport - http://downloads.sourceforge.net/project/backport-jsr166/backport-jsr166/2.2/backport-util-concurrent-2.2.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fbackport-jsr166%2Ffiles%2Fbackport-jsr166%2F2.2%2F&ts=1378515970&use_mirror=heanet + cglib - http://downloads.sourceforge.net/project/cglib/cglib2/cglib%202.1_03/cglib-nodep-2.1_3.jar?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcglib%2Ffiles%2Fcglib2%2Fcglib%25202.1_03%2F&ts=1378516297&use_mirror=hivelocity + jackson-core - http://repository.codehaus.org/org/codehaus/jackson/jackson-core-asl/1.0.0/jackson-core-asl-1.0.0.jar + tomcat - http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.zip + xalan - http://archive.apache.org/dist/xml/xalan-j/binaries/xalan-j_2_6_0-bin.tar.gz + xerces - http://archive.apache.org/dist/xerces/j/Xerces-J-bin.2.9.1.zip + ExcludeDoclet.java - http://sixlegs.com/misc/ExcludeDoclet.java + mx4j - http://repo1.maven.org/maven2/mx4j/mx4j-jmx/1.1.1/mx4j-jmx-1.1.1.jar + axis - http://archive.apache.org/dist/axis/axis/java/1.4/axis-bin-1_4.zip + testng - http://mirrors.ibiblio.org/pub/mirrors/maven2/org/testng/testng/5.8/testng-5.8-jdk15.jar + +Using the Binary Distribution +----------------------------- + + TBD + +Building the Framework in a Binary Distribution +----------------------------------------------- + + The source for most of the framework is included in the binary distribution. + It can be useful if you wish to debug and/or extend components. + + When you have all the prerequisites in place and the environment variables + set, (see Install Prerequisites above), use + + cd <blazeds.dir> + ant main (or just ant since the default target is main) + + to download the third-party dependencies and build BlazeDS. You + may be prompted to acknowledge some of the downloads. Since the third-party + dependencies take a little while to download and they don't change very + often, they are not cleaned with the regular clean target. + + To clean the build, of everything other than the downloaded third-party + dependencies use + + ant clean + + To clean the build, of everything, including the downloaded third-party + dependencies use + + ant super-clean (which is just thirdparty-clean followed by clean) + +Building the Source in the Source Distribution +---------------------------------------------- + + When you have all the prerequisites in place and the environment variables + set (see Install Prerequisites above), use + + cd <blazeds.dir> + ant main (or just ant since the default target is main) + + to download the thirdparty dependencies and build the source. You may be + prompted to acknowledge and/or confirm some of the downloads. Since the + third-party dependencies take a little while to download and they don't + change very often, they are not cleaned with the regular clean target. + + To clean the build, of everything other than the downloaded third-party + dependencies use + + ant clean + + To clean the build, of everything, including the downloaded third-party + dependencies use + + ant super-clean (which is just thirdparty-clean followed by clean) + + To generate a source distribution package and a binary distribution package + use + + ant -Dbuild.number=<YYYYMMDD> -Dbuild.noprompt= release + + The packages can be found in the "out" subdirectory. + + To build the ASDoc package + + ant asdoc-package + + To get a brief listing of all the targets type + + ant -projecthelp + + +Thanks for using Apache Flex BlazeDS. Enjoy! + + The Apache Flex Project + <http://flex.apache.org> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/RELEASE_NOTES ---------------------------------------------------------------------- diff --git a/attic/RELEASE_NOTES b/attic/RELEASE_NOTES new file mode 100644 index 0000000..48159ce --- /dev/null +++ b/attic/RELEASE_NOTES @@ -0,0 +1,20 @@ +Apache Flex BlazeDS 4.7 +================= + +Apache Flex BlazeDS 4.7 is the first release of BlazeDS from Apache. Earlier +releases were provided by Adobe Systems Inc. + +Known Issues +_____________ + + +Differences from Adobe BlazeDS 4.6 include: + +TBD + +Please report new issues to our bugbase at: + + https://issues.apache.org/jira/browse/FLEX + + The Apache Flex Project + <http://flex.apache.org/> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties b/attic/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties new file mode 100755 index 0000000..b8a3e1f --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties @@ -0,0 +1,19 @@ +# 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. + +# suppress logging for 3rd-party libraries using commons-logging +# Flex logging is not configured here. It is configured through in the logging section of flex-config.xml +org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl +org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/flex-servlet.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/flex-servlet.xml b/attic/apps/blazeds-spring/WEB-INF/flex-servlet.xml new file mode 100755 index 0000000..2388bce --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/flex-servlet.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:flex="http://www.springframework.org/schema/flex" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd + http://www.springframework.org/schema/flex + http://www.springframework.org/schema/flex/spring-flex-1.5.xsd"> + + <flex:message-broker> + <flex:message-service + default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" /> + <flex:secured /> + </flex:message-broker> +</beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml b/attic/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml new file mode 100755 index 0000000..3357c06 --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<service id="message-service" + class="flex.messaging.services.MessageService"> + + <adapters> + <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" /> + <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> --> + </adapters> + + <default-channels> + <channel ref="my-polling-amf"/> + </default-channels> + +</service> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml b/attic/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml new file mode 100755 index 0000000..fc14786 --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<service id="proxy-service" + class="flex.messaging.services.HTTPProxyService"> + + <properties> + <connection-manager> + <max-total-connections>100</max-total-connections> + <default-max-connections-per-host>2</default-max-connections-per-host> + </connection-manager> + <allow-lax-ssl>true</allow-lax-ssl> + </properties> + + <adapters> + <adapter-definition id="http-proxy" class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/> + <adapter-definition id="soap-proxy" class="flex.messaging.services.http.SOAPProxyAdapter"/> + </adapters> + + <default-channels> + <channel ref="my-amf"/> + </default-channels> + + <destination id="DefaultHTTP"> + </destination> + +</service> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml b/attic/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml new file mode 100755 index 0000000..ae2de71 --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<service id="remoting-service" + class="flex.messaging.services.RemotingService"> + + <adapters> + <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/> + </adapters> + + <default-channels> + <channel ref="my-amf"/> + </default-channels> + +</service> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/flex/services-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/flex/services-config.xml b/attic/apps/blazeds-spring/WEB-INF/flex/services-config.xml new file mode 100755 index 0000000..6fe3e6f --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/flex/services-config.xml @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<services-config> + + <services> + <service-include file-path="remoting-config.xml" /> + <service-include file-path="proxy-config.xml" /> + <service-include file-path="messaging-config.xml" /> + </services> + + <security> + <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/> + <!-- Uncomment the correct app server + <login-command class="flex.messaging.security.TomcatLoginCommand" server="JBoss"/> + <login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/> + <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/> + <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/> + --> + + <!-- + <security-constraint id="basic-read-access"> + <auth-method>Basic</auth-method> + <roles> + <role>guests</role> + <role>accountants</role> + <role>employees</role> + <role>managers</role> + </roles> + </security-constraint> + --> + </security> + + <channels> + + <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"> + <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/> + </channel-definition> + + <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"> + <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/> + <properties> + <add-no-cache-headers>false</add-no-cache-headers> + </properties> + </channel-definition> + + <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"> + <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/> + <properties> + <polling-enabled>true</polling-enabled> + <polling-interval-seconds>4</polling-interval-seconds> + </properties> + </channel-definition> + + <!-- + <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel"> + <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/> + </channel-definition> + + <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel"> + <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/> + <properties> + <add-no-cache-headers>false</add-no-cache-headers> + </properties> + </channel-definition> + --> + </channels> + + <logging> + <target class="flex.messaging.log.ConsoleTarget" level="Error"> + <properties> + <prefix>[BlazeDS] </prefix> + <includeDate>false</includeDate> + <includeTime>false</includeTime> + <includeLevel>false</includeLevel> + <includeCategory>false</includeCategory> + </properties> + <filters> + <pattern>Endpoint.*</pattern> + <pattern>Service.*</pattern> + <pattern>Configuration</pattern> + </filters> + </target> + </logging> + + <system> + <redeploy> + <enabled>false</enabled> + <!-- + <watch-interval>20</watch-interval> + <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file> + <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file> + <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file> + <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file> + <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file> + <touch-file>{context.root}/WEB-INF/web.xml</touch-file> + --> + </redeploy> + </system> + +</services-config> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/spring/app-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/spring/app-config.xml b/attic/apps/blazeds-spring/WEB-INF/spring/app-config.xml new file mode 100755 index 0000000..0fcc409 --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/spring/app-config.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:security="http://www.springframework.org/schema/security" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> + +</beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml b/attic/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml new file mode 100755 index 0000000..102da0f --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + + +</beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/blazeds-spring/WEB-INF/spring/security-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds-spring/WEB-INF/spring/security-config.xml b/attic/apps/blazeds-spring/WEB-INF/spring/security-config.xml new file mode 100755 index 0000000..ffde5a5 --- /dev/null +++ b/attic/apps/blazeds-spring/WEB-INF/spring/security-config.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<beans:beans xmlns="http://www.springframework.org/schema/security" + xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd + http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> + + <http entry-point-ref="entryPoint"> + <anonymous enabled="false"/> + </http> + + <beans:bean id="entryPoint" class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint"/> + + <authentication-manager> + <authentication-provider> + <user-service> + <user name="john" password="john" authorities="ROLE_USER" /> + <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" /> + <user name="guest" password="guest" authorities="ROLE_GUEST" /> + </user-service> + </authentication-provider> + </authentication-manager> + +</beans:beans> \ No newline at end of file
