http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/flex/services-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/flex/services-config.xml b/attic/apps/samples-spring/WEB-INF/flex/services-config.xml index b6c5647..6898ed1 100755 --- a/attic/apps/samples-spring/WEB-INF/flex/services-config.xml +++ b/attic/apps/samples-spring/WEB-INF/flex/services-config.xml @@ -1,122 +1,122 @@ -<?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" /> - <default-channels> - <channel ref="my-amf"/> - </default-channels> - </services> - - <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-longpolling-amf" class="mx.messaging.channels.AMFChannel"> - <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"/> - <properties> - <polling-enabled>true</polling-enabled> - <polling-interval-seconds>5</polling-interval-seconds> - <wait-interval-millis>60000</wait-interval-millis> - <client-wait-interval-millis>1</client-wait-interval-millis> - <max-waiting-poll-requests>200</max-waiting-poll-requests> - <user-agent-settings> - <!-- MSIE 5, 6, 7 default max number of permanent HTTP connections is 2. --> - <user-agent match-on="MSIE" max-streaming-connections-per-session="1"/> - <!-- MSIE 8 max number is 6. --> - <user-agent match-on="MSIE 8" max-streaming-connections-per-session="5"/> - <!-- Firefox 1, 2 max number is 2. --> - <user-agent match-on="Firefox" max-streaming-connections-per-session="1"/> - <!-- Firefox 3 max number is 6. --> - <user-agent match-on="Firefox/3" max-streaming-connections-per-session="5"/> - <!-- Safari 3, 4 max number is 4. --> - <user-agent match-on="Safari" max-streaming-connections-per-session="3"/> - <!-- Chrome 0, 1, 2 max number is 6. --> - <user-agent match-on="Chrome" max-streaming-connections-per-session="5"/> - <!-- Opera 7, 9 max number is 4.--> - <user-agent match-on="Opera" max-streaming-connections-per-session="3"/> - <!-- Opera 8 max number is 8. --> - <user-agent match-on="Opera 8" max-streaming-connections-per-session="7"/> - <!-- Opera 10 max number is 8. --> - <user-agent match-on="Opera 10" max-streaming-connections-per-session="7"/> - </user-agent-settings> - </properties> - </channel-definition> - - <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel"> - <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/> - </channel-definition> - - </channels> - - <security> - <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/> - <security-constraint id="trusted"> - <roles> - <role>ROLE_USER</role> - <role>ROLE_ADMIN</role> - </roles> - </security-constraint> - </security> - - <logging> - <target class="flex.messaging.log.ConsoleTarget" level="Warn"> - <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> - </redeploy> - </system> - -</services-config> +<?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" /> + <default-channels> + <channel ref="my-amf"/> + </default-channels> + </services> + + <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-longpolling-amf" class="mx.messaging.channels.AMFChannel"> + <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"/> + <properties> + <polling-enabled>true</polling-enabled> + <polling-interval-seconds>5</polling-interval-seconds> + <wait-interval-millis>60000</wait-interval-millis> + <client-wait-interval-millis>1</client-wait-interval-millis> + <max-waiting-poll-requests>200</max-waiting-poll-requests> + <user-agent-settings> + <!-- MSIE 5, 6, 7 default max number of permanent HTTP connections is 2. --> + <user-agent match-on="MSIE" max-streaming-connections-per-session="1"/> + <!-- MSIE 8 max number is 6. --> + <user-agent match-on="MSIE 8" max-streaming-connections-per-session="5"/> + <!-- Firefox 1, 2 max number is 2. --> + <user-agent match-on="Firefox" max-streaming-connections-per-session="1"/> + <!-- Firefox 3 max number is 6. --> + <user-agent match-on="Firefox/3" max-streaming-connections-per-session="5"/> + <!-- Safari 3, 4 max number is 4. --> + <user-agent match-on="Safari" max-streaming-connections-per-session="3"/> + <!-- Chrome 0, 1, 2 max number is 6. --> + <user-agent match-on="Chrome" max-streaming-connections-per-session="5"/> + <!-- Opera 7, 9 max number is 4.--> + <user-agent match-on="Opera" max-streaming-connections-per-session="3"/> + <!-- Opera 8 max number is 8. --> + <user-agent match-on="Opera 8" max-streaming-connections-per-session="7"/> + <!-- Opera 10 max number is 8. --> + <user-agent match-on="Opera 10" max-streaming-connections-per-session="7"/> + </user-agent-settings> + </properties> + </channel-definition> + + <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel"> + <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/> + </channel-definition> + + </channels> + + <security> + <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/> + <security-constraint id="trusted"> + <roles> + <role>ROLE_USER</role> + <role>ROLE_ADMIN</role> + </roles> + </security-constraint> + </security> + + <logging> + <target class="flex.messaging.log.ConsoleTarget" level="Warn"> + <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> + </redeploy> + </system> + +</services-config>
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/spring/app-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/spring/app-config.xml b/attic/apps/samples-spring/WEB-INF/spring/app-config.xml index 1ad0b11..e13cdb8 100755 --- a/attic/apps/samples-spring/WEB-INF/spring/app-config.xml +++ b/attic/apps/samples-spring/WEB-INF/spring/app-config.xml @@ -1,58 +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. - ---> -<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"> - - <!-- - Enable annotation-based configuration. companyService and industryService - (used in the Company Manager sample) are configured using annotations. - Open CompanyDAO.java and IndustryDAO.java for details. - --> - <context:annotation-config /> - <context:component-scan base-package="org.springframework.flex.samples" /> - - <!-- Implementation of ProductDAO using low-level JDBC --> - <bean id="productService" class="org.springframework.flex.samples.product.ProductDAO"> - <constructor-arg ref="dataSource" /> - </bean> - - <!-- Implementation of ContactDAO using Spring's JdbcTemplate --> - <bean id="contactService" class="org.springframework.flex.samples.contact.ContactDAO"> - <constructor-arg ref="dataSource" /> - </bean> - - <!-- A secured implementation of ProductDAO --> - <bean id="securedProductService" class="org.springframework.flex.samples.product.ProductDAO"> - <constructor-arg ref="dataSource" /> - <security:intercept-methods> - <security:protect method="find*" access="ROLE_USER" /> - </security:intercept-methods> - </bean> - +<?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"> + + <!-- + Enable annotation-based configuration. companyService and industryService + (used in the Company Manager sample) are configured using annotations. + Open CompanyDAO.java and IndustryDAO.java for details. + --> + <context:annotation-config /> + <context:component-scan base-package="org.springframework.flex.samples" /> + + <!-- Implementation of ProductDAO using low-level JDBC --> + <bean id="productService" class="org.springframework.flex.samples.product.ProductDAO"> + <constructor-arg ref="dataSource" /> + </bean> + + <!-- Implementation of ContactDAO using Spring's JdbcTemplate --> + <bean id="contactService" class="org.springframework.flex.samples.contact.ContactDAO"> + <constructor-arg ref="dataSource" /> + </bean> + + <!-- A secured implementation of ProductDAO --> + <bean id="securedProductService" class="org.springframework.flex.samples.product.ProductDAO"> + <constructor-arg ref="dataSource" /> + <security:intercept-methods> + <security:protect method="find*" access="ROLE_USER" /> + </security:intercept-methods> + </bean> + </beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/spring/infrastructure-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/spring/infrastructure-config.xml b/attic/apps/samples-spring/WEB-INF/spring/infrastructure-config.xml index 96413af..fa70dd2 100755 --- a/attic/apps/samples-spring/WEB-INF/spring/infrastructure-config.xml +++ b/attic/apps/samples-spring/WEB-INF/spring/infrastructure-config.xml @@ -1,41 +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 xmlns="http://www.springframework.org/schema/beans" - xmlns:jdbc="http://www.springframework.org/schema/jdbc" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:amq="http://activemq.apache.org/schema/core" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans - http://www.springframework.org/schema/beans/spring-beans-3.0.xsd - http://www.springframework.org/schema/jdbc - http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"> - - <!-- Create and populate the tables of the embedded database --> - <bean id="dbInit" class="org.springframework.flex.samples.util.DatabaseInitializer"> - <constructor-arg ref="dataSource" /> - </bean> - - <!-- - Simple Spring-managed DataSource for embedded HSQL database - The dbInit bean takes care of creating and populating the sample tables. - --> - <jdbc:embedded-database id="dataSource" type="HSQL" /> - +<?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:jdbc="http://www.springframework.org/schema/jdbc" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:amq="http://activemq.apache.org/schema/core" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd + http://www.springframework.org/schema/jdbc + http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"> + + <!-- Create and populate the tables of the embedded database --> + <bean id="dbInit" class="org.springframework.flex.samples.util.DatabaseInitializer"> + <constructor-arg ref="dataSource" /> + </bean> + + <!-- + Simple Spring-managed DataSource for embedded HSQL database + The dbInit bean takes care of creating and populating the sample tables. + --> + <jdbc:embedded-database id="dataSource" type="HSQL" /> + </beans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/spring/security-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/spring/security-config.xml b/attic/apps/samples-spring/WEB-INF/spring/security-config.xml index 802973d..9c342a7 100755 --- a/attic/apps/samples-spring/WEB-INF/spring/security-config.xml +++ b/attic/apps/samples-spring/WEB-INF/spring/security-config.xml @@ -1,43 +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. - ---> -<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"/> - <form-login default-target-url="/spring-blazeds-security-101/index.html" login-page="/login.jsp" /> - </http> - - <beans:bean id="entryPoint" - class="org.springframework.flex.security3.FlexAuthenticationEntryPoint"/> - - <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> - +<?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"/> + <form-login default-target-url="/spring-blazeds-security-101/index.html" login-page="/login.jsp" /> + </http> + + <beans:bean id="entryPoint" + class="org.springframework.flex.security3.FlexAuthenticationEntryPoint"/> + + <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 http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/src/spring-samples/.classpath ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/src/spring-samples/.classpath b/attic/apps/samples-spring/WEB-INF/src/spring-samples/.classpath index f5f24a9..18eb959 100755 --- a/attic/apps/samples-spring/WEB-INF/src/spring-samples/.classpath +++ b/attic/apps/samples-spring/WEB-INF/src/spring-samples/.classpath @@ -1,68 +1,68 @@ -<?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. - ---> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/aopalliance-1.0.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/aspectjrt-1.6.3.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/aspectjweaver-1.6.5.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/backport-util-concurrent-2.2.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/cglib-nodep-2.1_3.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-codec-1.3.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-httpclient-3.1.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-logging-1.1.1.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-common.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-core.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-opt.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-proxy.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-remoting.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-rds-server.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/hsqldb.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/jackson-core-asl-1.0.0.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/jstl-1.1.2.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.aop-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.asm-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.aspects-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.beans-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.context.support-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.context-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.core-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.expression-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.flex-1.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.instrument.tomcat-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.instrument-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.integration-1.0.4.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.jdbc-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.jms-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.orm-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.oxm-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.test-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.transaction-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.portlet-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.servlet-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.struts-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-config-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-core-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-web-3.0.3.RELEASE.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR/standard-1.1.2.jar"/> - <classpathentry kind="var" path="WEBAPP_LIB_DIR"/> - <classpathentry kind="output" path="bin"/> -</classpath> +<?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. + +--> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/aopalliance-1.0.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/aspectjrt-1.6.3.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/aspectjweaver-1.6.5.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/backport-util-concurrent-2.2.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/cglib-nodep-2.1_3.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-codec-1.3.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-httpclient-3.1.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/commons-logging-1.1.1.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-common.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-core.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-opt.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-proxy.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-messaging-remoting.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/flex-rds-server.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/hsqldb.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/jackson-core-asl-1.0.0.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/jstl-1.1.2.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.aop-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.asm-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.aspects-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.beans-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.context.support-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.context-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.core-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.expression-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.flex-1.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.instrument.tomcat-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.instrument-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.integration-1.0.4.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.jdbc-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.jms-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.orm-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.oxm-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.test-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.transaction-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.portlet-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.servlet-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web.struts-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/org.springframework.web-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-config-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-core-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/spring-security-web-3.0.3.RELEASE.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR/standard-1.1.2.jar"/> + <classpathentry kind="var" path="WEBAPP_LIB_DIR"/> + <classpathentry kind="output" path="bin"/> +</classpath> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/src/spring-samples/.project ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/src/spring-samples/.project b/attic/apps/samples-spring/WEB-INF/src/spring-samples/.project index fa94ab5..ae8612b 100755 --- a/attic/apps/samples-spring/WEB-INF/src/spring-samples/.project +++ b/attic/apps/samples-spring/WEB-INF/src/spring-samples/.project @@ -1,35 +1,35 @@ -<?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. - ---> -<projectDescription> - <name>spring-samples</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> +<?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. + +--> +<projectDescription> + <name>spring-samples</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/src/spring-samples/src/org/springframework/flex/samples/secured/Security3Helper.java ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/src/spring-samples/src/org/springframework/flex/samples/secured/Security3Helper.java b/attic/apps/samples-spring/WEB-INF/src/spring-samples/src/org/springframework/flex/samples/secured/Security3Helper.java index 60e0fa2..24bd1c0 100755 --- a/attic/apps/samples-spring/WEB-INF/src/spring-samples/src/org/springframework/flex/samples/secured/Security3Helper.java +++ b/attic/apps/samples-spring/WEB-INF/src/spring-samples/src/org/springframework/flex/samples/secured/Security3Helper.java @@ -1,29 +1,29 @@ -/* - * 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 org.springframework.flex.samples.secured; - -import java.util.Map; - -import org.springframework.flex.security3.AuthenticationResultUtils; - - -public class Security3Helper { - - public Map<String, Object> getAuthentication() { - return AuthenticationResultUtils.getAuthenticationResult(); - } -} +/* + * 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 org.springframework.flex.samples.secured; + +import java.util.Map; + +import org.springframework.flex.security3.AuthenticationResultUtils; + + +public class Security3Helper { + + public Map<String, Object> getAuthentication() { + return AuthenticationResultUtils.getAuthenticationResult(); + } +} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/WEB-INF/web.xml b/attic/apps/samples-spring/WEB-INF/web.xml index 2869452..5d32f39 100755 --- a/attic/apps/samples-spring/WEB-INF/web.xml +++ b/attic/apps/samples-spring/WEB-INF/web.xml @@ -1,87 +1,87 @@ -<?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. - ---> -<web-app xmlns="http://java.sun.com/xml/ns/j2ee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> - - <display-name>Spring BlazeDS Integration Samples</display-name> - - <context-param> - <param-name>contextConfigLocation</param-name> - <param-value> - /WEB-INF/spring/*-config.xml - </param-value> - </context-param> - - <filter> - <filter-name>springSecurityFilterChain</filter-name> - <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> - </filter> - - <filter-mapping> - <filter-name>springSecurityFilterChain</filter-name> - <url-pattern>/*</url-pattern> - </filter-mapping> - - <listener> - <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> - </listener> - - <listener> - <listener-class>flex.messaging.HttpFlexSession</listener-class> - </listener> - - <servlet> - <servlet-name>flex</servlet-name> - <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> - - <!-- Add RDS servlets - <servlet> - <servlet-name>RDSDispatchServlet</servlet-name> - <display-name>RDSDispatchServlet</display-name> - <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class> - <init-param> - <param-name>useAppserverSecurity</param-name> - <param-value>true</param-value> - </init-param> - <init-param> - <param-name>messageBrokerId</param-name> - <param-value>_messageBroker</param-value> - </init-param> - <load-on-startup>10</load-on-startup> - </servlet> - - <servlet-mapping id="RDS_DISPATCH_MAPPING"> - <servlet-name>RDSDispatchServlet</servlet-name> - <url-pattern>/CFIDE/main/ide.cfm</url-pattern> - </servlet-mapping> - End Add RDS servlets --> - - <servlet-mapping> - <servlet-name>flex</servlet-name> - <url-pattern>/messagebroker/*</url-pattern> - </servlet-mapping> - - <welcome-file-list> - <welcome-file>index.html</welcome-file> - </welcome-file-list> +<?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. + +--> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> + + <display-name>Spring BlazeDS Integration Samples</display-name> + + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + /WEB-INF/spring/*-config.xml + </param-value> + </context-param> + + <filter> + <filter-name>springSecurityFilterChain</filter-name> + <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> + </filter> + + <filter-mapping> + <filter-name>springSecurityFilterChain</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + <listener> + <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> + </listener> + + <listener> + <listener-class>flex.messaging.HttpFlexSession</listener-class> + </listener> + + <servlet> + <servlet-name>flex</servlet-name> + <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <!-- Add RDS servlets + <servlet> + <servlet-name>RDSDispatchServlet</servlet-name> + <display-name>RDSDispatchServlet</display-name> + <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class> + <init-param> + <param-name>useAppserverSecurity</param-name> + <param-value>true</param-value> + </init-param> + <init-param> + <param-name>messageBrokerId</param-name> + <param-value>_messageBroker</param-value> + </init-param> + <load-on-startup>10</load-on-startup> + </servlet> + + <servlet-mapping id="RDS_DISPATCH_MAPPING"> + <servlet-name>RDSDispatchServlet</servlet-name> + <url-pattern>/CFIDE/main/ide.cfm</url-pattern> + </servlet-mapping> + End Add RDS servlets --> + + <servlet-mapping> + <servlet-name>flex</servlet-name> + <url-pattern>/messagebroker/*</url-pattern> + </servlet-mapping> + + <welcome-file-list> + <welcome-file>index.html</welcome-file> + </welcome-file-list> </web-app> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples-spring/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/samples-spring/build.xml b/attic/apps/samples-spring/build.xml index 83f6b1b..926dfb8 100755 --- a/attic/apps/samples-spring/build.xml +++ b/attic/apps/samples-spring/build.xml @@ -1,168 +1,168 @@ -<?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="samples-spring.war/build.xml" default="main" basedir="../.."> - <property file="${basedir}/build.properties"/> - <property name="samples-spring.war" value="${basedir}/apps/samples-spring"/> - <property name="dist.dir" value="${basedir}/dist"/> - <property name="src.dir" value="${samples-spring.war}/WEB-INF/src"/> - <property name="classes.dir" value="${samples-spring.war}/WEB-INF/classes"/> - <property name="context.root" value="samples-spring" /> - - <path id="classpath"> - <fileset dir="${samples-spring.war}/WEB-INF/lib" includes="**/*.jar"/> - <pathelement location="${servlet.jar}"/> - </path> - - <target name="main" depends="clean,samples"/> - <target name="samples" depends="prepare,copy-resources,compile"/> - - <target name="prepare"> - <mkdir dir="${samples-spring.war}/WEB-INF/lib"/> - <mkdir dir="${samples-spring.war}/WEB-INF/classes"/> - </target> - - <target name="copy-resources"> - <fail unless="local.sdk.lib.dir" message="must specify local.sdk.lib.dir in server/build.properties"/> - <fail unless="local.sdk.frameworks.dir" message="must specify local.sdk.frameworks.dir in build.properties"/> - - <!-- copy to the lib directory --> - <copy todir="${samples-spring.war}/WEB-INF/lib"> - <fileset dir="${basedir}/lib" includes="${webapp.lib}" /> - <fileset dir="${basedir}/lib/spring" includes="**/*" /> - <fileset dir="${basedir}/lib/aspectj" includes="**/*" /> - <fileset file="${hsqldb.jar}" /> - </copy> - - <!-- copy to sampledb directory --> - <copy todir="${basedir}/sampledb"> - <fileset file="${hsqldb.jar}" /> - </copy> - - <!-- copy to the classes directory --> - <copy todir="${samples-spring.war}/WEB-INF/classes"> - <fileset dir="${samples-spring.war}/WEB-INF/src"> - <include name="**/*.xml"/> - </fileset> - <fileset dir="${basedir}/lib" includes="${webapp.classes}"/> - </copy> - - <!-- create version.properties --> - <propertyfile file="${samples-spring.war}/WEB-INF/flex/version.properties"> - <entry key="build" value="${manifest.Implementation-Version}.${build.number}"/> - <entry key="minimumSDKVersion" value="${min.sdk.version}"/> - </propertyfile> - - </target> - - <target name="run-depend" if="src.depend"> - <echo message="Removing class files that changed and dependent class files."/> - <depend cache="${classes.dir}" srcdir="${src.dir}" destdir="${classes.dir}"/> - </target> - - <target name="compile" depends="prepare,run-depend,copy-resources" description="compile"> - <javac source="1.5" debug="${src.debug}" destdir="${classes.dir}" srcdir="${src.dir}" classpathref="classpath"/> - </target> - - <target name="compile-swfs"> - <property name="samples.src.dir" value="${samples-spring.war}/WEB-INF/flex-src" /> - <ant antfile="${samples.src.dir}/chat/build.xml" /> - <ant antfile="${samples.src.dir}/collaboration/build.xml" /> - <ant antfile="${samples.src.dir}/companymgr/build.xml" /> - <ant antfile="${samples.src.dir}/feedstarter/build.xml" /> - <ant antfile="${samples.src.dir}/insync01/build.xml" /> - <ant antfile="${samples.src.dir}/insync02/build.xml" /> - <ant antfile="${samples.src.dir}/insync03/build.xml" /> - <ant antfile="${samples.src.dir}/insync04/build.xml" /> - <ant antfile="${samples.src.dir}/insync05/build.xml" /> - <ant antfile="${samples.src.dir}/insync06/build.xml" /> - <ant antfile="${samples.src.dir}/simplepush/build.xml" /> - <ant antfile="${samples.src.dir}/spring-blazeds-101/build.xml" /> - <ant antfile="${samples.src.dir}/spring-blazeds-security-101/build.xml" /> - <ant antfile="${samples.src.dir}/traderdesktop/build.xml" /> - </target> - - <target name="package" depends="compile-swfs" description=" Creates distribution war file"> - - <mkdir dir="${dist.dir}"/> - - <!-- - we don't want flex source naked in WEB-INF as that would lead to overlapping eclipse projects - instead, zip it up and then put it in the war - --> - <zip destfile="${samples-spring.war}/WEB-INF/flex-src/flex-src.zip" - comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label} Spring Integration Samples Flex Source Code"> - <fileset dir="${samples-spring.war}/WEB-INF/flex-src" - excludes="**/build*.xml,flex-src.zip"/> - </zip> - - <war file="${dist.dir}/samples-spring.war" - webxml="${samples-spring.war}/WEB-INF/web.xml"> - <manifest> - <attribute name="Sealed" value="${manifest.sealed}"/> - <attribute name="Implementation-Title" value="${manifest.Implementation-Title} - Spring Integration Samples Application"/> - <attribute name="Implementation-Version" value="${manifest.Implementation-Version}.${build.number}"/> - <attribute name="Implementation-Vendor" value="${manifest.Implementation-Vendor}"/> - </manifest> - <fileset dir="${samples-spring.war}" > - <exclude name="**/**/build*.xml" /> - <exclude name="**/generated/**/*"/> - <exclude name="WEB-INF/jsp/**/*" /> - <exclude name="WEB-INF/sessions/**/*" /> - <exclude name="WEB-INF/flex-src/**/*" /> - <!-- This is included in the war task already --> - <exclude name="WEB-INF/web.xml" /> - </fileset> - <fileset dir="${samples-spring.war}" includes="WEB-INF/flex-src/flex-src.zip" /> - </war> - - <copy todir="${dist.dir}/sampledb"> - <fileset dir="${basedir}/sampledb" /> - <fileset file="${hsqldb.jar}" /> - </copy> - - </target> - - <target name="clean" description="--> Removes jars and classes"> - <delete quiet="true" includeEmptyDirs="true"> - <fileset dir="${samples-spring.war}/WEB-INF/lib" includes="**/*"/> - <fileset dir="${samples-spring.war}/WEB-INF/flex/jars" includes="**/*"/> - <fileset dir="${samples-spring.war}/WEB-INF/flex/locale" includes="**/*"/> - <fileset dir="${samples-spring.war}/WEB-INF/flex/libs" includes="**/*"/> - <fileset dir="${classes.dir}" includes="**/*.class"/> - <fileset dir="${basedir}/sampledb" includes="${hsqldb.jar}"/> - <fileset file="${dist.dir}/samples-spring.war"/> - <fileset file="${samples-spring.war}/WEB-INF/flex-src/flex-src.zip"/> - <fileset dir="${samples-spring.war}/sqladmin"/> - <fileset dir="${samples-spring.war}/jmschat"/> - </delete> - </target> - - <target name="generated-clean"> - <delete includeEmptyDirs="true" quiet="true"> - <fileset dir="${samples-spring.war}" includes="**/generated/*" /> - </delete> - <delete includeEmptyDirs="true" quiet="true"> - <fileset dir="${samples-spring.war}" includes="**/generated" /> - </delete> - </target> - -</project> +<?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="samples-spring.war/build.xml" default="main" basedir="../.."> + <property file="${basedir}/build.properties"/> + <property name="samples-spring.war" value="${basedir}/apps/samples-spring"/> + <property name="dist.dir" value="${basedir}/dist"/> + <property name="src.dir" value="${samples-spring.war}/WEB-INF/src"/> + <property name="classes.dir" value="${samples-spring.war}/WEB-INF/classes"/> + <property name="context.root" value="samples-spring" /> + + <path id="classpath"> + <fileset dir="${samples-spring.war}/WEB-INF/lib" includes="**/*.jar"/> + <pathelement location="${servlet.jar}"/> + </path> + + <target name="main" depends="clean,samples"/> + <target name="samples" depends="prepare,copy-resources,compile"/> + + <target name="prepare"> + <mkdir dir="${samples-spring.war}/WEB-INF/lib"/> + <mkdir dir="${samples-spring.war}/WEB-INF/classes"/> + </target> + + <target name="copy-resources"> + <fail unless="local.sdk.lib.dir" message="must specify local.sdk.lib.dir in server/build.properties"/> + <fail unless="local.sdk.frameworks.dir" message="must specify local.sdk.frameworks.dir in build.properties"/> + + <!-- copy to the lib directory --> + <copy todir="${samples-spring.war}/WEB-INF/lib"> + <fileset dir="${basedir}/lib" includes="${webapp.lib}" /> + <fileset dir="${basedir}/lib/spring" includes="**/*" /> + <fileset dir="${basedir}/lib/aspectj" includes="**/*" /> + <fileset file="${hsqldb.jar}" /> + </copy> + + <!-- copy to sampledb directory --> + <copy todir="${basedir}/sampledb"> + <fileset file="${hsqldb.jar}" /> + </copy> + + <!-- copy to the classes directory --> + <copy todir="${samples-spring.war}/WEB-INF/classes"> + <fileset dir="${samples-spring.war}/WEB-INF/src"> + <include name="**/*.xml"/> + </fileset> + <fileset dir="${basedir}/lib" includes="${webapp.classes}"/> + </copy> + + <!-- create version.properties --> + <propertyfile file="${samples-spring.war}/WEB-INF/flex/version.properties"> + <entry key="build" value="${manifest.Implementation-Version}.${build.number}"/> + <entry key="minimumSDKVersion" value="${min.sdk.version}"/> + </propertyfile> + + </target> + + <target name="run-depend" if="src.depend"> + <echo message="Removing class files that changed and dependent class files."/> + <depend cache="${classes.dir}" srcdir="${src.dir}" destdir="${classes.dir}"/> + </target> + + <target name="compile" depends="prepare,run-depend,copy-resources" description="compile"> + <javac source="1.5" debug="${src.debug}" destdir="${classes.dir}" srcdir="${src.dir}" classpathref="classpath"/> + </target> + + <target name="compile-swfs"> + <property name="samples.src.dir" value="${samples-spring.war}/WEB-INF/flex-src" /> + <ant antfile="${samples.src.dir}/chat/build.xml" /> + <ant antfile="${samples.src.dir}/collaboration/build.xml" /> + <ant antfile="${samples.src.dir}/companymgr/build.xml" /> + <ant antfile="${samples.src.dir}/feedstarter/build.xml" /> + <ant antfile="${samples.src.dir}/insync01/build.xml" /> + <ant antfile="${samples.src.dir}/insync02/build.xml" /> + <ant antfile="${samples.src.dir}/insync03/build.xml" /> + <ant antfile="${samples.src.dir}/insync04/build.xml" /> + <ant antfile="${samples.src.dir}/insync05/build.xml" /> + <ant antfile="${samples.src.dir}/insync06/build.xml" /> + <ant antfile="${samples.src.dir}/simplepush/build.xml" /> + <ant antfile="${samples.src.dir}/spring-blazeds-101/build.xml" /> + <ant antfile="${samples.src.dir}/spring-blazeds-security-101/build.xml" /> + <ant antfile="${samples.src.dir}/traderdesktop/build.xml" /> + </target> + + <target name="package" depends="compile-swfs" description=" Creates distribution war file"> + + <mkdir dir="${dist.dir}"/> + + <!-- + we don't want flex source naked in WEB-INF as that would lead to overlapping eclipse projects + instead, zip it up and then put it in the war + --> + <zip destfile="${samples-spring.war}/WEB-INF/flex-src/flex-src.zip" + comment="${manifest.Implementation-Title} ${manifest.Implementation-Version}.${label} Spring Integration Samples Flex Source Code"> + <fileset dir="${samples-spring.war}/WEB-INF/flex-src" + excludes="**/build*.xml,flex-src.zip"/> + </zip> + + <war file="${dist.dir}/samples-spring.war" + webxml="${samples-spring.war}/WEB-INF/web.xml"> + <manifest> + <attribute name="Sealed" value="${manifest.sealed}"/> + <attribute name="Implementation-Title" value="${manifest.Implementation-Title} - Spring Integration Samples Application"/> + <attribute name="Implementation-Version" value="${manifest.Implementation-Version}.${build.number}"/> + <attribute name="Implementation-Vendor" value="${manifest.Implementation-Vendor}"/> + </manifest> + <fileset dir="${samples-spring.war}" > + <exclude name="**/**/build*.xml" /> + <exclude name="**/generated/**/*"/> + <exclude name="WEB-INF/jsp/**/*" /> + <exclude name="WEB-INF/sessions/**/*" /> + <exclude name="WEB-INF/flex-src/**/*" /> + <!-- This is included in the war task already --> + <exclude name="WEB-INF/web.xml" /> + </fileset> + <fileset dir="${samples-spring.war}" includes="WEB-INF/flex-src/flex-src.zip" /> + </war> + + <copy todir="${dist.dir}/sampledb"> + <fileset dir="${basedir}/sampledb" /> + <fileset file="${hsqldb.jar}" /> + </copy> + + </target> + + <target name="clean" description="--> Removes jars and classes"> + <delete quiet="true" includeEmptyDirs="true"> + <fileset dir="${samples-spring.war}/WEB-INF/lib" includes="**/*"/> + <fileset dir="${samples-spring.war}/WEB-INF/flex/jars" includes="**/*"/> + <fileset dir="${samples-spring.war}/WEB-INF/flex/locale" includes="**/*"/> + <fileset dir="${samples-spring.war}/WEB-INF/flex/libs" includes="**/*"/> + <fileset dir="${classes.dir}" includes="**/*.class"/> + <fileset dir="${basedir}/sampledb" includes="${hsqldb.jar}"/> + <fileset file="${dist.dir}/samples-spring.war"/> + <fileset file="${samples-spring.war}/WEB-INF/flex-src/flex-src.zip"/> + <fileset dir="${samples-spring.war}/sqladmin"/> + <fileset dir="${samples-spring.war}/jmschat"/> + </delete> + </target> + + <target name="generated-clean"> + <delete includeEmptyDirs="true" quiet="true"> + <fileset dir="${samples-spring.war}" includes="**/generated/*" /> + </delete> + <delete includeEmptyDirs="true" quiet="true"> + <fileset dir="${samples-spring.war}" includes="**/generated" /> + </delete> + </target> + +</project>
