Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2c49e65706
!18 openEuler-22.03-LTS-Next Packages upgrade
Merge pull request !18 from xu_ping/openEuler-22.03-LTS-Next
2022-01-28 02:22:11 +00:00
cherry530
96f0a4ea25 remove unuse files 2022-01-26 10:51:39 +08:00
openeuler-ci-bot
84cda9c652 !13 fix CVE-2021-36373 CVE-2021-36374
From: @starlet-dx
Reviewed-by: @wangchong1995924
Signed-off-by: @wangchong1995924
2021-07-19 06:27:00 +00:00
starlet_dx
7f6fce9cb4 fix CVE-2021-36373 CVE-2021-36374 2021-07-19 11:22:48 +08:00
openeuler-ci-bot
e7d27bd10a !8 Fix CVE-2020-11979
From: @hht8
Reviewed-by: @wangchong1995924
Signed-off-by: @wangchong1995924
2020-12-01 11:42:36 +08:00
hht8
82fe9eb9e3 Fix CVE-2020-11979 2020-12-01 10:12:15 +08:00
openeuler-ci-bot
f7a9f83070 !6 Change buildrequire and require to java-1.8.0-devel
From: @ultra_planet
Reviewed-by: @sinever
Signed-off-by: @sinever
2020-10-15 19:17:12 +08:00
lingsheng
2285bc3608 Change buildrequire and require to java-1.8.0-devel 2020-10-15 18:46:15 +08:00
openeuler-ci-bot
d9f687fb3c !5 update to 1.10.8 to fix CVE-2020-1945
From: @zhanghua1831
Reviewed-by: @rita_dong
Signed-off-by: @rita_dong
2020-09-15 08:54:41 +08:00
zhanghua1831
ced3712d58 update to 1.10.8 to fix CVE-2020-1945 2020-09-11 21:15:52 +08:00
5 changed files with 224 additions and 6 deletions

170
ant.asciidoc Normal file
View File

@ -0,0 +1,170 @@
ant(1)
======
:doctype: manpage
:man source: ANT
:man manual: Apache Ant
NAME
----
ant - Java build tool
SYNOPSIS
--------
*ant* [OPTIONS] [TARGET [TARGET2 [TARGET3] ...]]
DESCRIPTION
-----------
Apache Ant is a Java library and command-line tool whose mission is to drive
processes described in build files as targets and extension points dependent
upon each other. The main known usage of Ant is the build of Java applications.
Ant supplies a number of built-in tasks allowing to compile, assemble, test and
run Java applications. Ant can also be used effectively to build non Java
applications, for instance C or C++ applications. More generally, Ant can be
used to pilot any type of process which can be described in terms of targets
and tasks.
USAGE
-----
When no arguments are specified, Ant looks for a build.xml file in the current
directory and, if found, uses that file as the build file and runs the target
specified in the default attribute of the <project> tag. To make Ant use
a build file other than build.xml, use the command-line option *-buildfile*
file, where file is the name of the build file you want to use (or a directory
containing a build.xml file).
If you use the *-find* [file] option, Ant will search for a build file first in
the current directory, then in the parent directory, and so on, until either
a build file is found or the root of the filesystem has been reached. By
default, it will look for a build file called build.xml. To have it search for
a build file other than build.xml, specify a file argument. Note: If you
include any other flags or arguments on the command line after the *-find*
flag, you must include the file argument for the *-find* flag, even if the name
of the build file you want to find is build.xml.
You can also set properties on the command line. This can be done with the
*-Dproperty*=value option, where property is the name of the property, and
value is the value for that property. If you specify a property that is also
set in the build file (see the property task), the value specified on the
command line will override the value specified in the build file. Defining
properties on the command line can also be used to pass in the value of
environment variables; just pass *-DMYVAR*=$MYVAR to Ant. You can then access
these variables inside your build file as ${MYVAR}. You can also access
environment variables using the property task's environment attribute.
Options that affect the amount of logging output by Ant are: *-quiet*, which
instructs Ant to print less information to the console; *-verbose*, which
causes Ant to print additional information to the console; *-debug*, which
causes Ant to print considerably more additional information; and *-silent*
which makes Ant print nothing but task output and build failures (useful to
capture Ant output by scripts).
It is also possible to specify one or more targets that should be executed.
When omitted, the target that is specified in the default attribute of the
project tag is used.
The *-projecthelp* option prints out a list of the build file's targets.
Targets that include a description attribute are listed as "Main targets",
those without a description are listed as "Other targets", then the "Default"
target is listed ("Other targets" are only displayed if there are no main
targets, or if Ant is invoked in *-verbose* or *-debug* mode).
OPTIONS
-------
*-help, -h*::
print this message and exit
*-projecthelp, -p*::
print project help information and exit
*-version*::
print the version information and exit
*-diagnostics*::
print information that might be helpful to diagnose or report problems and exit
*-quiet, -q*::
be extra quiet
*-silent, -S*::
print nothing but task outputs and build failures
*-verbose, -v*::
be extra verbose
*-debug, -d*::
print debugging information
*-emacs, -e*::
produce logging information without adornments
*-lib <path>*::
specifies a path to search for jars and classes
*-logfile <file>, -l <file>*::
use given file for log
*-logger <classname>*::
the class which is to perform logging
*-listener <classname>*::
add an instance of class as a project listener
*-noinput*::
do not allow interactive input
*-buildfile <file>, -file <file>, -f <file>*::
use given buildfile
*-D<property>=<value>*::
use value for given property
*-keep-going, -k*::
execute all targets that do not depend on failed target(s)
*-propertyfile <name>*::
load all properties from file with *-D* properties taking precedence
*-inputhandler <class>*::
the class which will handle input requests
*-find <file>, -f <file>*::
search for buildfile towards the root of the filesystem and use it
*-nice number*::
A niceness value for the main thread:
1 (lowest) to 10 (highest); 5 is the default
*-nouserlib*::
Run ant without using the jar files from `${user.home}/.ant/lib`
*-noclasspath*::
Run ant without using `CLASSPATH`
*-autoproxy*::
Java1.5+: use the OS proxy settings
*-main <class>*::
override Ant's normal entry point
EXAMPLES
--------
*ant*::
runs Ant using the build.xml file in the current directory, on the default target.
*ant -buildfile test.xml*::
runs Ant using the test.xml file in the current directory, on the default target.
*ant -buildfile test.xml dist*::
runs Ant using the test.xml file in the current directory, on the target called dist.
*ant -buildfile test.xml -Dbuild=build/classes dist*::
runs Ant using the test.xml file in the current directory, on the target called dist, setting the build property to the value "build/classes".
*ant -lib /home/ant/extras*::
runs Ant picking up additional task and support jars from the /home/ant/extras location
*ant -lib one.jar;another.jar*::
adds two jars to Ants classpath.
FILES
-----
The Ant wrapper script for Unix will source (read and evaluate) the file *~/.antrc* before it does anything. You can use the file, for example, to set/unset environment variables that should only be visible during the execution of Ant.
ENVIRONMENT VARIABLES
---------------------
The wrapper scripts use the following environment variables (if set):
JAVACMD::
full path of the Java executable. Use this to invoke a different JVM than JAVA_HOME/bin/java.
ANT_OPTS::
command-line arguments that should be passed to the JVM. For example, you can define system properties or set the maximum Java heap size here.
ANT_ARGS::
Ant command-line arguments. For example, set ANT_ARGS to point to a different logger, include a listener, and to include the *-find* flag.
Note: If you include *-find* in ANT_ARGS, you should include the name of the build file to find, even if the file is called build.xml.
SEE ALSO
--------
java(1), make(1), mvn(1)

View File

@ -3,24 +3,25 @@
Name: ant
Summary: A Java-based build tool
Version: 1.10.5
Release: 7
Version: 1.10.12
Release: 1
Epoch: 0
License: ASL 2.0
URL: https://ant.apache.org/
Source0: https://archive.apache.org/dist/ant/source/apache-ant-1.10.5-src.tar.bz2
Source0: https://archive.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.bz2
Source1: ant.asciidoc
Source2: apache-ant-1.8.ant.conf
BuildRequires: javapackages-local java-devel >= 1:1.8.0 ant >= 1.10.2
BuildRequires: javapackages-local java-1.8.0-devel ant >= 1.10.2
BuildRequires: ant-junit xmlto mvn(antlr:antlr) mvn(bcel:bcel)
BuildRequires: mvn(bsf:bsf) mvn(com.jcraft:jsch) mvn(commons-logging:commons-logging-api)
BuildRequires: mvn(commons-net:commons-net) mvn(javax.mail:mail) mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit) mvn(log4j:log4j:1.2.13) mvn(org.tukaani:xz)
BuildRequires: mvn(oro:oro) mvn(regexp:regexp) mvn(xalan:xalan)
BuildRequires: mvn(xml-resolver:xml-resolver) mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.hamcrest:hamcrest-library) junit5
BuildRequires: mvn(org.hamcrest:hamcrest-library) junit5 asciidoc
Recommends: java-devel >= 1:1.8.0
Recommends: java-1.8.0-devel
Requires: %{name}-lib = %{epoch}:%{version}-%{release} javapackages-tools
BuildArch: noarch
@ -128,6 +129,12 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
%description apache-xalan2
Optional apache xalan2 tasks for %{name}.
%package imageio
Summary:Optional imageio tasks for %{name}
Requires:%{name} = %{epoch}:%{version}-%{release}
%description imageio
Optional imageio tasks for %{name}.
%package javamail
Summary: Optional javamail tasks for %{name}
@ -225,11 +232,16 @@ ln -sf LICENSE.utf8 LICENSE
%pom_xpath_remove pom:optional src/etc/poms/%{name}-antlr/pom.xml
%pom_xpath_inject 'target[@name="javadocs"]/javadoc/packageset' '<exclude name="**/junitlauncher"/>' build.xml
%pom_change_dep -r com.sun.mail:jakarta.mail javax.mail:mail src/etc/poms/ant-javamail/pom.xml
%build
%{ant} jars test-jar
%{ant} javadocs
rm -fr build/lib/%{name}-jai.jar build/lib/%{name}-netrexx.jar
mkdir man
asciidoc -b docbook -d manpage -o man/%{name}.xml %{SOURCE1}
%install
install -d %{buildroot}%{_datadir}/%{name}/{lib,etc,bin}
%mvn_alias :%{name} org.apache.%{name}:%{name}-nodeps apache:%{name} %{name}:%{name}
@ -274,6 +286,7 @@ echo "log4j12 %{name}/%{name}-apache-log4j" > %{buildroot}%{_sysconfdir}/%{name}
echo "oro %{name}/%{name}-apache-oro" > %{buildroot}%{_sysconfdir}/%{name}.d/apache-oro
echo "regexp %{name}/%{name}-apache-regexp" > %{buildroot}%{_sysconfdir}/%{name}.d/apache-regexp
echo "xalan-j2 xalan-j2-serializer %{name}/%{name}-apache-xalan2" > %{buildroot}%{_sysconfdir}/%{name}.d/apache-xalan2
echo "ant/ant-imageio" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/imageio
echo "javamail jaf %{name}/%{name}-javamail" > %{buildroot}%{_sysconfdir}/%{name}.d/javamail
echo "jdepend %{name}/%{name}-jdepend" > %{buildroot}%{_sysconfdir}/%{name}.d/jdepend
echo "jsch %{name}/%{name}-jsch" > %{buildroot}%{_sysconfdir}/%{name}.d/jsch
@ -286,6 +299,10 @@ install -d %{buildroot}%{_javadocdir}/%{name}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
(cd manual; ln -sf %{_javadocdir}/%{name} api)
#manpage
install -d -m 755 %{buildroot}%{_mandir}/man1/
install -p -m 644 man/%{name}.xml %{buildroot}%{_mandir}/man1/%{name}.xml
%if %with tests
%check
LC_ALL=en_US.utf8 %{ant} test
@ -298,6 +315,7 @@ LC_ALL=en_US.utf8 %{ant} test
%dir %{ant_home}/bin
%{ant_home}/bin/ant
%attr(0755,root,root) %{ant_home}/bin/antRun
%{_mandir}/man1/%{name}.*
%dir %{ant_home}/etc
%{ant_home}/etc/ant-update.xsl
%{ant_home}/etc/changelog.xsl
@ -365,6 +383,10 @@ LC_ALL=en_US.utf8 %{ant} test
%{ant_home}/lib/%{name}-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-xalan2
%files imageio -f .mfiles-imageio
%{ant_home}/lib/%{name}-imageio.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/imageio
%files javamail -f .mfiles-javamail
%{ant_home}/lib/%{name}-javamail.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/javamail
@ -409,6 +431,21 @@ LC_ALL=en_US.utf8 %{ant} test
%{_javadocdir}/%{name}
%changelog
* Fri Jan 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.10.12-1
- Upgrade to version 1.10.12
* Mon Jul 19 2021 yaoxin <yaoxin30@huawei.com> - 0:1.10.8-4
- Fix CVE-2021-36373 CVE-2021-36374
* Mon Nov 30 2020 huanghaitao <huanghaitao8@huawei.com> - 0:1.10.8-3
- Fix CVE-2020-11979
* Thu Oct 15 2020 lingsheng<lingsheng@huawei.com> - 0:1.10.8-2
- Change buildrequire and require to java-1.8.0-devel
* Wed Sep 9 2020 zhanghua<zhanghua40@huawei.com> - 0:1.10.8-1
- update to 1.10.8
* Sat Mar 14 2020 zhujunhao<zhujunhao5@huawei.com> - 0:1.10.5-7
- Split ant pack into subpackets

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,20 @@
# ant.conf (Ant 1.8.x)
# JPackage Project <http://www.jpackage.org/>
# Validate --noconfig setting in case being invoked
# from pre Ant 1.6.x environment
if [ -z "$no_config" ] ; then
no_config=true
fi
# Setup ant configuration
if $no_config ; then
# Disable RPM layout
rpm_mode=false
else
# Use RPM layout
rpm_mode=true
# ANT_HOME for rpm layout
ANT_HOME=/usr/share/ant
fi