[Libreoffice] bug in Jar_ScriptProviderForJava.mk?

Michael Stahl mstahl at redhat.com
Tue Nov 15 10:28:00 PST 2011


On 15/11/11 09:26, Noel Grandin wrote:
> /scripting/Jar_ScriptProviderForJava.mk has the following lines in it:
>
> /31 $(eval $(call gb_Jar_add_jars,ScriptProviderForJava,\
> 32 $(OUTDIR)/bin/juh.jar \
> 33 $(OUTDIR)/bin/jurt.jar \
> 34 $(OUTDIR)/bin/ridl.jar \
> 35 $(OUTDIR)/bin/unoil.jar \
> 36 $(OUTDIR)/bin/ScriptFramework.jar \
> 37 ))
> /
> But when I execute build --verbose in /scripting I get
>
> /[ build JCS ] Jar/ScriptProviderForJava
> R=c:/libreoffice && O=$R/libo/solver/wntmsci12.pro &&
> W=$R/libo/workdir/wntmsci12.pro && S=$R/libo && mkdir -p
> $W/JavaClassSet/Jar/ScriptProviderForJava/ &&
> RESPONSEFILE=C:/cygwin/tmp/gbuild.4DIIuw &&
> C:/PROGRA~2/Java/JDK16~1.0_2/bin/javac.exe -cp
> "C:/PROGRA~2/Java/JDK16~1.0_2/jre/lib/rt.jar;.;$O/bin/juh.jar;$O/bin/jurt.jar;$O/bin/ridl.jar;$O/bin/unoil.jar;$W/JavaClassSet/Jar/ScriptProviderForJava"
> -d $W/JavaClassSet/Jar/ScriptProviderForJava @$RESPONSEFILE && rm -f
> $RESPONSEFILE && touch $W/JavaClassSet/Jar/ScriptProviderForJava/done
> [ build CHK ] loaded modules: scripting
> c:\libreoffice\libo\scripting\java\com\sun\star\script\framework\provider\java\ScriptProviderForJava.java:50:
> package com.sun.star.script.framework.container does not exist
> /
> Note that despite being added in the build script, is
> ScriptFramework.jar is NOT on the command line.

that is clearly impossible :-/

> Any ideas? I'm afraid I'm still getting to grips with the gbuild framework.

hmm... if you edit Jar_ScriptProviderForJava.mk, and move 
ScriptFramework.jar first, what happens then?

also you could try to edit solenv/gbuild/JavaClassSet.mk, and in the 
definition of gb_JavaClassSet_add_jar replace all "eval" with "info", 
which should print some debug output (but it won't build that way...)

in other words i have no idea what could cause this.

> Thank, Noel Grandin



More information about the LibreOffice mailing list