update to 2.0.1 [release 2.0.1-1mamba;Tue Aug 09 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 00:09:57 +01:00
parent 47d00ef67f
commit 22503c6816
4 changed files with 17 additions and 247 deletions

View File

@ -1,8 +1,4 @@
# java-qdox # java-qdox
QDox is a high speed, small footprint parser for A high speed, small footprint parser for extracting class/interface/method definitions from source files complete with JavaDoc @tags.
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

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

View File

@ -1,107 +0,0 @@
<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>

View File

@ -1,140 +1,33 @@
%define maven 0
Name: java-qdox Name: java-qdox
Version: 1.11 Version: 2.0.1
Release: 1mamba Release: 1mamba
Summary: Quick JavaDoc Scanner Summary: A high speed, small footprint parser for extracting class/interface/method definitions from source files complete with JavaDoc @tags
Group: Development/Libraries/Java Group: Development/Libraries/Java
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: gil <puntogil@libero.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://qdox.codehaus.org/ URL: https://github.com/paul-hammant/qdox
# jsvn co https://svn.codehaus.org/qdox/tags/qdox-1.11 Source: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/%{version}/qdox-%{version}.jar
# tar czvf qdox-1.10.1-src-svn.tar.gz qdox-1.11 License: Apache License 2.0
Source0: qdox-1.11-src-svn.tar.gz ## AUTOBUILDREQ-BEGIN
Source1: java-qdox-LocatedDef.java ## AUTOBUILDREQ-END
Source2: java-qdox-build.xml BuildRequires: javapackages
License: Apache Software License Version 2.0 Requires: javapackages
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 %description
QDox is a high speed, small footprint parser for A high speed, small footprint parser for extracting class/interface/method definitions from source files complete with JavaDoc @tags.
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 %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 %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 %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir} install -D -m 644 %{SOURCE0} \
mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -m 644 target/qdox-%{version}.jar \
%{buildroot}%{_javadir}/qdox-%{version}.jar %{buildroot}%{_javadir}/qdox-%{version}.jar
install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-qdox.pom ln -s qdox-%{version}.jar %{buildroot}%{_javadir}/qdox.jar
%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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -143,16 +36,11 @@ ln -s qdox-%{version} %{buildroot}%{_javadocdir}/qdox
%defattr(-,root,root) %defattr(-,root,root)
%{_javadir}/qdox-%{version}.jar %{_javadir}/qdox-%{version}.jar
%{_javadir}/qdox.jar %{_javadir}/qdox.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE.txt README.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/qdox-%{version}
%{_javadocdir}/qdox
%changelog %changelog
* Tue Aug 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Wed May 05 2010 gil <puntogil@libero.it> 1.11-1mamba * Wed May 05 2010 gil <puntogil@libero.it> 1.11-1mamba
- update to 1.11 - update to 1.11