Author: solomax
Date: Tue Aug 7 12:38:21 2012
New Revision: 1370212
URL: http://svn.apache.org/viewvc?rev=1370212&view=rev
Log:
Apache RAT is added
Added:
incubator/openmeetings/trunk/plugins/zimbra_plugin/ivy.xml
incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xml
incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xsd
Modified:
incubator/openmeetings/trunk/plugins/zimbra_plugin/build.xml
Modified: incubator/openmeetings/trunk/plugins/zimbra_plugin/build.xml
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/zimbra_plugin/build.xml?rev=1370212&r1=1370211&r2=1370212&view=diff
==============================================================================
--- incubator/openmeetings/trunk/plugins/zimbra_plugin/build.xml (original)
+++ incubator/openmeetings/trunk/plugins/zimbra_plugin/build.xml Tue Aug 7
12:38:21 2012
@@ -14,7 +14,10 @@
-->
<!DOCTYPE project>
<project name="openmeetings zimbra plugin" basedir="./" default="dist-bin"
- xmlns="antlib:org.apache.tools.ant">
+ xmlns="antlib:org.apache.tools.ant"
+ xmlns:rat="antlib:org.apache.rat.anttasks"
+ xmlns:ivy="antlib:org.apache.ivy.ant"
+ >
<property name="dist.dir" value="dist" />
<property name="project.version" value="1.0" />
@@ -58,4 +61,41 @@
<delete includeemptydirs="true" dir="${dist.dir}" />
</target>
-</project>
\ No newline at end of file
+ <!-- RAT -->
+ <property name="ivy.install.version" value="2.3.0-rc1" />
+ <property name="project.lib.dir" value="${dist.dir}/lib" />
+ <property name="ivy.jar.path"
value="${project.lib.dir}/ivy-${ivy.install.version}.jar" />
+
+ <available file="${ivy.jar.path}" type="file" property="ivy.installed"
/>
+ <target name="-download-ivy" unless="ivy.installed">
+ <mkdir dir="${project.lib.dir}"/>
+ <echo message="Downloading ivy..."/>
+ <get
src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
+ dest="${ivy.jar.path}" usetimestamp="true"/>
+ </target>
+
+ <path id="rat.classpath">
+ <fileset dir="${project.lib.dir}" includes="*.jar" />
+ </path>
+ <target name="-availability-check" unless="red5.installed"
description="Check which libraries need to be retrieved">
+ <mkdir dir="${project.lib.dir}"/>
+ <available classpathref="rat.classpath"
classname="org.apache.rat.Report" property="rat.installed" />
+ </target>
+ <!-- Check for rat libraries -->
+ <target name="-retrieve-rat" unless="rat.installed"
description="Retrieves the libraries if needed" depends="-availability-check,
-download-ivy">
+ <taskdef uri="antlib:org.apache.ivy.ant"
resource="org/apache/ivy/ant/antlib.xml" classpath="${ivy.jar.path}"/>
+
+ <ivy:resolve file="ivy.xml" checkIfChanged="false"
transitive="false" />
+ <ivy:retrieve
pattern="${project.lib.dir}/[artifact]-[type]-[revision].[ext]" />
+ </target>
+
+ <target name="report_rat" depends="-retrieve-rat">
+ <taskdef uri="antlib:org.apache.rat.anttasks"
resource="org/apache/rat/anttasks/antlib.xml" classpathref="rat.classpath" />
+
+ <rat:report>
+ <fileset dir="${basedir}">
+ <exclude name="*dist/**" />
+ </fileset>
+ </rat:report>
+ </target>
+</project>
Added: incubator/openmeetings/trunk/plugins/zimbra_plugin/ivy.xml
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/zimbra_plugin/ivy.xml?rev=1370212&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/zimbra_plugin/ivy.xml (added)
+++ incubator/openmeetings/trunk/plugins/zimbra_plugin/ivy.xml Tue Aug 7
12:38:21 2012
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<ivy-module version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+ <info organisation="apache" module="openmeetings" />
+ <configurations defaultconfmapping="default">
+ <conf name="default" />
+ </configurations>
+ <dependencies>
+ <dependency org="org.apache.rat" name="apache-rat-core"
rev="0.8" transitive="false">
+ <include type="jar" />
+ </dependency>
+ <dependency org="org.apache.rat" name="apache-rat-tasks"
rev="0.8" transitive="false">
+ <include type="jar" />
+ </dependency>
+ <dependency org="commons-cli" name="commons-cli" rev="1.2"
transitive="false">
+ <include type="jar" />
+ </dependency>
+ <dependency org="commons-io" name="commons-io" rev="2.1"
transitive="false">
+ <include type="jar" />
+ </dependency>
+ <dependency org="org.apache.commons" name="commons-collections"
rev="3.2.1">
+ <include type="jar" />
+ </dependency>
+ <dependency org="commons-lang" name="commons-lang" rev="2.6"
transitive="false">
+ <include type="jar" />
+ </dependency>
+ </dependencies>
+</ivy-module>
+
Added: incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xml
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xml?rev=1370212&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xml (added)
+++ incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xml Tue Aug
7 12:38:21 2012
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<ivysettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="ivysettings.xsd">
+ <settings defaultResolver="chain"/>
+ <resolvers>
+ <chain name="chain">
+ <ibiblio name="central" m2compatible="true"/>
+ </chain>
+ </resolvers>
+</ivysettings>
+
Added: incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xsd
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xsd?rev=1370212&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xsd (added)
+++ incubator/openmeetings/trunk/plugins/zimbra_plugin/ivysettings.xsd Tue Aug
7 12:38:21 2012
@@ -0,0 +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.
+
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
+ <xs:element name="ivysettings">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="settings"/>
+ <xs:element ref="resolvers"/>
+ <xs:element ref="triggers"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="settings">
+ <xs:complexType>
+ <xs:attribute name="defaultResolver" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="resolvers">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="chain"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="chain">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="ibiblio"/>
+ <xs:element maxOccurs="unbounded" ref="url"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ibiblio">
+ <xs:complexType>
+ <xs:attribute name="m2compatible" use="required" type="xs:boolean"/>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:attribute name="root" type="xs:anyURI"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="url">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="artifact"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="artifact">
+ <xs:complexType>
+ <xs:attribute name="pattern" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="triggers">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="ant-call"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ant-call">
+ <xs:complexType>
+ <xs:attribute name="event" use="required" type="xs:NCName"/>
+ <xs:attribute name="filter" use="required"/>
+ <xs:attribute name="prefix" use="required" type="xs:NCName"/>
+ <xs:attribute name="target" use="required" type="xs:NMTOKEN"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>