You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2008/05/18 12:18:49 UTC
svn commit: r657527 - in /incubator/rat/main/trunk/scan: build.xml
src/org/apache/rat/scan/antlib.xml
Author: rdonkin
Date: Sun May 18 03:18:36 2008
New Revision: 657527
URL: http://svn.apache.org/viewvc?rev=657527&view=rev
Log:
Convert errant tabs to spaces
Modified:
incubator/rat/main/trunk/scan/build.xml
incubator/rat/main/trunk/scan/src/org/apache/rat/scan/antlib.xml
Modified: incubator/rat/main/trunk/scan/build.xml
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/scan/build.xml?rev=657527&r1=657526&r2=657527&view=diff
==============================================================================
--- incubator/rat/main/trunk/scan/build.xml (original)
+++ incubator/rat/main/trunk/scan/build.xml Sun May 18 03:18:36 2008
@@ -14,59 +14,59 @@
-->
<project name="RAT Scan build" default="dist">
- <macrodef name="SetupBuildDirs">
- <sequential>
- <property name='home.build' value='target'/>
+ <macrodef name="SetupBuildDirs">
+ <sequential>
+ <property name='home.build' value='target'/>
<property name='vendor.id' value='org.apache'/>
<property name='vendor.name' value='Apache Software Foundation'/>
<property name='version.minor' value='0.1'/>
<property name='version.point' value=''/>
- <property name='version' value='${minor.version}${version.point}'/>
- <property name='artifact.name' value='apache-rat-scan-incubating'/>
- <mkdir dir='home.build'/>
- </sequential>
- </macrodef>
-
- <target
- name='_setup'
- description=' - prepares environment (internal) '>
- <property name='home.src' value='src'/>
-
- <SetupBuildDirs/>
- </target>
-
- <target
- name='clean'
- description=' - cleans up temporary build files'
- depends='_setup'>
- <delete dir='${home.build}'/>
- <SetupBuildDirs/>
- </target>
-
- <target
- name='assemble'
- description=' - assembles a jar containing the scan scripts'
- depends='_setup'>
- <jar
- basedir="${home.src}"
- destfile="${home.build}/${artifact.version}">
- <manifest>
- <attribute name="Extension-Name" value="rat-scan"/>
- <attribute name="Specification-Title" value="Release Audit Tool Scan"/>
- <attribute name="Specification-Vendor" value="${vendor.name}"/>
- <attribute name="Specification-Version" value="${version.minor}"/>
- <attribute name="Implementation-Vendor-Id" value="${vendor.id}"/>
- <attribute name="Implementation-Title" value="Release Audit Tool Scan"/>
- <attribute name="Implementation-Vendor" value="${vendor.name}"/>
- <attribute name="Implementation-Version" value="${version}"/>
- </manifest>
- </jar>
- </target>
-
- <target
- name='dist'
- description=' - creates a distribution'
- depends='clean, _setup'>
+ <property name='version' value='${minor.version}${version.point}'/>
+ <property name='artifact.name' value='apache-rat-scan-incubating'/>
+ <mkdir dir='home.build'/>
+ </sequential>
+ </macrodef>
+
+ <target
+ name='_setup'
+ description=' - prepares environment (internal) '>
+ <property name='home.src' value='src'/>
+
+ <SetupBuildDirs/>
+ </target>
+
+ <target
+ name='clean'
+ description=' - cleans up temporary build files'
+ depends='_setup'>
+ <delete dir='${home.build}'/>
+ <SetupBuildDirs/>
+ </target>
+
+ <target
+ name='assemble'
+ description=' - assembles a jar containing the scan scripts'
+ depends='_setup'>
+ <jar
+ basedir="${home.src}"
+ destfile="${home.build}/${artifact.version}">
+ <manifest>
+ <attribute name="Extension-Name" value="rat-scan"/>
+ <attribute name="Specification-Title" value="Release Audit Tool Scan"/>
+ <attribute name="Specification-Vendor" value="${vendor.name}"/>
+ <attribute name="Specification-Version" value="${version.minor}"/>
+ <attribute name="Implementation-Vendor-Id" value="${vendor.id}"/>
+ <attribute name="Implementation-Title" value="Release Audit Tool Scan"/>
+ <attribute name="Implementation-Vendor" value="${vendor.name}"/>
+ <attribute name="Implementation-Version" value="${version}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target
+ name='dist'
+ description=' - creates a distribution'
+ depends='clean, _setup'>
- </target>
+ </target>
</project>
\ No newline at end of file
Modified: incubator/rat/main/trunk/scan/src/org/apache/rat/scan/antlib.xml
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/scan/src/org/apache/rat/scan/antlib.xml?rev=657527&r1=657526&r2=657527&view=diff
==============================================================================
--- incubator/rat/main/trunk/scan/src/org/apache/rat/scan/antlib.xml (original)
+++ incubator/rat/main/trunk/scan/src/org/apache/rat/scan/antlib.xml Sun May 18 03:18:36 2008
@@ -13,141 +13,141 @@
limitations under the License.
-->
<antlib>
-
- <macrodef
- name='AuditSetup'
- description='Common preparation for audit'>
- <tstamp>
- <format property="org.apache.rat.scan.ISO_TODAY" pattern="yyyy-MM-dd" locale="en,GMT"/>
- </tstamp>
- <property name='org.apache.rat.scan.data.xml' location='audit/incubator-${org.apache.rat.scan.ISO_TODAY}.xml'/>
- <property name='org.apache.rat.scan.data.asc' location='audit/incubator-${org.apache.rat.scan.ISO_TODAY}.xml.asc'/>
- <property name='org.apache.rat.scan.in' location='audit/changes-${org.apache.rat.scan.ISO_TODAY}.xml'/>
- <property name='org.apache.rat.scan.out.txt' location='site-author/audit/changes-${org.apache.rat.scan.ISO_TODAY}.txt'/>
- <property name='org.apache.rat.scan.out.xml' location='site-author/audit/changes-${org.apache.rat.scan.ISO_TODAY}.xml'/>
- <property name='org.apache.rat.scan.properties' location='audit.properties'/>
- <property name='org.apache.rat.scan.publish.txt' location='site-publish/audit/changes-${org.apache.rat.scan.ISO_TODAY}.txt'/>
- <property name='org.apache.rat.scan.publish.html' location='site-publish/audit/changes-${org.apache.rat.scan.ISO_TODAY}.html'/>
+
+ <macrodef
+ name='AuditSetup'
+ description='Common preparation for audit'>
+ <tstamp>
+ <format property="org.apache.rat.scan.ISO_TODAY" pattern="yyyy-MM-dd" locale="en,GMT"/>
+ </tstamp>
+ <property name='org.apache.rat.scan.data.xml' location='audit/incubator-${org.apache.rat.scan.ISO_TODAY}.xml'/>
+ <property name='org.apache.rat.scan.data.asc' location='audit/incubator-${org.apache.rat.scan.ISO_TODAY}.xml.asc'/>
+ <property name='org.apache.rat.scan.in' location='audit/changes-${org.apache.rat.scan.ISO_TODAY}.xml'/>
+ <property name='org.apache.rat.scan.out.txt' location='site-author/audit/changes-${org.apache.rat.scan.ISO_TODAY}.txt'/>
+ <property name='org.apache.rat.scan.out.xml' location='site-author/audit/changes-${org.apache.rat.scan.ISO_TODAY}.xml'/>
+ <property name='org.apache.rat.scan.properties' location='audit.properties'/>
+ <property name='org.apache.rat.scan.publish.txt' location='site-publish/audit/changes-${org.apache.rat.scan.ISO_TODAY}.txt'/>
+ <property name='org.apache.rat.scan.publish.html' location='site-publish/audit/changes-${org.apache.rat.scan.ISO_TODAY}.html'/>
- </macrodef>
-
-
- <macrodef
- name='DoAudit'
- description='Connects to people.apache.org and audits incubator releases'>
- <sequential>
- <echo>
+ </macrodef>
+
+
+ <macrodef
+ name='DoAudit'
+ description='Connects to people.apache.org and audits incubator releases'>
+ <sequential>
+ <echo>
Audit pipes a python script to people.apache.org.
The connection is made over ssh to alias named apache.
Configure ssh appropriately.
Before running, add a key to the agent.
- </echo>
- <echo>
+ </echo>
+ <echo>
GnuPG is used to create digital signatures of the audit
records. These allow the records to be trusted
without the need to trust that the repository
is secure. gpg must be on the PATH.
This script has been tested using gpg (GnuPG) 2.0.7
- </echo>
- <echo>
+ </echo>
+ <echo>
A signed copy of the results will be posted to the
incubator general list if mail is available.
Copy EXAMPLE.mail.properties to mail.properties
then edit.
- </echo>
- <echo>
+ </echo>
+ <echo>
Until someone steps up with a port,
this script is unlikely to work on windows
(or - for that matter - AmigaOS, CPM...)
- </echo>
- <echo>
+ </echo>
+ <echo>
Auditing may take a few minutes. Time for a tea...
- </echo>
-
- <exec executable="python">
- <arg line='connect.py'/>
- </exec>
-
- <exec executable="svn">
- <arg line="add ${org.apache.rat.scan.data.xml} ${org.apache.rat.scan.data.asc} ${org.apache.rat.scan.in}"/>
- </exec>
- </sequential>
- </macrodef>
-
- <macrodef
- name='PublishAuditReports'
- description='Generates audit web reports'>
- <sequential>
- <delete file="${org.apache.rat.scan.changes}"/>
- <xslt
- style="org/apache/rat/scan/summary-txt.xsl"
- in='${org.apache.rat.scan.in}'
- out='${org.apache.rat.scan.out.txt}'></xslt>
- <delete file="${org.apache.rat.scan.out.xml}"/>
- <xslt
- style="org/apache/rat/scan/summary-web.xsl"
- in='${org.apache.rat.scan.in}'
- out='${org.apache.rat.scan.out.xml}'></xslt>
- <xslt
- style="org/apache/rat/scan/ant-property.xsl"
- in='${org.apache.rat.scan.in}'
- out='${org.apache.rat.scan.properties}'></xslt>
-
- <antcall target="docs"></antcall>
-
- <exec executable='gpg'>
- <arg line='--output ${org.apache.rat.scan.publish.txt}.asc --clearsign ${org.apache.rat.scan.publish.txt}'/>
- </exec>
- <move
- file="${org.apache.rat.scan.publish.txt}.asc"
- tofile="${org.apache.rat.scan.publish.txt}"
- overwrite="true"/>
-
- <exec executable="svn">
- <arg line="add ${org.apache.rat.scan.out.txt} ${org.apache.rat.scan.out.xml} ${org.apache.rat.scan.publish.html} ${org.apache.rat.scan.publish.txt}"/>
- </exec>
- </sequential>
- </macrodef>
-
- <macrodef
- name='MailAuditReport'
- description='Mails audit report'>
- <sequential>
- <echo>Mailing results to list...</echo>
- <mail
- from='${mail.from}'
- subject='Release Audit Report ${ISO_TODAY}'
- mailhost='${mail.mailhost}'
- mailport='${mail.mailport}'
- user='${mail.user}'
- password='${mail.password}'>
- <message
- src="${file.audit.publish.txt}"
- charset="iso-8859-1"
- mimetype="text/plain"/>
- <to
- address="general@incubator.apache.org"
- name="Incubator General Mailing List"/>
- </mail>
- </sequential>
- </macrodef>
-
- <macrodef
- name='CheckForChanges'
- description='Checks whether artifacts were changed since the last scan'>
- <attribute name='property'/>
- <sequential>
- <property file="${file.audit.properties}" prefix="org.apache.rat.scan.generated"/>
-
- <condition property="@{property}">
- <and>
- <isset property="generated.is_changed" />
- <istrue value="${generated.is_changed}" />
- </and>
- </condition>
-
- <fail unless="completely-configured.audit.mail">Required property is missing from mail.properties</fail>
- </sequential>
- </macrodef>
-
+ </echo>
+
+ <exec executable="python">
+ <arg line='connect.py'/>
+ </exec>
+
+ <exec executable="svn">
+ <arg line="add ${org.apache.rat.scan.data.xml} ${org.apache.rat.scan.data.asc} ${org.apache.rat.scan.in}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <macrodef
+ name='PublishAuditReports'
+ description='Generates audit web reports'>
+ <sequential>
+ <delete file="${org.apache.rat.scan.changes}"/>
+ <xslt
+ style="org/apache/rat/scan/summary-txt.xsl"
+ in='${org.apache.rat.scan.in}'
+ out='${org.apache.rat.scan.out.txt}'></xslt>
+ <delete file="${org.apache.rat.scan.out.xml}"/>
+ <xslt
+ style="org/apache/rat/scan/summary-web.xsl"
+ in='${org.apache.rat.scan.in}'
+ out='${org.apache.rat.scan.out.xml}'></xslt>
+ <xslt
+ style="org/apache/rat/scan/ant-property.xsl"
+ in='${org.apache.rat.scan.in}'
+ out='${org.apache.rat.scan.properties}'></xslt>
+
+ <antcall target="docs"></antcall>
+
+ <exec executable='gpg'>
+ <arg line='--output ${org.apache.rat.scan.publish.txt}.asc --clearsign ${org.apache.rat.scan.publish.txt}'/>
+ </exec>
+ <move
+ file="${org.apache.rat.scan.publish.txt}.asc"
+ tofile="${org.apache.rat.scan.publish.txt}"
+ overwrite="true"/>
+
+ <exec executable="svn">
+ <arg line="add ${org.apache.rat.scan.out.txt} ${org.apache.rat.scan.out.xml} ${org.apache.rat.scan.publish.html} ${org.apache.rat.scan.publish.txt}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <macrodef
+ name='MailAuditReport'
+ description='Mails audit report'>
+ <sequential>
+ <echo>Mailing results to list...</echo>
+ <mail
+ from='${mail.from}'
+ subject='Release Audit Report ${ISO_TODAY}'
+ mailhost='${mail.mailhost}'
+ mailport='${mail.mailport}'
+ user='${mail.user}'
+ password='${mail.password}'>
+ <message
+ src="${file.audit.publish.txt}"
+ charset="iso-8859-1"
+ mimetype="text/plain"/>
+ <to
+ address="general@incubator.apache.org"
+ name="Incubator General Mailing List"/>
+ </mail>
+ </sequential>
+ </macrodef>
+
+ <macrodef
+ name='CheckForChanges'
+ description='Checks whether artifacts were changed since the last scan'>
+ <attribute name='property'/>
+ <sequential>
+ <property file="${file.audit.properties}" prefix="org.apache.rat.scan.generated"/>
+
+ <condition property="@{property}">
+ <and>
+ <isset property="generated.is_changed" />
+ <istrue value="${generated.is_changed}" />
+ </and>
+ </condition>
+
+ <fail unless="completely-configured.audit.mail">Required property is missing from mail.properties</fail>
+ </sequential>
+ </macrodef>
+
</antlib>