/hg/icedtea-web: Added check for xsltproc tool

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Thu Jan 5 08:32:36 PST 2012


changeset 64979652c3b7 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=64979652c3b7
author: Jiri Vanek <jvanek at redhat.com>
date: Thu Jan 05 17:33:06 2012 +0100

	Added check for xsltproc tool


diffstat:

 ChangeLog    |   7 +++++++
 Makefile.am  |  10 +++++++---
 configure.ac |   2 ++
 3 files changed, 16 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r 95dee11ecb8a -r 64979652c3b7 ChangeLog
--- a/ChangeLog	Thu Dec 22 16:15:54 2011 -0500
+++ b/ChangeLog	Thu Jan 05 17:33:06 2012 +0100
@@ -1,3 +1,10 @@
+2011-12-15  Jiri Vanek  <jvanek at redhat.com>
+
+	* configure.ac: added search for xsltproc program and setting
+	WITH_XSLTPROC variable
+	* Makefile.am: xsltproc result is no longer ignored, command
+	itself is in conditional block 
+
 2011-12-22  Thomas Meyer <thomas at m3y3r.de>
 
 	* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc(sendMember): Use
diff -r 95dee11ecb8a -r 64979652c3b7 Makefile.am
--- a/Makefile.am	Thu Dec 22 16:15:54 2011 -0500
+++ b/Makefile.am	Thu Jan 05 17:33:06 2012 +0100
@@ -564,7 +564,9 @@
 	  > stdout.log 2> stderr.log ; \
 	 cat stdout.log ; \
 	 cat stderr.log >&2
-	-xsltproc $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/jreport.xsl $(JNLP_TESTS_ENGINE_DIR)/tests-output.xml > $(TESTS_DIR)/index_reproducers.html
+if WITH_XSLTPROC
+	$(XSLTPROC) $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/jreport.xsl $(JNLP_TESTS_ENGINE_DIR)/tests-output.xml > $(TESTS_DIR)/index_reproducers.html
+endif
 	touch $@
 
 netx-unit-tests-source-files.txt:
@@ -609,8 +611,10 @@
 	  $(BOOT_DIR)/bin/java -Xbootclasspath:$(RUNTIME) CommandLine $$class_names \
 	  > stdout.log 2> stderr.log ; \
 	cat stdout.log ; \
-	cat stderr.log >&2 ; 
-	-xsltproc $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/jreport.xsl $(NETX_UNIT_TEST_DIR)/tests-output.xml > $(TESTS_DIR)/index_unit.html
+	cat stderr.log >&2
+if WITH_XSLTPROC
+	$(XSLTPROC) $(TESTS_SRCDIR)/$(REPORT_STYLES_DIRNAME)/jreport.xsl $(NETX_UNIT_TEST_DIR)/tests-output.xml > $(TESTS_DIR)/index_unit.html
+endif
 	touch $@
 
 #warning,  during this target tests.build/netx/unit/tests-output.xml is backup and rewriten (but not coresponding html file)
diff -r 95dee11ecb8a -r 64979652c3b7 configure.ac
--- a/configure.ac	Thu Dec 22 16:15:54 2011 -0500
+++ b/configure.ac	Thu Jan 05 17:33:06 2012 +0100
@@ -87,6 +87,8 @@
 # Find optional depedencies
 #
 
+AC_CHECK_PROGS([XSLTPROC],[xsltproc],[], [])
+AM_CONDITIONAL([WITH_XSLTPROC], [test x"$XSLTPROC" != x ])
 IT_FIND_OPTIONAL_JAR([rhino], RHINO,
     [/usr/share/java/js.jar /usr/share/rhino-1.6/lib/js.jar])
 IT_FIND_OPTIONAL_JAR([junit], JUNIT,



More information about the distro-pkg-dev mailing list