Rat (Release Audit Tool) results

The following document contains the results of Rat (Release Audit Tool).

*****************************************************
Summary
-------
Generated at: 2017-09-06T08:02:01+02:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 61

Apache Licensed: 59
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

2 Unknown Licenses

*******************************

Unapproved licenses:

  /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/DateTextFieldHandler.java
  /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java

*******************************

Archives:

*****************************************************
  Files with Apache License headers will be marked AL
  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
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/pom.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Attributes.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/DefaultTagHandlerFactory.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/DefaultTheme.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/JavaTemplateEngine.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractMessageListHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractTagHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/ActionErrorHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/ActionMessageHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AnchorHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxListHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CommonAttributesHandler.java
 !????? /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/DateTextFieldHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/DynamicAttributesHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/EmptyHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/FieldErrorHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/FileHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/FormHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/HeadHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/HiddenHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/LabelHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/PasswordHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/ResetHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/ScriptingEventsHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SimpleTheme.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextAreaHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TokenHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/TagGenerator.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/TagHandler.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/TagHandlerFactory.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/TagSerializer.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/Theme.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/XHTMLTagSerializer.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/resources/struts-plugin.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/site/site.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractCommonAttributesTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionErrorTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionMessageTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/Bean.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
 !????? /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FieldErrorTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FileTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FormTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HeadTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HiddenTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LabelTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/PasswordTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ResetTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SelectTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SubmitTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextAreaTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextFieldTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
 
*****************************************************
 Printing headers for files without AL header...
 
 
=======================================================================
==/Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/DateTextFieldHandler.java
=======================================================================
package org.apache.struts2.views.java.simple;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

import org.apache.struts2.interceptor.DateTextFieldInterceptor.DateWord;
import org.apache.struts2.views.java.Attributes;
import org.apache.struts2.views.java.TagGenerator;


public class DateTextFieldHandler extends AbstractTagHandler implements TagGenerator {

    @SuppressWarnings("unchecked")
	public void generate() throws IOException {
        Map<String, Object> params = context.getParameters();
        Attributes attr = null;

        // Get format
        String format = (String)params.get("format");
        String id = (String)params.get("id");
        String name = (String)params.get("name");
        if (id == null) {
        	id = name;
        }
        Date date = (Date)params.get("nameValue");
        
        if (format != null) {
        	// Verify if it's correct
            new SimpleDateFormat(format);
            
            attr = new Attributes();
            attr.addIfExists("id", id);
            super.start("div", attr);
            
            Character antC = null;
            for (Character c : format.toCharArray()) {
            	
            	try {
            		DateWord dateWord = DateWord.get(c);
            		if (!c.equals(antC)) {
            			
            			String cssClass = "date_" + dateWord.getDescription();
            			if (params.get("cssClass") != null) {
            				cssClass += " " + params.get("cssClass");
            			}
            			
            			attr = new Attributes();
            	        attr.add("type", "text")

=======================================================================
==/Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java
=======================================================================
package org.apache.struts2.views.java.simple;

import org.apache.struts2.components.DateTextField;
import org.apache.struts2.components.UIBean;

public class DateTextFieldTest extends AbstractCommonAttributesTest {

    private DateTextField tag;

    public void testRenderDateTextField() {
    	tag.setId("id");
        tag.setName("name");
        tag.setFormat("yyyy-MM-dd");

        tag.evaluateParams();
        map.putAll(tag.getParameters());
        theme.renderTag(getTagName(), context);
        String output = writer.getBuffer().toString();
        String expected = s("<div id='id'>" +
        		"<input type='text' class='date_year' size='4' maxlength='4' id='__year_id' name='__year_name'></input>" +
        		"-<input type='text' class='date_month' size='2' maxlength='2' id='__month_id' name='__month_name'></input>" +
        		"-<input type='text' class='date_day' size='2' maxlength='2' id='__day_id' name='__day_name'></input></div>");
        assertEquals(expected, output);
    }
    
    @Override
    public void testRenderTextFieldScriptingAttrs() throws Exception { }
    
    @Override
    public void testRenderTextFieldCommonAttrs() throws Exception { }

    @Override
    public void testRenderTextFieldDynamicAttrs() throws Exception { }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.tag = new DateTextField(stack, request, response);
    }

    @Override
    protected UIBean getUIBean() {
        return tag;
    }

    @Override
    protected String getTagName() {
        return "datetextfield";
    }