The following document contains the results of RAT (Release Audit Tool).
*****************************************************
Summary
-------
Notes: 0
Binaries: 0
Archives: 0
Standards: 11
Apache Licensed: 2
Generated Documents: 0
JavaDocs are generated and so license header is optional
Generated files do not required license headers
9 Unknown Licenses
*******************************
Archives (+ indicates readable, $ unreadable):
*****************************************************
Files with AL headers will be marked L
Binary files (which do not require AL headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc will be marked N
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/pom.xml
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/java/actions/osgi/BundlesAction.java
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java
AL /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/java/actions/osgi/Message.java
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/bundles.ftl
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello-convention.ftl
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello.ftl
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello.vm
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/home.ftl
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/META-INF/spring/applicationContext.xml
!????? /Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/struts.xml
*****************************************************
Printing headers for files without AL header...
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/pom.xml
=======================================================================
<?xml version="1.0" encoding="UTF-8"?>
<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.struts</groupId>
<artifactId>struts2-osgi-bundles</artifactId>
<version>2.3.8</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-osgi-demo-bundle</artifactId>
<packaging>bundle</packaging>
<name>Struts 2 OSGi Demo Bundle</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_8/bundles/demo</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_8/bundles/demo</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_8/bundles/demo</url>
</scm>
<dependencies>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-tools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/java/actions/osgi/HelloWorldAction.java
=======================================================================
package actions.osgi;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ResultPath;
import org.apache.struts2.osgi.interceptor.BundleContextAware;
import org.apache.struts2.osgi.interceptor.ServiceAware;
import org.osgi.framework.BundleContext;
import java.util.List;
@ResultPath("/content")
public class HelloWorldAction extends ActionSupport {
private Message message;
@Action("hello-convention")
public String execute() {
return SUCCESS;
}
public Message getMessage() {
return message;
}
public void setMessage(Message message) {
this.message = message;
}
public String getSimpleMessage() {
return "Hello!!!";
}
public String toString() {
StringBuilder sb = new StringBuilder("{message:");
sb.append(message != null ? message.getText() : "null");
sb.append("}");
return sb.toString();
}
}
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/bundles.ftl
=======================================================================
<html>
<head>
<title>OSGi integration</title>
</head>
<body>
This action was mapped by <b>Convention</b>, and shows how to get access to the <b>BundleContext</b>
and registered services
<br />
Spring Application Contexts: ${applicationContextsCount!}
<br>
Bundles List:
<ul>
<#list bundles as bundle>
<li>${bundle.symbolicName!}</li>
</#list>
</ul>
</body>
</html>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello-convention.ftl
=======================================================================
<html>
<head>
<title>Action mapped by the Convention plugin</title>
</head>
<body>
This is an action mapped by the Convention plugin, using a FreeMarker result.
<br />
Message from Action: ${simpleMessage}
</body>
</html>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello.ftl
=======================================================================
<html>
<head>
<title>Action mapped by the XML configurationn</title>
</head>
<body>
This is an action mapped by XML configuration, using a <b>FreeMarker</b> result.
<br />
Message from Action: ${message.text}
</body>
</html>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/hello.vm
=======================================================================
<html>
<head>
<title>Action mapped by the XML configurationn</title>
</head>
<body>
This is an action mapped by XML configuration, using a <b>Velocity</b> result.
<br />
Message from Action: $message.text
</body>
</html>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/content/osgi/home.ftl
=======================================================================
<html>
<head>
<title>OSGi Demo Bundle</title>
</head>
<body>
This demo contains actions that will be packaged into an OSGi bundle and loaded by the Struts 2 OSGi plugin.
<br />
<ul>
<li><@s.a namespace="/osgi" action="hello-convention">Action mapped by the Convention plugin, with FreeMarker result</@s.a></li>
<li><@s.a namespace="/osgi" action="hello-freemarker">Action mapped by XML, with FreeMarker result</@s.a></li>
<li><@s.a namespace="/osgi" action="hello-velocity">Action mapped by XML, with Velocity result</@s.a></li>
</ul>
</body>
</html>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/META-INF/spring/applicationContext.xml
=======================================================================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<bean class="actions.osgi.Message" id="message">
<constructor-arg type="java.lang.String" value="Welcome to the OSGi plugin. You can checkout any time you like, but can never leave"/>
</bean>
<bean class="actions.osgi.HelloWorldAction" id="helloWorldAction" scope="prototype">
<property name="message" ref="message" />
</bean>
</beans>
=======================================================================
==/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/bundles/demo/src/main/resources/struts.xml
=======================================================================
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="bundle-demo" namespace="/osgi" extends="osgi-default">
<default-action-ref name="home" />
<action name="hello-velocity" class="helloWorldAction">
<result type="velocity">/content/osgi/hello.vm</result>
</action>
<action name="hello-freemarker" class="helloWorldAction">
<result type="freemarker">/content/osgi/hello.ftl</result>
</action>
<action name="home">
<result type="freemarker">/content/osgi/home.ftl</result>
</action>
</package>
</struts>