Accepting request 671834 from Java:packages
Speed-up the bootstrap build OBS-URL: https://build.opensuse.org/request/show/671834 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr?expand=0&rev=46
This commit is contained in:
commit
f95fbca799
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 1 11:19:37 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Speed-up build by compiling all *.java files in one javac
|
||||||
|
invocation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 15 05:55:58 UTC 2018 - fstrba@suse.com
|
Tue May 15 05:55:58 UTC 2018 - fstrba@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package antlr-bootstrap
|
# spec file for package antlr-bootstrap
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -48,10 +48,7 @@ CLASSPATH_ORIG="$CLASSPATH"
|
|||||||
function delBinaryFiles() {
|
function delBinaryFiles() {
|
||||||
set +x
|
set +x
|
||||||
echo deleting binary files ...
|
echo deleting binary files ...
|
||||||
for file in `find . -name "*.class" -o -name "*.jar" -o -name "*DELETED-BY-PACKAGER*"`
|
find . -name "*.class" -o -name "*.jar" -o -name "*DELETED-BY-PACKAGER*" -delete
|
||||||
do
|
|
||||||
rm -rf $file
|
|
||||||
done
|
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
#>>> make %{?_smp_mflags} a string with all jar files found in target folder that can be used for a classpath string
|
#>>> make %{?_smp_mflags} a string with all jar files found in target folder that can be used for a classpath string
|
||||||
@ -71,19 +68,15 @@ function compileFiles() {
|
|||||||
mkTargetClasspath
|
mkTargetClasspath
|
||||||
set +x
|
set +x
|
||||||
COMPILE_CLASSPATH_PATH=.:${JAR_CLASSPATH}
|
COMPILE_CLASSPATH_PATH=.:${JAR_CLASSPATH}
|
||||||
echo using: $COMPILER_COMMAND $COMPILE_CLASSPATH_PATH \$file
|
echo -e "$COMPILER_COMMAND $COMPILE_CLASSPATH_PATH $(find . -name "*.java" | xargs)"
|
||||||
for file in `find . -name "*.java"`
|
$COMPILER_COMMAND $COMPILE_CLASSPATH_PATH $(find . -name "*.java" | xargs)
|
||||||
do
|
# check for errors
|
||||||
echo -e "$COMPILER_COMMAND $COMPILE_CLASSPATH_PATH $file ... \c"
|
if [ $? != 0 ]
|
||||||
$COMPILER_COMMAND $COMPILE_CLASSPATH_PATH $file
|
then
|
||||||
# check for errors
|
echo ERROR
|
||||||
if [ $? != 0 ]
|
exit 1;
|
||||||
then
|
fi
|
||||||
echo ERROR
|
echo done
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
echo done
|
|
||||||
done
|
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
#>>> make %{?_smp_mflags} jar archive
|
#>>> make %{?_smp_mflags} jar archive
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package antlr
|
# spec file for package antlr
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
Loading…
Reference in New Issue
Block a user