update to 1.11 [release 1.11-1mamba;Wed May 05 2010]

This commit is contained in:
gil 2024-01-06 00:09:57 +01:00
parent 4548276464
commit 47d00ef67f
4 changed files with 290 additions and 0 deletions

View File

@ -1,2 +1,8 @@
# java-qdox
QDox is a high speed, small footprint parser for
extracting class/interface/method definitions
from source files complete with JavaDoc @tags.
It is designed to be used by active code
generators or documentation tools.

View File

@ -0,0 +1,7 @@
package com.thoughtworks.qdox.parser.structs;
public class LocatedDef {
public int lineNumber;
}

107
java-qdox-build.xml Normal file
View File

@ -0,0 +1,107 @@
<project name="qdox" default="jar" basedir=".">
<property name="qdox.version" value="@VERSION@"/>
<property name="maven.build.output" value="target/classes"/>
<property name="maven.build.directory" value="target"/>
<property name="maven.build.final.name" value="qdox-${qdox.version}"/>
<property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
<property name="maven.test.output" value="target/test-classes"/>
<property name="maven.pom.dir" value="."/>
<property name="javadocdir" value="target/site/apidocs"></property>
<target name="clean" description="Clean the output directory">
<delete dir="${maven.build.directory}"/>
</target>
<target name="compile" description="Compile the code">
<mkdir dir="${maven.build.output}"/>
<javac destdir="${maven.build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
<src>
<pathelement location="src/java"/>
</src>
</javac>
</target>
<target name="jar" depends="compile,test" description="Clean the JAR">
<tstamp>
<format property="tstamp" pattern="E M d HH:mm:ss yyyy" />
</tstamp>
<mkdir dir="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox/"/>
<copy file="${maven.pom.dir}/pom.xml"
todir="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox"/>
<echo message="#${tstamp}&#10;" file="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox/pom.properties" append="false"/>
<echo message="version=${qdox.version}&#10;" file="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox/pom.properties" append="true"/>
<echo message="groupId=com.thoughtworks.qdox&#10;" file="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox/pom.properties" append="true"/>
<echo message="artifactId=qdox" file="${maven.build.output}/META-INF/maven/com.thoughtworks.qdox/qdox/pom.properties" append="true"/>
<jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar"
compress="true"
index="false"
basedir="${maven.build.output}"
excludes="**/package.html">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Package" value="com.thoughtworks.qdox"/>
<attribute name="Build-Jdk" value="${java.version}"/>
<attribute name="Extension-Name" value="qdox"/>
<attribute name="Specification-Title" value="QDox - Quick JavaDoc Scanner"/>
<attribute name="Specification-Vendor" value="ThoughtWorks, Inc"/>
<attribute name="Implementation-Title" value="com.thoughtworks.qdox"/>
<attribute name="Implementation-Vendor" value="ThoughtWorks, Inc"/>
<attribute name="Implementation-Version" value="${qdox.version}"/>
</manifest>
</jar>
</target>
<target name="compile-tests" depends="junit-present, compile" description="Compile the test code" if="junit.present">
<mkdir dir="${maven.test.output}"/>
<javac destdir="${maven.test.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
<src>
<pathelement location="src/test"/>
</src>
<classpath>
<path refid="build.classpath"/>
<pathelement location="${maven.build.output}"/>
</classpath>
</javac>
</target>
<target name="test" depends="junit-present, compile-tests" if="junit.present" description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.classpath"/>
<pathelement location="${maven.build.output}"/>
<pathelement location="${maven.test.output}"/>
</classpath>
<batchtest todir="${maven.test.reports}">
<fileset dir="src/test">
<include name="**/*Test.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present"/>
</target>
<target name="junit-present" depends="test-junit-present" unless="junit.present">
<echo>================================= WARNING ================================</echo>
<echo> Junit isn&apos;t present in your $ANT_HOME/lib directory. Tests not executed. </echo>
<echo>==========================================================================</echo>
</target>
<target name="test-offline">
<condition property="maven.mode.offline">
<equals arg1="${build.sysclasspath}" arg2="only"/>
</condition>
</target>
<target name="javadoc" description="o Generate javadoc" >
<mkdir dir="${javadocdir}"></mkdir>
<tstamp>
<format pattern="-yyyy" property="year"></format>
</tstamp>
<property name="copyright" value="Copyright &amp;copy; . All Rights Reserved."></property>
<property name="title" value="QDox ${qdox.version} API"></property>
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="com.thoughtworks.qdox.*">
<classpath>
<path refid="build.classpath"></path>
</classpath>
</javadoc>
</target>
</project>

170
java-qdox.spec Normal file
View File

@ -0,0 +1,170 @@
%define maven 0
Name: java-qdox
Version: 1.11
Release: 1mamba
Summary: Quick JavaDoc Scanner
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://qdox.codehaus.org/
# jsvn co https://svn.codehaus.org/qdox/tags/qdox-1.11
# tar czvf qdox-1.10.1-src-svn.tar.gz qdox-1.11
Source0: qdox-1.11-src-svn.tar.gz
Source1: java-qdox-LocatedDef.java
Source2: java-qdox-build.xml
License: Apache Software License Version 2.0
BuildRequires: apache-ant
BuildRequires: apache-ant-junit
%if %maven
#BuildRequires: apache-maven
#BuildRequires: apache-maven-plugin-ant
#BuildRequires: apache-maven-plugin-antrun
#BuildRequires: apache-maven-plugin-changes
#BuildRequires: apache-maven-plugin-compiler
#BuildRequires: apache-maven-plugin-dependency
#BuildRequires: apache-maven-plugin-deploy
#BuildRequires: apache-maven-plugin-install
#BuildRequires: apache-maven-plugin-jar
#BuildRequires: apache-maven-plugin-javadoc
#BuildRequires: apache-maven-plugin-resources
#BuildRequires: apache-maven-plugin-site
#BuildRequires: cobertura-maven-plugin
#BuildRequires: jflex-maven-plugin
#BuildRequires: maven-project-info-reports-plugin
#BuildRequires: maven-release-plugin
#BuildRequires: maven-surefire-plugin
#BuildRequires: maven-wagon-webdav
##BuildRequires: xsite-maven-plugin 1.0 todo
%endif
BuildRequires: byaccj
BuildRequires: java_cup
BuildRequires: java-jflex143
BuildRequires: java-junit3
BuildRequires: jpackage-utils
BuildRequires: java-jmock1
Requires: jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
QDox is a high speed, small footprint parser for
extracting class/interface/method definitions
from source files complete with JavaDoc @tags.
It is designed to be used by active code
generators or documentation tools.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
QDox - Quick JavaDoc Scanner.
This package contains documentation for %{name}.
%prep
%setup -q -n qdox-%{version}
chmod -Rf a+rX,u+w,g-w,o-w bootstrap
for j in $(find . -name "*.jar"); do
mv $j $j.no
done
rm -r bootstrap/*.exe
rm -r bootstrap/yacc.*
ln -s /usr/bin/byaccj bootstrap/yacc.linux
ln -s $(build-classpath jflex/jflex) bootstrap
#cp -p %{S:1} src/java/com/thoughtworks/qdox/parser/structs/LocatedDef.java
sed -e "s/@VERSION@/%{version}/g" %{S:2} > build.xml
rm src/test/com/thoughtworks/qdox/JavaDocBuilderTest.java
%build
mkdir -p target/src/java/com/thoughtworks/qdox/parser/impl
export CLASSPATH=""
CLASSPATH=$CLASSPATH:$(build-classpath java_cup jflex/jflex jmock1)
CLASSPATH=$CLASSPATH:$(build-classpath junit-3.8.2 ant/ant-junit):target/classes:target/test-classes
pushd src
pushd grammar
%{_bindir}/jflex143 \
-d ../java/com/thoughtworks/qdox/parser/impl \
lexer.flex \
--skel skeleton.inner
popd
%{_bindir}/byaccj \
-v \
-Jnorun \
-Jnoconstruct \
-Jclass=Parser \
-Jsemantic=Value \
-Jpackage=com.thoughtworks.qdox.parser.impl \
../src/grammar/parser.y
mv Parser.java java/com/thoughtworks/qdox/parser/impl
popd
ant -Dbuild.sysclasspath=only jar javadoc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -m 644 target/qdox-%{version}.jar \
%{buildroot}%{_javadir}/qdox-%{version}.jar
install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-qdox.pom
%add_to_maven_depmap com.thoughtworks.qdox qdox %{version} JPP qdox
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
mkdir -p %{buildroot}%{_javadocdir}/qdox-%{version}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/qdox-%{version}
ln -s qdox-%{version} %{buildroot}%{_javadocdir}/qdox
#%{_bindir}/aot-compile-rpm
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/qdox-%{version}.jar
%{_javadir}/qdox.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE.txt README.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/qdox-%{version}
%{_javadocdir}/qdox
%changelog
* Wed May 05 2010 gil <puntogil@libero.it> 1.11-1mamba
- update to 1.11
* Tue Feb 16 2010 gil <puntogil@libero.it> 1.10.1-1mamba
- update to 1.10.1
- edit spec file
* Mon Sep 28 2009 gil <puntogil@libero.it> 1.10-1mamba
- update to 1.10
* Fri Jun 05 2009 gil <puntogil@libero.it> 1.9.1-1mamba
- update to 1.9.1
* Mon Mar 02 2009 gil <puntogil@libero.it> 1.6.1-1mamba
- package created by autospec