forked from apache/tomee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rat.xml
208 lines (187 loc) · 14.3 KB
/
rat.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?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 default="scan" name="Ant task examples">
<description>
A few examples of using the Ant task, for more examples see the
AntUnit tests
</description>
<target name="scan" depends="-taskdef"
description="runs the task over RAT's source tree">
<rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
<fileset dir=".">
<patternset id="exclusions">
<exclude name="**/.settings/**"/>
<exclude name="**/.idea/**"/>
<exclude name="**/overlays/*.info"/>
<exclude name="**/*.json"/>
<exclude name="**/target/**"/>
<exclude name="**/*.iml"/>
<exclude name="**/*.log"/>
<exclude name="**/*.rej"/>
<exclude name="**/*.orig"/>
<exclude name="**/.project"/>
<exclude name="**/.classpath"/>
<exclude name="**/README.md"/>
<exclude name="**/README.mdtext"/>
<exclude name="**/LoadableExtension"/>
<exclude name="**/jakarta.enterprise.inject.spi.Extension"/>
<exclude name="**/*.handlebars"/>
<exclude name="report.txt"/>
<exclude name="LIBRARIES"/>
<exclude name="shade/quartz/dependency-reduced-pom.xml"/>
<exclude name="assembly/openejb-lite/dependency-reduced-pom.xml"/>
<exclude name="container/openejb-core/src/test/resources/cdi-login.config"/>
<exclude name="tomee/tomee-deb/src/main/resources/changelog.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/precompiled-changelog"/>
<exclude name="tomee/tomee-deb/src/main/resources/data/copyright.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/control/control.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/changelog_entry.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/control/lib_control.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/control/control.template"/>
<exclude name="tomee/tomee-deb/src/main/resources/copyright.template"/>
<exclude name="tomee/tomee-webaccess/src/test/resources/test/log/**"/>
<exclude name="utils/log4j2-tomee/src/main/resources/META-INF/org.apache.openejb.extension"/>
<exclude name="utils/openejb-core-eclipselink/src/main/resources/META-INF/org.apache.openejb.persistence.PersistenceBootstrap.provider"/>
<exclude name="utils/openejb-core-hibernate/src/main/resources/META-INF/org.apache.openejb.persistence.PersistenceBootstrap.provider"/>
<exclude name="assembly/openejb-standalone/src/main/resources/service.readme.txt"/>
<exclude name="tomee/apache-tomee/src/main/resources/META-INF/services/jakarta.ejb.spi.EJBContainerProvider"/>
<exclude name="tomee/tomee-overlay-runner/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer"/>
<exclude name="arquillian/arquillian-tomee-embedded/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension"/>
<exclude name="arquillian/arquillian-tomee-embedded/src/main/resources/META-INF/services/org.jboss.arquillian.container.test.spi.RemoteLoadableExtension" />
<exclude name="arquillian/arquillian-tomee-remote/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension"/>
<exclude name="arquillian/arquillian-tomee-tests/src/test/resources/org/apache/openejb/arquillian/tests/jaxrs/foo"/>
<exclude name="arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/resources/test.getresources"/>
<exclude name="arquillian/arquillian-tomee-webapp-remote/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension"/>
<exclude name="arquillian/arquillian-openejb-embedded/src/main/resources/META-INF/services/cucumber.runtime.io.ResourceIteratorFactory" />
<exclude name="arquillian/arquillian-openejb-embedded/src/main/resources/META-INF/services/org.apache.openejb.server.httpd.EmbeddedServletContext$ResourceProvider" />
<exclude name="arquillian/arquillian-openejb-embedded/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension" />
<exclude name="arquillian/arquillian-openejb-embedded-4/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension" />
<exclude name="arquillian/arquillian-openejb-embedded-4/src/main/resources/META-INF/services/cucumber.runtime.io.ResourceIteratorFactory" />
<exclude name="container/openejb-jee/src/main/xsdlist/xsdlist.txt"/>
<exclude name="container/openejb-core/src/main/resources/default.exclusions"/>
<exclude name="container/openejb-core/src/main/resources/META-INF/org.apache.openejb.cipher.PasswordCipher/cdi"/>
<exclude name="container/openejb-core/src/main/resources/META-INF/services/jakarta.ejb.spi.EJBContainerProvider"/>
<exclude name="container/openejb-core/src/test/resources/META-INF/multiple"/>
<exclude name="container/openejb-core/src/test/resources/META-INF/org.apache.openejb.cipher.PasswordCipher/reverse"/>
<exclude name="container/openejb-core/src/test/resources/META-INF/services/jakarta.validation.spi.ValidationProvider"/>
<exclude name="container/openejb-core/src/test/resources/META-INF/services/org.apache.openejb.core.security.jaas.LoginProvider" />
<exclude name="container/openejb-junit/src/main/resources/META-INF/openejb-test-login.config"/>
<exclude name="osgi/openejb-core-osgi/src/main/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension"/>
<exclude name="server/openejb-cxf/src/main/resources/META-INF/cxf.extension"/>
<exclude name="server/openejb-cxf-rs/src/main/resources/META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate"/>
<exclude name="server/openejb-ssh/src/test/key/ssh-key.ser"/>
<exclude name="server/openejb-ejbd/activemq-data/**"/>
<exclude name="server/openejb-http/activemq-data/**"/>
<exclude name="examples/datasource-ciphered-password/src/test/resources/META-INF/beans.xml"/>
<exclude name="examples/decorators/src/main/resources/META-INF/beans.xml"/>
<exclude name="examples/webapps/rest-example/TODO"/>
<exclude name="examples/cucumber-jvm/src/test/resources/org/superbiz/cucumber/hello.feature"/>
<exclude name="examples/deltaspike-configproperty/src/main/resources/META-INF/services/org.apache.deltaspike.core.spi.config.ConfigSourceProvider" />
<exclude name="examples/server-events/src/main/resources/META-INF/org.apache.openejb.extension" />
<exclude name="examples/testing-security-3/src/main/resources/META-INF/services/org.apache.openejb.core.security.jaas.LoginProvider" />
<exclude name="utils/openejb-mockito/src/main/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension"/>
<exclude name="tck/cdi-embedded/src/test/resources/META-INF/org.apache.openejb.extension"/>
<exclude name="tck/cdi-embedded/src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension"/>
<exclude name="tomee/tomee-catalina/src/main/resources/META-INF/services/jakarta.websocket.server.ServerEndpointConfig$Configurator"/>
<exclude name="tomee/tomee-embedded/src/test/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer"/>
<exclude name="tomee/tomee-juli/src/main/resources/META-INF/services/org.apache.juli.logging.Log"/>
<exclude name="tomee/tomee-myfaces/src/main/resources/META-INF/services/org.apache.myfaces.spi.WebConfigProvider"/>
<exclude name="tomee/apache-tomee/src/main/resources/service.readme.txt"/>
<exclude name="tomee/apache-tomee-deb/src/main/resources/prerm"/>
<exclude name="tomee/apache-tomee-deb/src/main/resources/postinst"/>
<exclude name="tomee/apache-tomee-deb/src/main/resources/control"/>
<exclude name="tomee/tomee-embedded/src/main/resources/META-INF/services/jakarta.ejb.spi.EJBContainerProvider"/>
<exclude name="tomee/tomee-embedded/src/main/resources/META-INF/services/org.apache.webbeans.spi.plugins.OpenWebBeansPlugin"/>
<exclude name="tomee/tomee-myfaces/src/main/resources/META-INF/services/org.apache.myfaces.spi.AnnotationProviderFactory"/>
<exclude name="tomee/tomee-myfaces/src/main/resources/META-INF/services/org.apache.myfaces.spi.FacesConfigurationProviderFactory" />
<exclude name="tomee/tomee-myfaces/src/main/resources/META-INF/services/org.apache.myfaces.spi.FacesConfigResourceProviderFactory"/>
<exclude name="tomee/tomee-mojarra/src/main/resources/META-INF/services/com.sun.faces.spi.injectionprovider" />
<exclude name="tomee/tomee-jdbc/src/test/resources/META-INF/org.apache.openejb.resource.jdbc.cipher.PasswordCipher/Mock" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/require/**" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/bootstrap/**" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/codemirror/**" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/handlebars/**" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/jquery/**" />
<exclude name="tomee/tomee-webapp/src/main/webapp/app/lib/less/**" />
<!-- TODO check if that's really excluded -->
<exclude name="tomee/tomee-webapp/src/main/webapp/app/js/templates/**" />
<!-- user-owned config files. see httpds default.httpd.conf for precident -->
<exclude name="**/default.openejb.conf"/>
<exclude name="**/groups.properties"/>
<exclude name="**/users.properties"/>
<exclude name="**/logging.properties"/>
<exclude name="**/login.config"/>
<!-- license in this file results in bad generated release notes -->
<exclude name="**/release-notes.vm"/>
<!-- empty placeholder -->
<exclude name="**/assembly/openejb-standalone/src/main/resources/DATA-README.txt"/>
<!-- tiny plugin descriptors - some user owned -->
<exclude name="**/META-INF/org.apache.openejb.cli/**"/>
<exclude name="**/META-INF/org.apache.openejb.client.IdentityResolver/**"/>
<exclude name="**/META-INF/org.apache.openejb.server.ServerService/**"/>
<exclude name="**/META-INF/org.apache.openejb.resource.jdbc.plugin.DataSourcePlugin/**"/>
<exclude name="**/META-INF/org.apache.openejb.resource.jdbc.cipher.PasswordCipher/**"/>
<exclude name="**/META-INF/services/org/apache/activemq/broker/**"/>
<exclude name="**/META-INF/org.apache.openejb.tomcat/ServerClassLoader"/>
<!-- insignificant test descriptors -->
<exclude name="**/container/openejb-core/src/test/resources/altddPU1/**/*.xml"/>
<exclude name="**/container/openejb-core/src/test/resources/altddapp1/**/*.xml"/>
<exclude name="**/container/openejb-core/src/test/resources/altddapp2/**/*.xml"/>
<exclude name="**/container/openejb-core/src/test/resources/altddapp2/**/*.properties"/>
<exclude name="**/container/openejb-core/src/test/resources/convert/**/*.xml"/>
<exclude name="**/container/openejb-core/src/test/resources/mixedcase/**/*.xml"/>
<exclude name="**/container/openejb-spring/src/test/resources/META-INF/ejb-jar.xml"/>
<exclude name="**/container/openejb-jee-accessors/src/test/resources/*.xml"/>
<!-- empty or insignificant descriptors from examples -->
<exclude name="**/examples/**/src/*/resources/META-INF/ejb-jar.xml"/>
<exclude name="**/examples/**/src/*/resources/META-INF/application-client.xml"/>
<exclude name="**/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml"/>
<exclude name="**/examples/simple-cmp2/src/main/resources/META-INF/openejb-jar.xml"/>
<exclude name="**/examples/webapps/struts/src/main/webapp/prelude.jspf"/>
<!-- boiler plate -->
<exclude name="**/examples/webservice-ws-security/src/*/resources/META-INF/CalculatorImpl*.properties"/>
<!-- W3C licensed -->
<exclude name="**/container/openejb-jee/src/main/resources/META-INF/schema/xml.xsd"/>
<exclude name="**/server/openejb-axis/src/main/resources/META-INF/schema/soap_encoding_1_1.xsd"/>
<!-- CDDL licensed -->
<exclude name="container/openejb-jee/src/main/resources/META-INF/schema/*.xsd"/>
<!-- MIT licensed -->
<exclude name="utils/livereload-tomee/src/main/resources/js/livereload.js"/>
</patternset>
</fileset>
</rat:report>
</target>
<condition property="rat.already.downloaded">
<not><available file="${java.io.tmpdir}/rat.zip"/></not>
</condition>
<target name="download-rat" if="rat.already.downloaded">
<get src="http://archive.apache.org/dist/incubator/rat/apache-rat-incubating-current-bin.zip" dest="${java.io.tmpdir}/rat.zip"/>
</target>
<target name="-taskdef" depends="download-rat">
<unzip src="${java.io.tmpdir}/rat.zip" dest="${java.io.tmpdir}/rat"/>
<typedef resource="org/apache/rat/anttasks/antlib.xml"
uri="antlib:org.apache.rat.anttasks">
<classpath>
<fileset dir="${java.io.tmpdir}/rat/">
<include name="**/apache-rat*.jar"/>
<include name="**/lib/**/commons-*.jar"/>
</fileset>
</classpath>
</typedef>
</target>
</project>