!1 package init

Merge pull request !1 from small_leek/master
This commit is contained in:
openeuler-ci-bot 2020-08-31 17:09:14 +08:00 committed by Gitee
commit 22c0f75f28
4 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,43 @@
--- build.xml.orig 2009-09-22 23:00:17.000000000 +0200
+++ build.xml 2010-01-29 03:34:13.000000000 +0100
@@ -94,6 +94,7 @@
<copy todir="${build.src}" filtering="true">
<fileset dir="${src.java}" excludes="${src.excludes}"/>
+ <fileset dir="${basedir}${file.separator}test" excludes="${src.excludes}"/>
</copy>
</target>
@@ -110,7 +111,7 @@
<!-- =================================================================== -->
<!-- Compiles the source code -->
<!-- =================================================================== -->
- <target name="compile" depends="init, prepare-sources, generator" description="Compiles the sources. (Default)">
+ <target name="compile" depends="init, generator, prepare-sources" description="Compiles the sources. (Default)">
<!-- Echo compilation properties -->
<echo level="info" message="Compiler = ${build.compiler}"/>
<echo level="info" message="Optimize = ${compile.optimize}"/>
@@ -239,7 +240,22 @@
<!-- =================================================================== -->
<target name="clean-all" depends="clean-classes,clean-jars, clean-dist">
<echo message="Cleaned all."/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Unit tests -->
+ <!-- =================================================================== -->
+ <target name="test" depends="compile">
+ <junit printsummary="yes" fork="yes" haltonfailure="yes">
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.src}"/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+
+ <formatter type="plain"/>
+ <test name="org.antlr.stringtemplate.test.TestStringTemplate"/>
+ </junit>
</target>
-
</project>

BIN
stringtemplate-3.2.1.tar.gz Normal file

Binary file not shown.

48
stringtemplate.spec Normal file
View File

@ -0,0 +1,48 @@
Summary: A Java template engine
Name: stringtemplate
Version: 3.2.1
Release: 1
URL: http://www.stringtemplate.org/
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
Patch0: stringtemplate-3.1-build-junit.patch
License: BSD
BuildRequires: ant ant-antlr ant-junit javapackages-local
BuildArch: noarch
%description
StringTemplate is a java template engine (with ports for
C# and Python) for generating source code, web pages,
emails, or any other formatted text output. StringTemplate
is particularly good at multi-targeted code generators,
multiple site skins, and internationalization/localization.
%package javadoc
Summary: API documentation for %{name}
Requires: java-javadoc
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0
%build
rm -rf lib target
ant jar
ant javadocs -Dpackages= -Djavadocs.additionalparam="-Xdoclint:none"
%install
%mvn_artifact pom.xml build/%{name}.jar
%mvn_file : %{name}
%mvn_install -J docs/api/
%files -f .mfiles
%license LICENSE.txt
%doc README.txt
%files javadoc
%license LICENSE.txt
%{_javadocdir}/%{name}
%changelog
* Thu Jul 23 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.2.1-1
- Package init

4
stringtemplate.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA