[jboss-cvs] JBossAS SVN: r104627 - in projects/annotations/tags: PAPAKI_1_0_0_BETA3 and 5 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 10 15:42:34 EDT 2010


Author: jesper.pedersen
Date: 2010-05-10 15:42:33 -0400 (Mon, 10 May 2010)
New Revision: 104627

Added:
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/tools/api/
Removed:
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml
   projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh
Log:
Papaki 1.0.0.Beta3

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3 (from rev 101761, projects/annotations/trunk)

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml
===================================================================
--- projects/annotations/trunk/build.xml	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,409 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="papaki" 
-         default="jars" 
-         basedir="." 
-         xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
-  <available classname="java.lang.management.LockInfo" property="HAVE_JDK_1.6"/>
-
-  <!-- ================================= 
-       Project              
-       ================================= -->
-  <property name="name" value="papaki"/>
-  <property name="major" value="1"/>
-  <property name="minor" value="0"/>
-  <property name="patch" value="0"/>
-  <property name="type" value="Beta3"/>
-
-  <!-- ================================= 
-       Repositories              
-       ================================= -->
-  <property name="central.repo" value="http://repo1.maven.org/maven2"/>
-  <property name="jboss.repo" value="http://repository.jboss.org/maven2"/>
-  <property name="snapshots.repo" value="http://snapshots.jboss.org/maven2"/>
-  
-  <!-- ================================= 
-       Properties              
-       ================================= -->
-  <property name="lib.dir" value="${basedir}/lib" />
-  <property name="build.dir" value="${basedir}/build" />
-  <property name="build.core.dir" value="${build.dir}/core" />
-  <property name="build.indexer.dir" value="${build.dir}/indexer" />
-  <property name="target.dir" value="${basedir}/target" />
-  <property name="tools.dir" value="${basedir}/tools" />
-  <property name="reports.dir" value="${basedir}/reports" />
-  <property name="test.dir" value="${reports.dir}" />
-
-  <property name="javac.debug" value="on" />
-  <property name="javac.deprecation" value="on" />
-  <property name="javac.optimize" value="off" />
-
-  <property name="junit.printsummary" value="yes" />
-  <property name="junit.haltonerror" value="no" />
-  <property name="junit.haltonfailure" value="no" />
-  <property name="junit.fork" value="yes" />
-  <property name="junit.timeout" value="60000" />
-  <property name="junit.jvm" value="" />
-  <property name="junit.jvm.options" value="-Xms128m -Xmx512m -XX:MaxPermSize=256m" />
-  <property name="junit.batchtest.haltonerror" value="no" />
-  <property name="junit.batchtest.haltonfailure" value="no" />
-  <property name="junit.batchtest.fork" value="yes" />
-
-  <!-- ================================= 
-       Versions              
-       ================================= -->
-  <property name="version.ant" value="1.6.5"/>
-  <property name="version.javassist" value="3.11.0.GA"/>
-  <property name="version.junit" value="4.7"/>
-
-  <!-- ================================= 
-       Paths              
-       ================================= -->
-  <path id="core.lib.path.id">
-    <fileset dir="${lib.dir}/core">
-      <include name="**/*.jar"/>
-    </fileset>
-    <fileset dir="${target.dir}">
-      <include name="**/*.jar"/>
-    </fileset>
-  </path>
-
-  <path id="test.lib.path.id">
-    <fileset dir="${lib.dir}/test">
-      <include name="**/*.jar"/>
-    </fileset>
-    <fileset dir="${target.dir}">
-      <include name="**/*.jar"/>
-    </fileset>
-  </path>
-
-  <path id="checkstyle.lib.path.id">
-    <fileset dir="${tools.dir}/checkstyle/lib"/>
-    <fileset dir="${lib.dir}/core">
-      <include name="**/*.jar"/>
-    </fileset>
-    <fileset dir="${target.dir}">
-      <include name="**/*.jar"/>
-    </fileset>
-  </path>
-
-  <path id="findbugs.lib.path.id">
-    <fileset dir="${tools.dir}/findbugs/lib"/>
-  </path>
-
-  <path id="cobertura.lib.path.id">
-    <fileset dir="${tools.dir}/cobertura/lib"/>
-  </path>
-
-  <!-- ================================= 
-       Target: init              
-       ================================= -->
-  <target name="init">
-    <ivy:settings file="${basedir}/ivy.settings.xml"/>
-
-    <mkdir dir="${build.dir}" />
-    <mkdir dir="${target.dir}" />
-  </target>
-
-  <!-- ================================= 
-       Target: resolve              
-       ================================= -->
-  <target name="resolve" depends="init">
-    <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]" sync="true"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: report              
-       ================================= -->
-  <target name="report" depends="resolve">
-    <ivy:report todir="${target.dir}"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: jars
-       ================================= -->
-  <target name="jars" depends="resolve">
-    <ant dir="core" inheritRefs="true" target="jars"/>
-    <ant dir="indexer" inheritRefs="true" target="jars"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: prepare test
-       ================================= -->
-  <target name="prepare-test" depends="jars">
-    <ant dir="core" inheritRefs="true" target="prepare-test"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: test
-       ================================= -->
-  <target name="test" depends="prepare-test">
-    <ant dir="core" inheritRefs="true" target="test"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: test-indexer
-       ================================= -->
-  <target name="test-indexer" depends="prepare-test">
-    <ant dir="core" inheritRefs="true" target="test-indexer"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: one-test
-       ================================= -->
-  <target name="one-test" depends="prepare-test">
-    <ant dir="core" inheritRefs="true" target="one-test"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: docs
-       ================================= -->
-  <target name="docs" depends="jars">
-    <ant dir="core" inheritRefs="true" target="docs"/>
-    <ant dir="indexer" inheritRefs="true" target="docs"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: checkstyle
-       ================================= -->
-  <target name="checkstyle" depends="jars">
-    <taskdef name="checkstyle"
-             classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"
-             classpathref="checkstyle.lib.path.id"/>
-
-    <mkdir dir="${reports.dir}/checkstyle" />
-
-    <checkstyle config="${tools.dir}/checkstyle/checkstyle.xml"
-                failOnViolation="false"
-                classpathref="checkstyle.lib.path.id">
-      <fileset dir="${basedir}"
-               includes="**/*.java"
-               excludes="**/build/**"/>
-      <formatter type="plain"/>
-      <formatter type="xml" toFile="${reports.dir}/checkstyle/checkstyle-result.xml"/>
-    </checkstyle>
-  </target>
-
-  <!-- ================================= 
-       Target: findbugs
-       ================================= -->
-  <target name="findbugs" depends="jars">
-    <taskdef name="findbugs"
-             classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
-             classpathref="findbugs.lib.path.id"/>
-
-    <mkdir dir="${reports.dir}/findbugs" />
-
-    <findbugs home="${basedir}/tools/findbugs/lib/"
-              output="html"
-              outputFile="${reports.dir}/findbugs/findbugs.html" 
-              excludeFilter="${basedir}/tools/findbugs/filter.xml"
-              reportLevel="low">
-      <auxClasspath>
-        <fileset dir="${lib.dir}/core">
-          <include name="*.jar"/>
-        </fileset>
-      </auxClasspath>
-      <class location="${target.dir}/papaki-core.jar" />
-      <class location="${target.dir}/papaki-indexer.jar" />
-    </findbugs>
-
-    <findbugs home="${basedir}/tools/findbugs/lib/"
-              output="xml:withMessages"
-              outputFile="${reports.dir}/findbugs/findbugs.xml" 
-              excludeFilter="${basedir}/tools/findbugs/filter.xml"
-              reportLevel="low">
-      <auxClasspath>
-        <fileset dir="${lib.dir}/core">
-          <include name="*.jar"/>
-        </fileset>
-      </auxClasspath>
-      <class location="${target.dir}/papaki-core.jar" />
-      <class location="${target.dir}/papaki-indexer.jar" />
-    </findbugs>
-  </target>
-
-  <!-- ================================= 
-       Target: cobertura
-       ================================= -->
-  <target name="cobertura" depends="prepare-test">
-    <taskdef resource="tasks.properties"
-             classpathref="cobertura.lib.path.id"/>
-
-    <mkdir dir="${reports.dir}/cobertura" />
-    <mkdir dir="${reports.dir}/cobertura/tests" />
-
-    <delete file="${reports.dir}/cobertura/cobertura.ser"/>
-    <delete dir="${build.dir}/instrumented"/>
-    
-    <mkdir dir="${build.dir}/instrumented" />
-    <copy todir="${build.dir}/instrumented">
-      <fileset dir="${target.dir}"/>
-    </copy>
-
-    <cobertura-instrument todir="${build.dir}/instrumented"
-                          datafile="${reports.dir}/cobertura/cobertura.ser">
-      <fileset dir="${target.dir}">
-        <include name="*.jar" />
-      </fileset>
-    </cobertura-instrument>
-
-    <junit dir="core/src/test"
-           printsummary="${junit.printsummary}"
-           haltonerror="${junit.haltonerror}"
-           haltonfailure="${junit.haltonfailure}"
-           fork="yes"
-           timeout="${junit.timeout}">
-      
-      <jvmarg line="${junit.jvm.options}"/>
-      <sysproperty key="test.dir" value="${test.dir}"/>
-      <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
-      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
-      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
-      <classpath>
-        <fileset dir="${build.dir}/instrumented" includes="*.jar" />
-        <pathelement location="${build.dir}/core/test"/>
-        <fileset dir="${lib.dir}/test" includes="*.jar" />
-      </classpath>
-      <classpath refid="cobertura.lib.path.id" />
-      
-      <formatter type="xml"/>
-      
-      <batchtest todir="${reports.dir}/cobertura/tests">
-        <fileset dir="${build.dir}/core/test">
-          <include name="**/*TestCase.class"/>
-        </fileset>
-      </batchtest>
-    </junit>
-
-    <cobertura-report format="html" 
-                      destdir="${reports.dir}/cobertura/html" 
-                      datafile="${reports.dir}/cobertura/cobertura.ser">
-      <fileset dir="core/src/main/java">
-        <include name="**/*.java" />
-      </fileset>
-    </cobertura-report>
-
-    <cobertura-report format="xml" 
-                      destdir="${reports.dir}/cobertura/xml" 
-                      datafile="${reports.dir}/cobertura/cobertura.ser">
-      <fileset dir="core/src/main/java">
-        <include name="**/*.java" />
-      </fileset>
-    </cobertura-report>
-  </target>
-
-  <!-- ================================= 
-       Target: release
-       ================================= -->
-  <target name="release" depends="jars">
-    <delete dir="${build.dir}"/>
-
-    <mkdir dir="${build.dir}" />
-    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}" />
-    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc" />
-    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/api" />
-    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/lib" />
-
-    <ant dir="doc/userguide" target="pdf"/>
-    <ant dir="doc/developerguide" target="pdf"/>
-
-    <move flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
-      <fileset dir="${build.dir}">
-        <include name="**/*.pdf"/>
-      </fileset>
-    </move>
-
-    <delete dir="${build.dir}/en"/>
-    
-    <ant dir="core" inheritRefs="true" target="docs"/>
-    <move todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/api">
-      <fileset dir="${target.dir}/docs/core">
-        <include name="**/*"/>
-      </fileset>
-    </move>
-
-    <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
-      <fileset dir="${target.dir}">
-        <include name="*.jar"/>
-      </fileset>
-    </copy>
-
-    <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/lib">
-      <fileset dir="${lib.dir}/core">
-        <include name="*.jar"/>
-        <exclude name="ant.jar"/>
-      </fileset>
-    </copy>
-
-    <zip destfile="${name}-${major}.${minor}.${patch}.${type}.zip"
-         basedir="${build.dir}"/>
-    
-    <tar destfile="${name}-${major}.${minor}.${patch}.${type}.tar"
-         basedir="${build.dir}"/>
-    
-    <gzip zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.gz" 
-          src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
-    
-    <bzip2 zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.bz2" 
-           src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
-    
-    <delete file="${name}-${major}.${minor}.${patch}.${type}.tar"/>
-    
-  </target>
-
-  <!-- ================================= 
-       Target: clean              
-       ================================= -->
-  <target name="clean">
-    <delete>
-      <fileset dir="${basedir}" defaultexcludes="no">
-        <include name="**/*~"/>
-        <include name="**/*.bak"/>
-      </fileset>
-    </delete>
-    <delete>
-      <fileset dir="${basedir}" defaultexcludes="no">
-        <include name="${name}*.zip"/>
-        <include name="${name}*.tar.gz"/>
-        <include name="${name}*.tar.bz2"/>
-      </fileset>
-    </delete>
-    <delete>
-      <fileset dir="${lib.dir}" includes="**/*.jar"/>
-    </delete>
-    <delete dir="${build.dir}"/>
-    <delete dir="${target.dir}"/>
-    <delete dir="${reports.dir}"/>
-  </target>
-  
-  <!-- ================================= 
-       Target: clean-cache              
-       ================================= -->
-  <target name="clean-cache">
-    <ivy:cleancache />
-  </target>
-
-</project>

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml (from rev 104625, projects/annotations/trunk/build.xml)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,416 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="papaki" 
+         default="jars" 
+         basedir="." 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
+  <available classname="java.lang.management.LockInfo" property="HAVE_JDK_1.6"/>
+
+  <!-- ================================= 
+       Project              
+       ================================= -->
+  <property name="name" value="papaki"/>
+  <property name="major" value="1"/>
+  <property name="minor" value="0"/>
+  <property name="patch" value="0"/>
+  <property name="type" value="Beta3"/>
+
+  <!-- ================================= 
+       Repositories              
+       ================================= -->
+  <property name="central.repo" value="http://repo1.maven.org/maven2"/>
+  <property name="jboss.repo" value="https://repository.jboss.org/nexus/content/groups/public/"/>
+  <property name="snapshots.repo" value="http://snapshots.jboss.org/maven2"/>
+  
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="lib.dir" value="${basedir}/lib" />
+  <property name="build.dir" value="${basedir}/build" />
+  <property name="build.core.dir" value="${build.dir}/core" />
+  <property name="build.indexer.dir" value="${build.dir}/indexer" />
+  <property name="target.dir" value="${basedir}/target" />
+  <property name="tools.dir" value="${basedir}/tools" />
+  <property name="reports.dir" value="${basedir}/reports" />
+  <property name="test.dir" value="${reports.dir}" />
+
+  <property name="javac.debug" value="on" />
+  <property name="javac.deprecation" value="on" />
+  <property name="javac.optimize" value="off" />
+
+  <property name="junit.printsummary" value="yes" />
+  <property name="junit.haltonerror" value="no" />
+  <property name="junit.haltonfailure" value="no" />
+  <property name="junit.fork" value="yes" />
+  <property name="junit.timeout" value="60000" />
+  <property name="junit.jvm" value="" />
+  <property name="junit.jvm.options" value="-Xms128m -Xmx512m -XX:MaxPermSize=256m" />
+  <property name="junit.batchtest.haltonerror" value="no" />
+  <property name="junit.batchtest.haltonfailure" value="no" />
+  <property name="junit.batchtest.fork" value="yes" />
+
+  <!-- ================================= 
+       Versions              
+       ================================= -->
+  <property name="version.ant" value="1.6.5"/>
+  <property name="version.apiviz" value="1.3.1.GA"/>
+  <property name="version.javassist" value="3.12.0.GA"/>
+  <property name="version.junit" value="4.8.1"/>
+
+  <!-- ================================= 
+       Paths              
+       ================================= -->
+  <path id="core.lib.path.id">
+    <fileset dir="${lib.dir}/core">
+      <include name="**/*.jar"/>
+    </fileset>
+    <fileset dir="${target.dir}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>
+
+  <path id="test.lib.path.id">
+    <fileset dir="${lib.dir}/test">
+      <include name="**/*.jar"/>
+    </fileset>
+    <fileset dir="${target.dir}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>
+
+  <path id="checkstyle.lib.path.id">
+    <fileset dir="${tools.dir}/checkstyle/lib"/>
+    <fileset dir="${lib.dir}/core">
+      <include name="**/*.jar"/>
+    </fileset>
+    <fileset dir="${target.dir}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>
+
+  <path id="findbugs.lib.path.id">
+    <fileset dir="${tools.dir}/findbugs/lib"/>
+  </path>
+
+  <path id="cobertura.lib.path.id">
+    <fileset dir="${tools.dir}/cobertura/lib"/>
+  </path>
+
+  <!-- ================================= 
+       Target: init              
+       ================================= -->
+  <target name="init">
+    <ivy:settings file="${basedir}/ivy.settings.xml"/>
+
+    <mkdir dir="${build.dir}" />
+    <mkdir dir="${target.dir}" />
+  </target>
+
+  <!-- ================================= 
+       Target: resolve              
+       ================================= -->
+  <target name="resolve" depends="init">
+    <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]" sync="true"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: report              
+       ================================= -->
+  <target name="report" depends="resolve">
+    <ivy:report todir="${target.dir}"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: jars
+       ================================= -->
+  <target name="jars" depends="resolve">
+    <ant dir="core" inheritRefs="true" target="jars"/>
+    <ant dir="indexer" inheritRefs="true" target="jars"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: prepare test
+       ================================= -->
+  <target name="prepare-test" depends="jars">
+    <ant dir="core" inheritRefs="true" target="prepare-test"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: test
+       ================================= -->
+  <target name="test" depends="prepare-test">
+    <ant dir="core" inheritRefs="true" target="test"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: test-indexer
+       ================================= -->
+  <target name="test-indexer" depends="prepare-test">
+    <ant dir="core" inheritRefs="true" target="test-indexer"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: one-test
+       ================================= -->
+  <target name="one-test" depends="prepare-test">
+    <ant dir="core" inheritRefs="true" target="one-test"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: docs
+       ================================= -->
+  <target name="docs" depends="jars">
+    <ant dir="core" inheritRefs="true" target="docs"/>
+    <ant dir="indexer" inheritRefs="true" target="docs"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: checkstyle
+       ================================= -->
+  <target name="checkstyle" depends="jars">
+    <taskdef name="checkstyle"
+             classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"
+             classpathref="checkstyle.lib.path.id"/>
+
+    <mkdir dir="${reports.dir}/checkstyle" />
+
+    <checkstyle config="${tools.dir}/checkstyle/checkstyle.xml"
+                failOnViolation="false"
+                classpathref="checkstyle.lib.path.id">
+      <fileset dir="${basedir}"
+               includes="**/*.java"
+               excludes="**/build/**"/>
+      <formatter type="plain"/>
+      <formatter type="xml" toFile="${reports.dir}/checkstyle/checkstyle-result.xml"/>
+    </checkstyle>
+  </target>
+
+  <!-- ================================= 
+       Target: findbugs
+       ================================= -->
+  <target name="findbugs" depends="jars">
+    <taskdef name="findbugs"
+             classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
+             classpathref="findbugs.lib.path.id"/>
+
+    <mkdir dir="${reports.dir}/findbugs" />
+
+    <findbugs home="${basedir}/tools/findbugs/lib/"
+              output="html"
+              outputFile="${reports.dir}/findbugs/findbugs.html" 
+              excludeFilter="${basedir}/tools/findbugs/filter.xml"
+              reportLevel="low">
+      <auxClasspath>
+        <fileset dir="${lib.dir}/core">
+          <include name="*.jar"/>
+        </fileset>
+      </auxClasspath>
+      <class location="${target.dir}/papaki-core.jar" />
+      <class location="${target.dir}/papaki-indexer.jar" />
+    </findbugs>
+
+    <findbugs home="${basedir}/tools/findbugs/lib/"
+              output="xml:withMessages"
+              outputFile="${reports.dir}/findbugs/findbugs.xml" 
+              excludeFilter="${basedir}/tools/findbugs/filter.xml"
+              reportLevel="low">
+      <auxClasspath>
+        <fileset dir="${lib.dir}/core">
+          <include name="*.jar"/>
+        </fileset>
+      </auxClasspath>
+      <class location="${target.dir}/papaki-core.jar" />
+      <class location="${target.dir}/papaki-indexer.jar" />
+    </findbugs>
+  </target>
+
+  <!-- ================================= 
+       Target: cobertura
+       ================================= -->
+  <target name="cobertura" depends="prepare-test">
+    <taskdef resource="tasks.properties"
+             classpathref="cobertura.lib.path.id"/>
+
+    <mkdir dir="${reports.dir}/cobertura" />
+    <mkdir dir="${reports.dir}/cobertura/tests" />
+
+    <delete file="${reports.dir}/cobertura/cobertura.ser"/>
+    <delete dir="${build.dir}/instrumented"/>
+    
+    <mkdir dir="${build.dir}/instrumented" />
+    <copy todir="${build.dir}/instrumented">
+      <fileset dir="${target.dir}"/>
+    </copy>
+
+    <cobertura-instrument todir="${build.dir}/instrumented"
+                          datafile="${reports.dir}/cobertura/cobertura.ser">
+      <fileset dir="${target.dir}">
+        <include name="*.jar" />
+      </fileset>
+    </cobertura-instrument>
+
+    <junit dir="core/src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="yes"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      <sysproperty key="net.sourceforge.cobertura.datafile" file="${reports.dir}/cobertura/cobertura.ser" />
+      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
+      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
+
+      <classpath>
+        <fileset dir="${build.dir}/instrumented" includes="*.jar" />
+        <pathelement location="${build.dir}/core/test"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      <classpath refid="cobertura.lib.path.id" />
+      
+      <formatter type="xml"/>
+      
+      <batchtest todir="${reports.dir}/cobertura/tests">
+        <fileset dir="${build.dir}/core/test">
+          <include name="**/*TestCase.class"/>
+        </fileset>
+      </batchtest>
+    </junit>
+
+    <cobertura-report format="html" 
+                      destdir="${reports.dir}/cobertura/html" 
+                      datafile="${reports.dir}/cobertura/cobertura.ser">
+      <fileset dir="core/src/main/java">
+        <include name="**/*.java" />
+      </fileset>
+    </cobertura-report>
+
+    <cobertura-report format="xml" 
+                      destdir="${reports.dir}/cobertura/xml" 
+                      datafile="${reports.dir}/cobertura/cobertura.ser">
+      <fileset dir="core/src/main/java">
+        <include name="**/*.java" />
+      </fileset>
+    </cobertura-report>
+  </target>
+
+  <!-- ================================= 
+       Target: release
+       ================================= -->
+  <target name="release" depends="jars">
+    <delete dir="${build.dir}"/>
+
+    <mkdir dir="${build.dir}" />
+    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}" />
+    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc" />
+    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/api" />
+    <mkdir dir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/lib" />
+
+    <ant dir="doc/userguide" target="pdf"/>
+    <ant dir="doc/developerguide" target="pdf"/>
+
+    <move flatten="true" todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc">
+      <fileset dir="${build.dir}">
+        <include name="**/*.pdf"/>
+      </fileset>
+    </move>
+
+    <delete dir="${build.dir}/en"/>
+    
+    <ant dir="core" inheritRefs="true" target="docs"/>
+    <move todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/api">
+      <fileset dir="${target.dir}/docs/core">
+        <include name="**/*"/>
+      </fileset>
+    </move>
+    <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/doc/api" overwrite="true">
+      <fileset dir="${tools.dir}/api">
+        <include name="**/*"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}">
+      <fileset dir="${target.dir}">
+        <include name="*.jar"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${build.dir}/${name}-${major}.${minor}.${patch}.${type}/lib">
+      <fileset dir="${lib.dir}/core">
+        <include name="*.jar"/>
+        <exclude name="ant.jar"/>
+        <exclude name="apiviz.jar"/>
+      </fileset>
+    </copy>
+
+    <zip destfile="${name}-${major}.${minor}.${patch}.${type}.zip"
+         basedir="${build.dir}"/>
+    
+    <tar destfile="${name}-${major}.${minor}.${patch}.${type}.tar"
+         basedir="${build.dir}"/>
+    
+    <gzip zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.gz" 
+          src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
+    
+    <bzip2 zipfile="${name}-${major}.${minor}.${patch}.${type}.tar.bz2" 
+           src="${name}-${major}.${minor}.${patch}.${type}.tar"/>
+    
+    <delete file="${name}-${major}.${minor}.${patch}.${type}.tar"/>
+    
+  </target>
+
+  <!-- ================================= 
+       Target: clean              
+       ================================= -->
+  <target name="clean">
+    <delete>
+      <fileset dir="${basedir}" defaultexcludes="no">
+        <include name="**/*~"/>
+        <include name="**/*.bak"/>
+      </fileset>
+    </delete>
+    <delete>
+      <fileset dir="${basedir}" defaultexcludes="no">
+        <include name="${name}*.zip"/>
+        <include name="${name}*.tar.gz"/>
+        <include name="${name}*.tar.bz2"/>
+      </fileset>
+    </delete>
+    <delete>
+      <fileset dir="${lib.dir}" includes="**/*.jar"/>
+    </delete>
+    <delete dir="${build.dir}"/>
+    <delete dir="${target.dir}"/>
+    <delete dir="${reports.dir}"/>
+  </target>
+  
+  <!-- ================================= 
+       Target: clean-cache              
+       ================================= -->
+  <target name="clean-cache">
+    <ivy:cleancache />
+  </target>
+
+</project>

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml
===================================================================
--- projects/annotations/trunk/core/build.xml	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,325 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="papaki-core" 
-         default="compile" 
-         xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <!-- ================================= 
-       Properties              
-       ================================= -->
-  <property name="build.core.dir" value="${build.dir}/core" />
-
-  <!-- ================================= 
-       Target: init
-       ================================= -->
-  <target name="init">
-    <mkdir dir="${build.core.dir}" />
-    <mkdir dir="${build.core.dir}/impl" />
-  </target>
-
-  <!-- ================================= 
-       Target: compile
-       ================================= -->
-  <target name="compile" depends="init">
-    <javac srcdir="src/main"
-           destdir="${build.core.dir}/impl"
-           classpathref="core.lib.path.id"
-           debug="${javac.debug}"
-           deprecation="${javac.deprecation}"
-           optimize="${javac.optimize}">
-      <compilerarg value="-Xlint"/>
-    </javac> 
-  </target>
-
-  <!-- ================================= 
-       Target: prepare-test
-       ================================= -->
-  <target name="prepare-test">
-    <mkdir dir="${build.core.dir}" />
-    <mkdir dir="${build.core.dir}/test" />
-
-    <javac srcdir="src/test"
-           destdir="${build.core.dir}/test"
-           classpathref="test.lib.path.id"
-           debug="${javac.debug}"
-           deprecation="${javac.deprecation}"
-           optimize="${javac.optimize}">
-      <compilerarg value="-Xlint"/>
-    </javac> 
-
-    <copy todir="${build.core.dir}/test">
-      <fileset dir="src/test/resources"/>
-    </copy>
-
-    <mkdir dir="${build.core.dir}/testjars" />
-
-    <!-- Class based tests --> 
-    <jar destfile="${build.core.dir}/testjars/classabstract.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classabstract/**"/>
-    <jar destfile="${build.core.dir}/testjars/classconstructor.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classconstructor/**"/>
-    <jar destfile="${build.core.dir}/testjars/classconstructorwithparameter.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classconstructorwithparameter/**"/>
-    <jar destfile="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classconstructorwithparameterannotation/**"/>
-    <jar destfile="${build.core.dir}/testjars/classempty.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classempty/**"/>
-    <jar destfile="${build.core.dir}/testjars/classinterface.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classinterface/**"/>
-    <jar destfile="${build.core.dir}/testjars/classinterfacemethod.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classinterfacemethod/**"/>
-    <jar destfile="${build.core.dir}/testjars/classlevel.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classlevel/**"/>
-    <jar destfile="${build.core.dir}/testjars/classmethod.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classmethod/**"/>
-    <jar destfile="${build.core.dir}/testjars/classmethodwithparameter.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classmethodwithparameter/**"/>
-    <jar destfile="${build.core.dir}/testjars/classmethodwithparameterannotation.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classmethodwithparameterannotation/**"/>
-    <jar destfile="${build.core.dir}/testjars/classfield.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/classfield/**"/>
-
-    <!-- Inheritance based tests --> 
-    <jar destfile="${build.core.dir}/testjars/inheritanceclassabstract.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/inheritanceclassabstract/**"/>
-    <jar destfile="${build.core.dir}/testjars/inheritanceclassclass.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/inheritanceclassclass/**"/>
-    <jar destfile="${build.core.dir}/testjars/inheritanceclassinterface.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/inheritanceclassinterface/**"/>
-    <jar destfile="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/inheritanceclassinterfacemethod/**"/>
-
-    <!-- Interface based tests --> 
-    <jar destfile="${build.core.dir}/testjars/interfaceempty.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/interfaceempty/**"/>
-    <jar destfile="${build.core.dir}/testjars/interfacelevel.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/interfacelevel/**"/>
-    <jar destfile="${build.core.dir}/testjars/interfacemethod.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/interfacemethod/**"/>
-    <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameter.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/interfacemethodwithparameter/**"/>
-    <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar"
-         basedir="${build.core.dir}/test"
-         includes="**/common/**, **/interfacemethodwithparameterannotation/**"/>
-  </target>
-
-  <!-- ================================= 
-       Target: test-indexer
-       ================================= -->
-  <target name="test-indexer" depends="jars, prepare-test">
-    <taskdef name="indexer"
-             classname="org.jboss.papaki.indexer.IndexerTask"
-             classpathref="core.lib.path.id"/>
-
-    <mkdir dir="${reports.dir}"/>
-    <mkdir dir="${reports.dir}/indexer"/>
-    <mkdir dir="${reports.dir}/indexer/reports"/>
-
-    <!-- Class based tests --> 
-    <indexer input="${build.core.dir}/testjars/classabstract.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classconstructor.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classconstructorwithparameter.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classempty.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classinterface.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classlevel.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classmethod.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classmethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classmethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/classfield.jar" report="${reports.dir}/indexer/reports"/>
-
-    <!-- Inheritance based tests --> 
-    <indexer input="${build.core.dir}/testjars/inheritanceclassabstract.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/inheritanceclassclass.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/inheritanceclassinterface.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
-
-    <!-- Interface based tests --> 
-    <indexer input="${build.core.dir}/testjars/interfaceempty.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/interfacelevel.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/interfacemethod.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/interfacemethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
-    <indexer input="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
-
-    <junit dir="src/test"
-           printsummary="${junit.printsummary}"
-           haltonerror="${junit.haltonerror}"
-           haltonfailure="${junit.haltonfailure}"
-           fork="${junit.fork}"
-           timeout="${junit.timeout}">
-      
-      <jvmarg line="${junit.jvm.options}"/>
-      <sysproperty key="test.dir" value="${test.dir}"/>
-      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
-      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
-      <classpath>
-        <pathelement location="${build.core.dir}/test"/>
-        <fileset dir="${target.dir}" includes="*.jar"/>
-        <fileset dir="${lib.dir}/test" includes="*.jar" />
-      </classpath>
-      
-      <formatter type="plain"/>
-      <formatter type="xml"/>
-      
-      <batchtest todir="${reports.dir}/indexer"
-                 haltonerror="${junit.batchtest.haltonerror}"
-                 haltonfailure="${junit.batchtest.haltonfailure}"
-                 fork="${junit.batchtest.fork}">
-        
-        <fileset dir="${build.core.dir}/test">
-          <include name="**/*TestCase.class"/>
-        </fileset>
-      </batchtest>
-
-    </junit>
-  </target>
-
-  <!-- ================================= 
-       Target: test
-       ================================= -->
-  <target name="test" depends="jars, prepare-test">
-    <mkdir dir="${reports.dir}"/>
-    <mkdir dir="${reports.dir}/core"/>
-
-    <junit dir="src/test"
-           printsummary="${junit.printsummary}"
-           haltonerror="${junit.haltonerror}"
-           haltonfailure="${junit.haltonfailure}"
-           fork="${junit.fork}"
-           timeout="${junit.timeout}">
-      
-      <jvmarg line="${junit.jvm.options}"/>
-      <sysproperty key="test.dir" value="${test.dir}"/>
-      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
-      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
-      <classpath>
-        <pathelement location="${build.core.dir}/test"/>
-        <fileset dir="${target.dir}" includes="*.jar"/>
-        <fileset dir="${lib.dir}/test" includes="*.jar" />
-      </classpath>
-      
-      <formatter type="plain"/>
-      <formatter type="xml"/>
-      
-      <batchtest todir="${reports.dir}/core"
-                 haltonerror="${junit.batchtest.haltonerror}"
-                 haltonfailure="${junit.batchtest.haltonfailure}"
-                 fork="${junit.batchtest.fork}">
-        
-        <fileset dir="${build.core.dir}/test">
-          <include name="**/*TestCase.class"/>
-        </fileset>
-      </batchtest>
-
-    </junit>
-    
-  </target>
-
-  <!-- ================================= 
-       Target: one-test
-       ================================= -->
-  <target name="one-test" depends="jars, prepare-test">
-    <mkdir dir="${reports.dir}"/>
-    <mkdir dir="${reports.dir}/core"/>
-
-    <junit dir="src/test"
-           printsummary="${junit.printsummary}"
-           haltonerror="${junit.haltonerror}"
-           haltonfailure="${junit.haltonfailure}"
-           fork="${junit.fork}"
-           timeout="${junit.timeout}">
-      
-      <jvmarg line="${junit.jvm.options}"/>
-      <sysproperty key="test.dir" value="${test.dir}"/>
-      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
-      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
-      <classpath>
-        <pathelement location="${build.core.dir}/test"/>
-        <fileset dir="${target.dir}" includes="*.jar"/>
-        <fileset dir="${lib.dir}/test" includes="*.jar" />
-      </classpath>
-      
-      <formatter type="plain"/>
-      <formatter type="xml"/>
-      
-      <test todir="${reports.dir}/core" name="${test}"
-                 haltonerror="${junit.batchtest.haltonerror}"
-                 haltonfailure="${junit.batchtest.haltonfailure}"
-                 fork="${junit.batchtest.fork}"/>
-    </junit>
-    
-  </target>
-
-  <!-- ================================= 
-       Target: jars 
-       ================================= -->
-  <target name="jars" depends="compile">
-    <jar destfile="${target.dir}/papaki-core.jar"
-         manifest="src/main/resources/core-manifest.mf"
-         basedir="${build.core.dir}/impl"
-         excludes="**/*.java"/>
-  </target>
-
-  <!-- ================================= 
-       Target: docs
-       ================================= -->
-  <target name="docs">
-    <mkdir dir="${target.dir}/docs/core"/>
-    <javadoc packagenames="org.*"
-             sourcepath="src/main/java"
-             destdir="${target.dir}/docs/core"
-             author="true"
-             version="true"
-             windowtitle="Papaki"
-             doctitle="Papaki"
-             use="true"
-             classpathref="core.lib.path.id"
-             bottom="Copyright &#169; 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
-      <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
-    </javadoc>
-  </target>
-
-</project>

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml (from rev 101765, projects/annotations/trunk/core/build.xml)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/core/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,333 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="papaki-core" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.core.dir" value="${build.dir}/core" />
+
+  <!-- ================================= 
+       Target: init
+       ================================= -->
+  <target name="init">
+    <mkdir dir="${build.core.dir}" />
+    <mkdir dir="${build.core.dir}/impl" />
+  </target>
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile" depends="init">
+    <javac srcdir="src/main"
+           destdir="${build.core.dir}/impl"
+           classpathref="core.lib.path.id"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: prepare-test
+       ================================= -->
+  <target name="prepare-test">
+    <mkdir dir="${build.core.dir}" />
+    <mkdir dir="${build.core.dir}/test" />
+
+    <javac srcdir="src/test"
+           destdir="${build.core.dir}/test"
+           classpathref="test.lib.path.id"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+
+    <copy todir="${build.core.dir}/test">
+      <fileset dir="src/test/resources"/>
+    </copy>
+
+    <mkdir dir="${build.core.dir}/testjars" />
+
+    <!-- Class based tests --> 
+    <jar destfile="${build.core.dir}/testjars/classabstract.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classabstract/**"/>
+    <jar destfile="${build.core.dir}/testjars/classconstructor.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classconstructor/**"/>
+    <jar destfile="${build.core.dir}/testjars/classconstructorwithparameter.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classconstructorwithparameter/**"/>
+    <jar destfile="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classconstructorwithparameterannotation/**"/>
+    <jar destfile="${build.core.dir}/testjars/classempty.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classempty/**"/>
+    <jar destfile="${build.core.dir}/testjars/classinterface.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classinterface/**"/>
+    <jar destfile="${build.core.dir}/testjars/classinterfacemethod.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classinterfacemethod/**"/>
+    <jar destfile="${build.core.dir}/testjars/classlevel.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classlevel/**"/>
+    <jar destfile="${build.core.dir}/testjars/classmethod.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classmethod/**"/>
+    <jar destfile="${build.core.dir}/testjars/classmethodwithparameter.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classmethodwithparameter/**"/>
+    <jar destfile="${build.core.dir}/testjars/classmethodwithparameterannotation.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classmethodwithparameterannotation/**"/>
+    <jar destfile="${build.core.dir}/testjars/classfield.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/classfield/**"/>
+
+    <!-- Inheritance based tests --> 
+    <jar destfile="${build.core.dir}/testjars/inheritanceclassabstract.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/inheritanceclassabstract/**"/>
+    <jar destfile="${build.core.dir}/testjars/inheritanceclassclass.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/inheritanceclassclass/**"/>
+    <jar destfile="${build.core.dir}/testjars/inheritanceclassinterface.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/inheritanceclassinterface/**"/>
+    <jar destfile="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/inheritanceclassinterfacemethod/**"/>
+
+    <!-- Interface based tests --> 
+    <jar destfile="${build.core.dir}/testjars/interfaceempty.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/interfaceempty/**"/>
+    <jar destfile="${build.core.dir}/testjars/interfacelevel.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/interfacelevel/**"/>
+    <jar destfile="${build.core.dir}/testjars/interfacemethod.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/interfacemethod/**"/>
+    <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameter.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/interfacemethodwithparameter/**"/>
+    <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar"
+         basedir="${build.core.dir}/test"
+         includes="**/common/**, **/interfacemethodwithparameterannotation/**"/>
+  </target>
+
+  <!-- ================================= 
+       Target: test-indexer
+       ================================= -->
+  <target name="test-indexer" depends="jars, prepare-test">
+    <taskdef name="indexer"
+             classname="org.jboss.papaki.indexer.IndexerTask"
+             classpathref="core.lib.path.id"/>
+
+    <mkdir dir="${reports.dir}"/>
+    <mkdir dir="${reports.dir}/indexer"/>
+    <mkdir dir="${reports.dir}/indexer/reports"/>
+
+    <!-- Class based tests --> 
+    <indexer input="${build.core.dir}/testjars/classabstract.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classconstructor.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classconstructorwithparameter.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classempty.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classinterface.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classlevel.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classmethod.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classmethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classmethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/classfield.jar" report="${reports.dir}/indexer/reports"/>
+
+    <!-- Inheritance based tests --> 
+    <indexer input="${build.core.dir}/testjars/inheritanceclassabstract.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/inheritanceclassclass.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/inheritanceclassinterface.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
+
+    <!-- Interface based tests --> 
+    <indexer input="${build.core.dir}/testjars/interfaceempty.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/interfacelevel.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/interfacemethod.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/interfacemethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
+    <indexer input="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
+
+    <junit dir="src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="${junit.fork}"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
+      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
+
+      <classpath>
+        <pathelement location="${build.core.dir}/test"/>
+        <fileset dir="${target.dir}" includes="*.jar"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      
+      <formatter type="plain"/>
+      <formatter type="xml"/>
+      
+      <batchtest todir="${reports.dir}/indexer"
+                 haltonerror="${junit.batchtest.haltonerror}"
+                 haltonfailure="${junit.batchtest.haltonfailure}"
+                 fork="${junit.batchtest.fork}">
+        
+        <fileset dir="${build.core.dir}/test">
+          <include name="**/*TestCase.class"/>
+        </fileset>
+      </batchtest>
+
+    </junit>
+  </target>
+
+  <!-- ================================= 
+       Target: test
+       ================================= -->
+  <target name="test" depends="jars, prepare-test">
+    <mkdir dir="${reports.dir}"/>
+    <mkdir dir="${reports.dir}/core"/>
+
+    <junit dir="src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="${junit.fork}"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
+      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
+
+      <classpath>
+        <pathelement location="${build.core.dir}/test"/>
+        <fileset dir="${target.dir}" includes="*.jar"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      
+      <formatter type="plain"/>
+      <formatter type="xml"/>
+      
+      <batchtest todir="${reports.dir}/core"
+                 haltonerror="${junit.batchtest.haltonerror}"
+                 haltonfailure="${junit.batchtest.haltonfailure}"
+                 fork="${junit.batchtest.fork}">
+        
+        <fileset dir="${build.core.dir}/test">
+          <include name="**/*TestCase.class"/>
+        </fileset>
+      </batchtest>
+
+    </junit>
+    
+  </target>
+
+  <!-- ================================= 
+       Target: one-test
+       ================================= -->
+  <target name="one-test" depends="jars, prepare-test">
+    <mkdir dir="${reports.dir}"/>
+    <mkdir dir="${reports.dir}/core"/>
+
+    <junit dir="src/test"
+           printsummary="${junit.printsummary}"
+           haltonerror="${junit.haltonerror}"
+           haltonfailure="${junit.haltonfailure}"
+           fork="${junit.fork}"
+           timeout="${junit.timeout}">
+      
+      <jvmarg line="${junit.jvm.options}"/>
+      <sysproperty key="test.dir" value="${test.dir}"/>
+      <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
+      <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
+
+      <classpath>
+        <pathelement location="${build.core.dir}/test"/>
+        <fileset dir="${target.dir}" includes="*.jar"/>
+        <fileset dir="${lib.dir}/test" includes="*.jar" />
+      </classpath>
+      
+      <formatter type="plain"/>
+      <formatter type="xml"/>
+      
+      <test todir="${reports.dir}/core" name="${test}"
+                 haltonerror="${junit.batchtest.haltonerror}"
+                 haltonfailure="${junit.batchtest.haltonfailure}"
+                 fork="${junit.batchtest.fork}"/>
+    </junit>
+    
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <jar destfile="${target.dir}/papaki-core.jar"
+         manifest="src/main/resources/core-manifest.mf"
+         basedir="${build.core.dir}/impl"
+         excludes="**/*.java"/>
+  </target>
+
+  <!-- ================================= 
+       Target: docs
+       ================================= -->
+  <target name="docs">
+    <mkdir dir="${target.dir}/docs/core"/>
+    <javadoc packagenames="org.*"
+             sourcepath="src/main/java"
+             destdir="${target.dir}/docs/core"
+             doclet="org.jboss.apiviz.APIviz"
+             docletpathref="core.lib.path.id"
+             author="true"
+             version="true"
+             windowtitle="Papaki"
+             doctitle="Papaki"
+             use="true"
+             additionalparam="-author -version"
+             classpathref="core.lib.path.id"
+             bottom="Copyright &#169; 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
+      <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
+    </javadoc>
+    <copy todir="${target.dir}/docs/core" overwrite="true">
+      <fileset dir="${tools.dir}/api">
+        <include name="**/*"/>
+      </fileset>
+    </copy>
+  </target>
+
+</project>

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml
===================================================================
--- projects/annotations/trunk/indexer/build.xml	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,88 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="papaki-indexer" 
-         default="compile" 
-         xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <!-- ================================= 
-       Properties              
-       ================================= -->
-  <property name="build.indexer.dir" value="${build.dir}/indexer" />
-
-  <!-- ================================= 
-       Target: init
-       ================================= -->
-  <target name="init">
-    <mkdir dir="${build.indexer.dir}" />
-    <mkdir dir="${build.indexer.dir}/impl" />
-  </target>
-
-  <!-- ================================= 
-       Target: compile
-       ================================= -->
-  <target name="compile" depends="init">
-    <javac srcdir="src/main"
-           destdir="${build.indexer.dir}/impl"
-           classpathref="core.lib.path.id"
-           debug="${javac.debug}"
-           deprecation="${javac.deprecation}"
-           optimize="${javac.optimize}">
-      <compilerarg value="-Xlint"/>
-    </javac> 
-  </target>
-
-  <!-- ================================= 
-       Target: jars 
-       ================================= -->
-  <target name="jars" depends="compile">
-    <copy todir="${build.indexer.dir}/impl">
-      <fileset dir="src/main/resources">
-        <include name="**/*.css"/>
-      </fileset>
-    </copy>
-
-    <jar destfile="${target.dir}/papaki-indexer.jar"
-         manifest="src/main/resources/indexer-manifest.mf"
-         basedir="${build.indexer.dir}/impl"
-         excludes="**/*.java"/>
-  </target>
-
-  <!-- ================================= 
-       Target: docs
-       ================================= -->
-  <target name="docs">
-    <mkdir dir="${target.dir}/docs/indexer"/>
-    <javadoc packagenames="org.*"
-             sourcepath="src/main/java"
-             destdir="${target.dir}/docs/indexer"
-             author="true"
-             version="true"
-             windowtitle="Papaki - Indexer"
-             doctitle="Papaki - Indexer"
-             use="true"
-             classpathref="core.lib.path.id"
-             bottom="Copyright &#169; 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
-      <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
-    </javadoc>
-  </target>
-
-</project>

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml (from rev 101765, projects/annotations/trunk/indexer/build.xml)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/build.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,96 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="papaki-indexer" 
+         default="compile" 
+         xmlns:ivy="antlib:org.apache.ivy.ant">
+
+  <!-- ================================= 
+       Properties              
+       ================================= -->
+  <property name="build.indexer.dir" value="${build.dir}/indexer" />
+
+  <!-- ================================= 
+       Target: init
+       ================================= -->
+  <target name="init">
+    <mkdir dir="${build.indexer.dir}" />
+    <mkdir dir="${build.indexer.dir}/impl" />
+  </target>
+
+  <!-- ================================= 
+       Target: compile
+       ================================= -->
+  <target name="compile" depends="init">
+    <javac srcdir="src/main"
+           destdir="${build.indexer.dir}/impl"
+           classpathref="core.lib.path.id"
+           debug="${javac.debug}"
+           deprecation="${javac.deprecation}"
+           optimize="${javac.optimize}">
+      <compilerarg value="-Xlint"/>
+    </javac> 
+  </target>
+
+  <!-- ================================= 
+       Target: jars 
+       ================================= -->
+  <target name="jars" depends="compile">
+    <copy todir="${build.indexer.dir}/impl">
+      <fileset dir="src/main/resources">
+        <include name="**/*.css"/>
+      </fileset>
+    </copy>
+
+    <jar destfile="${target.dir}/papaki-indexer.jar"
+         manifest="src/main/resources/indexer-manifest.mf"
+         basedir="${build.indexer.dir}/impl"
+         excludes="**/*.java"/>
+  </target>
+
+  <!-- ================================= 
+       Target: docs
+       ================================= -->
+  <target name="docs">
+    <mkdir dir="${target.dir}/docs/indexer"/>
+    <javadoc packagenames="org.*"
+             sourcepath="src/main/java"
+             destdir="${target.dir}/docs/indexer"
+             doclet="org.jboss.apiviz.APIviz"
+             docletpathref="core.lib.path.id"
+             author="true"
+             version="true"
+             windowtitle="Papaki - Indexer"
+             doctitle="Papaki - Indexer"
+             use="true"
+             additionalparam="-author -version"
+             classpathref="core.lib.path.id"
+             bottom="Copyright &#169; 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
+      <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
+    </javadoc>
+    <copy todir="${target.dir}/docs/indexer" overwrite="true">
+      <fileset dir="${tools.dir}/api">
+        <include name="**/*"/>
+      </fileset>
+    </copy>
+  </target>
+
+</project>

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java
===================================================================
--- projects/annotations/trunk/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,333 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki.indexer;
-
-import java.io.BufferedInputStream;
-import java.io.BufferedOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import java.util.jar.JarOutputStream;
-import java.util.jar.Manifest;
-import java.util.logging.Logger;
-
-
-/**
- * An utility for JAR type files
- * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
- */
-public class FileUtil
-{
-   private static Logger log = Logger.getLogger(FileUtil.class.getName());
-
-   /**
-    * Constructor
-    */
-   private FileUtil()
-   {
-   }
-
-   /**
-    * Compress a directory in a JAR layout to a file
-    * @param directory The directory
-    * @param target The JAR file
-    * @exception IOException Thrown if an error occurs
-    */
-   public static void compress(File directory, File target) throws IOException
-   {
-      if (directory == null)
-         throw new IllegalArgumentException("Directory is null");
-
-      if (target == null)
-         throw new IllegalArgumentException("Target is null");
-
-      if (target.exists())
-         recursiveDelete(target);
-
-      Manifest manifest = null;
-
-      File manifestFile = new File(directory, "META-INF/MANIFEST.MF");
-      if (manifestFile.exists())
-      {
-         FileInputStream fis = null;
-         try
-         {
-            fis = new FileInputStream(manifestFile);
-            manifest = new Manifest(fis);
-         }
-         finally
-         {
-            try
-            {
-               if (fis != null)
-                  fis.close();
-            }
-            catch (IOException ignore)
-            {
-               // Ignore
-            }
-         }
-      }
-      else
-      {
-         log.fine("No META-INF/MANIFEST.MF found; creating one");
-         manifest = new Manifest();
-      }
-
-      JarOutputStream jos = null;
-
-      try
-      {
-         FileOutputStream fos = new FileOutputStream(target);
-         jos = new JarOutputStream(fos, manifest);
-
-         int bytesRead;
-         byte[] buffer = new byte[4096];
-
-         List<File> entries = findEntries(directory);
-
-         if (entries != null)
-         {
-            entries.remove(new File("META-INF/MANIFEST.MF"));
-
-            for (File file : entries)
-            {
-               File f = new File(directory, file.getPath());
-               JarEntry entry = new JarEntry(file.getPath());
-               jos.putNextEntry(entry);
-
-               FileInputStream in = null;
-               try
-               {
-                  in = new FileInputStream(f);
-                  while ((bytesRead = in.read(buffer)) != -1)
-                     jos.write(buffer, 0, bytesRead);
-               }
-               finally
-               {
-                  if (in != null)
-                  {
-                     try
-                     {
-                        in.close(); 
-                     }
-                     catch (IOException ioe)
-                     {
-                        // Ignore
-                     }
-                  }
-               }
-            }
-         }
-
-         jos.flush();
-      }
-      finally
-      {
-         try
-         {
-            if (jos != null)
-               jos.close();
-         }
-         catch (IOException ignore)
-         {
-            // Ignore
-         }
-      }
-   }
-
-   /**
-    * Extract a JAR type file
-    * @param file The file
-    * @param directory The directory where the file should be extracted
-    * @return The root of the extracted JAR file
-    * @exception IOException Thrown if an error occurs
-    */
-   public static File extract(File file, File directory) throws IOException
-   {
-      if (file == null)
-         throw new IllegalArgumentException("File is null");
-
-      if (directory == null)
-         throw new IllegalArgumentException("Directory is null");
-
-      File target = new File(directory, file.getName());
-
-      if (target.exists())
-         recursiveDelete(target);
-
-      if (!target.mkdirs())
-         throw new IOException("Could not create " + target);
-
-      JarFile jar = new JarFile(file);
-      Enumeration<JarEntry> entries = jar.entries();
-
-      while (entries.hasMoreElements())
-      {
-         JarEntry je = entries.nextElement();
-         File copy = new File(target, je.getName());
-
-         if (!je.isDirectory())
-         {
-            InputStream in = null;
-            OutputStream out = null;
-
-            try
-            {
-               in = new BufferedInputStream(jar.getInputStream(je));
-               out = new BufferedOutputStream(new FileOutputStream(copy));
-
-               byte[] buffer = new byte[4096];
-               for (;;)
-               {
-                  int nBytes = in.read(buffer);
-                  if (nBytes <= 0)
-                     break;
-
-                  out.write(buffer, 0, nBytes);
-               }
-               out.flush();
-            }
-            finally
-            {
-               try
-               {
-                  if (out != null)
-                     out.close();
-               }
-               catch (IOException ignore)
-               {
-                  // Ignore
-               }
-
-               try
-               {
-                  if (in != null)
-                     in.close();
-               }
-               catch (IOException ignore)
-               {
-                  // Ignore
-               }
-            }
-         }
-         else
-         {
-            if (!copy.mkdirs())
-               throw new IOException("Could not create " + copy);
-         }
-      }
-
-      return target;
-   }
-
-   /**
-    * Recursive delete
-    * @param f The file handler
-    * @exception IOException Thrown if a file could not be deleted
-    */
-   public static void recursiveDelete(File f) throws IOException
-   {
-      if (f != null && f.exists())
-      {
-         File[] files = f.listFiles();
-         if (files != null)
-         {
-            for (int i = 0; i < files.length; i++)
-            {
-               if (files[i].isDirectory())
-               {
-                  recursiveDelete(files[i]);
-               } 
-               else
-               {
-                  if (!files[i].delete())
-                     throw new IOException("Could not delete " + files[i]);
-               }
-            }
-         }
-         if (!f.delete())
-            throw new IOException("Could not delete " + f);
-      }
-   }
-
-   /**
-    * Find all file entries for a directory
-    * @param file The root directory
-    * @return The list of files
-    */
-   private static List<File> findEntries(File root)
-   {
-      try
-      {
-         return getListing(root, root);
-      }
-      catch (Exception e)
-      {
-         log.severe(e.getMessage());
-      }
-
-      return null;
-   }
-
-   /**
-    * Recursively walk a directory tree and return a list of all files entries found
-    * @param root The root directory
-    * @param directory The current directory
-    * @return The list of files
-    * @exception Exception Thrown if an error occurs
-    */
-   private static List<File> getListing(File root, File directory) throws Exception 
-   {
-      List<File> result = new ArrayList<File>();
-
-      File[] filesAndDirs = directory.listFiles();
-
-      if (filesAndDirs != null)
-      {
-         for (File file : filesAndDirs) 
-         {
-            if (file.isDirectory()) 
-            {
-               List<File> deeperList = getListing(root, file);
-               result.addAll(deeperList);
-            }
-            else
-            {
-               String fileName = file.getPath().substring(root.getPath().length() + 1);
-               result.add(new File(fileName));
-            }
-         }
-      }
-
-      return result;
-   }
-}

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java (from rev 103958, projects/annotations/trunk/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/indexer/src/main/java/org/jboss/papaki/indexer/FileUtil.java	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,350 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.papaki.indexer;
+
+import java.io.BufferedInputStream;
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
+import java.util.jar.JarOutputStream;
+import java.util.jar.Manifest;
+import java.util.logging.Logger;
+
+
+/**
+ * An utility for JAR type files
+ * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
+ */
+public class FileUtil
+{
+   private static Logger log = Logger.getLogger(FileUtil.class.getName());
+
+   /**
+    * Constructor
+    */
+   private FileUtil()
+   {
+   }
+
+   /**
+    * Compress a directory in a JAR layout to a file
+    * @param directory The directory
+    * @param target The JAR file
+    * @exception IOException Thrown if an error occurs
+    */
+   public static void compress(File directory, File target) throws IOException
+   {
+      if (directory == null)
+         throw new IllegalArgumentException("Directory is null");
+
+      if (target == null)
+         throw new IllegalArgumentException("Target is null");
+
+      if (target.exists())
+         recursiveDelete(target);
+
+      Manifest manifest = null;
+
+      File manifestFile = new File(directory, "META-INF/MANIFEST.MF");
+      if (manifestFile.exists())
+      {
+         FileInputStream fis = null;
+         try
+         {
+            fis = new FileInputStream(manifestFile);
+            manifest = new Manifest(fis);
+         }
+         finally
+         {
+            try
+            {
+               if (fis != null)
+                  fis.close();
+            }
+            catch (IOException ignore)
+            {
+               // Ignore
+            }
+         }
+      }
+      else
+      {
+         log.fine("No META-INF/MANIFEST.MF found; creating one");
+         manifest = new Manifest();
+      }
+
+      JarOutputStream jos = null;
+
+      try
+      {
+         FileOutputStream fos = new FileOutputStream(target);
+         jos = new JarOutputStream(fos, manifest);
+
+         int bytesRead;
+         byte[] buffer = new byte[4096];
+
+         List<File> entries = findEntries(directory);
+
+         if (entries != null)
+         {
+            entries.remove(new File("META-INF/MANIFEST.MF"));
+
+            for (File file : entries)
+            {
+               File f = new File(directory, file.getPath());
+               JarEntry entry = new JarEntry(file.getPath());
+               jos.putNextEntry(entry);
+
+               FileInputStream in = null;
+               try
+               {
+                  in = new FileInputStream(f);
+                  while ((bytesRead = in.read(buffer)) != -1)
+                     jos.write(buffer, 0, bytesRead);
+               }
+               finally
+               {
+                  if (in != null)
+                  {
+                     try
+                     {
+                        in.close(); 
+                     }
+                     catch (IOException ioe)
+                     {
+                        // Ignore
+                     }
+                  }
+               }
+            }
+         }
+
+         jos.flush();
+      }
+      finally
+      {
+         try
+         {
+            if (jos != null)
+               jos.close();
+         }
+         catch (IOException ignore)
+         {
+            // Ignore
+         }
+      }
+   }
+
+   /**
+    * Extract a JAR type file
+    * @param file The file
+    * @param directory The directory where the file should be extracted
+    * @return The root of the extracted JAR file
+    * @exception IOException Thrown if an error occurs
+    */
+   public static File extract(File file, File directory) throws IOException
+   {
+      if (file == null)
+         throw new IllegalArgumentException("File is null");
+
+      if (directory == null)
+         throw new IllegalArgumentException("Directory is null");
+
+      File target = new File(directory, file.getName());
+
+      if (target.exists())
+         recursiveDelete(target);
+
+      if (!target.mkdirs())
+         throw new IOException("Could not create " + target);
+
+      JarFile jar = new JarFile(file);
+      Enumeration<JarEntry> entries = jar.entries();
+
+      while (entries.hasMoreElements())
+      {
+         JarEntry je = entries.nextElement();
+         File copy = new File(target, je.getName());
+
+         if (!je.isDirectory())
+         {
+            InputStream in = null;
+            OutputStream out = null;
+            
+            // Make sure that the directory is _really_ there
+            if (copy.getParentFile() != null && !copy.getParentFile().exists())
+            {
+               if (!copy.getParentFile().mkdirs())
+                  throw new IOException("Could not create " + copy.getParentFile());
+            }
+
+            try
+            {
+               in = new BufferedInputStream(jar.getInputStream(je));
+               out = new BufferedOutputStream(new FileOutputStream(copy));
+
+               byte[] buffer = new byte[4096];
+               for (;;)
+               {
+                  int nBytes = in.read(buffer);
+                  if (nBytes <= 0)
+                     break;
+
+                  out.write(buffer, 0, nBytes);
+               }
+               out.flush();
+            }
+            finally
+            {
+               try
+               {
+                  if (out != null)
+                     out.close();
+               }
+               catch (IOException ignore)
+               {
+                  // Ignore
+               }
+
+               try
+               {
+                  if (in != null)
+                     in.close();
+               }
+               catch (IOException ignore)
+               {
+                  // Ignore
+               }
+            }
+         }
+         else
+         {
+            if (!copy.exists())
+            {
+               if (!copy.mkdirs())
+                  throw new IOException("Could not create " + copy);
+            }
+            else
+            {
+               if (!copy.isDirectory())
+                  throw new IOException(copy + " isn't a directory");
+            }
+         }
+      }
+
+      jar.close();
+
+      return target;
+   }
+
+   /**
+    * Recursive delete
+    * @param f The file handler
+    * @exception IOException Thrown if a file could not be deleted
+    */
+   public static void recursiveDelete(File f) throws IOException
+   {
+      if (f != null && f.exists())
+      {
+         File[] files = f.listFiles();
+         if (files != null)
+         {
+            for (int i = 0; i < files.length; i++)
+            {
+               if (files[i].isDirectory())
+               {
+                  recursiveDelete(files[i]);
+               } 
+               else
+               {
+                  if (!files[i].delete())
+                     throw new IOException("Could not delete " + files[i]);
+               }
+            }
+         }
+         if (!f.delete())
+            throw new IOException("Could not delete " + f);
+      }
+   }
+
+   /**
+    * Find all file entries for a directory
+    * @param file The root directory
+    * @return The list of files
+    */
+   private static List<File> findEntries(File root)
+   {
+      try
+      {
+         return getListing(root, root);
+      }
+      catch (Exception e)
+      {
+         log.severe(e.getMessage());
+      }
+
+      return null;
+   }
+
+   /**
+    * Recursively walk a directory tree and return a list of all files entries found
+    * @param root The root directory
+    * @param directory The current directory
+    * @return The list of files
+    * @exception Exception Thrown if an error occurs
+    */
+   private static List<File> getListing(File root, File directory) throws Exception 
+   {
+      List<File> result = new ArrayList<File>();
+
+      File[] filesAndDirs = directory.listFiles();
+
+      if (filesAndDirs != null)
+      {
+         for (File file : filesAndDirs) 
+         {
+            if (file.isDirectory()) 
+            {
+               List<File> deeperList = getListing(root, file);
+               result.addAll(deeperList);
+            }
+            else
+            {
+               String fileName = file.getPath().substring(root.getPath().length() + 1);
+               result.add(new File(fileName));
+            }
+         }
+      }
+
+      return result;
+   }
+}

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml
===================================================================
--- projects/annotations/trunk/ivy.xml	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,43 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<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="org.jboss" 
-        module="jboss-annotations">
-    <license name="lgpl" url="http://repository.jboss.org/licenses/lgpl.txt"/>
-    <repository name="jboss" url="http://repository.jboss.org"/>
-  </info>
-
-  <configurations>
-    <conf name="core" transitive="false"/>
-    <conf name="test" extends="core" transitive="false"/>
-  </configurations>
-
-  <dependencies>
-    <dependency org="ant" name="ant" rev="${version.ant}" conf="core->default"/>
-    <dependency org="javassist" name="javassist" rev="${version.javassist}" conf="core->default"/>
-    <dependency org="junit" name="junit" rev="${version.junit}" conf="test->default"/>
-  </dependencies>
-
-</ivy-module>

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml (from rev 101765, projects/annotations/trunk/ivy.xml)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/ivy.xml	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,44 @@
+<!--
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<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="org.jboss" 
+        module="jboss-annotations">
+    <license name="lgpl" url="http://repository.jboss.org/licenses/lgpl.txt"/>
+    <repository name="jboss" url="http://repository.jboss.org"/>
+  </info>
+
+  <configurations>
+    <conf name="core" transitive="false"/>
+    <conf name="test" extends="core" transitive="false"/>
+  </configurations>
+
+  <dependencies>
+    <dependency org="ant" name="ant" rev="${version.ant}" conf="core->default"/>
+    <dependency org="javassist" name="javassist" rev="${version.javassist}" conf="core->default"/>
+    <dependency org="junit" name="junit" rev="${version.junit}" conf="test->default"/>
+    <dependency org="org.jboss.apiviz" name="apiviz" rev="${version.apiviz}" conf="core->default"/>
+  </dependencies>
+
+</ivy-module>

Deleted: projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh
===================================================================
--- projects/annotations/trunk/maven/release.sh	2010-03-03 09:12:48 UTC (rev 101761)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh	2010-05-10 19:42:33 UTC (rev 104627)
@@ -1,3 +0,0 @@
-#!/bin/sh
-mvn deploy:deploy-file -Dfile=../target/papaki-core.jar -DpomFile=core/release.xml -Durl=dav:https://svn.jboss.org/repos/repository.jboss.org/maven2 -DrepositoryId=jboss-releases
-mvn deploy:deploy-file -Dfile=../target/papaki-indexer.jar -DpomFile=indexer/release.xml -Durl=dav:https://svn.jboss.org/repos/repository.jboss.org/maven2 -DrepositoryId=jboss-releases

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh (from rev 104622, projects/annotations/trunk/maven/release.sh)
===================================================================
--- projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh	                        (rev 0)
+++ projects/annotations/tags/PAPAKI_1_0_0_BETA3/maven/release.sh	2010-05-10 19:42:33 UTC (rev 104627)
@@ -0,0 +1,3 @@
+#!/bin/sh
+mvn deploy:deploy-file -Dfile=../target/papaki-core.jar -DpomFile=core/release.xml -Durl=https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ -DrepositoryId=jboss-releases
+mvn deploy:deploy-file -Dfile=../target/papaki-indexer.jar -DpomFile=indexer/release.xml -Durl=https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/ -DrepositoryId=jboss-releases

Copied: projects/annotations/tags/PAPAKI_1_0_0_BETA3/tools/api (from rev 101763, projects/annotations/trunk/tools/api)




More information about the jboss-cvs-commits mailing list