Cool, thanks for that... I was still using the previous version ( the
XML4J_3_0_0EA3 one ).
So I got the latest version, and tried to build the jar files ( im
running Solaris 2.5.1 ).. and

1)   The makefile ( src/Makefile.incl ) is not compatible with sun make

[EMAIL PROTECTED]:/home/richja/lib/xerces-1_0_3% make -n jars
make: Fatal error in reader: ./src/Makefile.incl, line 3: Unexpected end
 of line seen.

2)   So I tried GNU make .... without much success too.

The problem is the following bit of shell script run as part of the
build: Sun ksh objects to it:

make[6]: Entering directory
`/home/richja/lib/xerces-1_0_3/src/org/apache/xerces/dom/events'
if [ -n "" ]; \
then for i in ;do \
        echo "/home/richja/bin/make -C $i"; /home/richja/bin/make -C $i;
 \
     done; \
fi
/bin/sh: syntax error at line 1: `;' unexpected

I guess that its trying to find the packages to build, there are none,
so the expansion of $(DIRS) is "", but the for command requires some
parameters,
and it falls in a heap.

I made a (low-tech) adjustment to the src/Makefile.incl:

dirs::
        if [ -n "$(DIRS)" ]; \
        then for i in  x $(DIRS);do \
                if [ "$$i" != "x" ]; \
                        then echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
                fi; \
             done; \
        fi

cleandirs::
        if [ -n "$(DIRS)" ]; \
        then for i in $(DIRS);do \
                if [ "$$i" != "x" ]; \
                        then echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i
 clean; \
                fi; \
             done; \
        fi

and this now works.... (but still only with GNU make)

Then trying to build the docs:

[EMAIL PROTECTED]:/home/richja/lib/xerces-1_0_3% ~/bin/make docs   ( <-this
 is GNU make )
Building Stylebook docs in docs directory
mkdir -p  docs/html
java -classpath
"./src:./samples:./tools/stylebook-1.0-b2.jar:./tools/xalan-0.19.2.jar:./tools/xerces-1.0.1.jar:/home/richja/dev/its/java/tradeserver/external/jconnect/classes:/home/richja/dev/its/java/tradeserver/external/log4j-v0.7.1/log4j-v0.7.1.jar:/home/richja/dev/its/java/tradeserver/external/XML4J_3_0_0EA3/xerces.jar:.:.."

org.apache.stylebook.StyleBook "targetDirectory=docs/html"
docs/docs-book.xml tools/style-apachexml.jar
[StyleBook] Overriding targetDirectory="docs/html" (Old=".")
[StyleBook] Project URL: "sbk:/sources/docs-book.xml"
[BasicEngine] Initializing
[Loader] Parsing Project file
[XalanProcessor] Applying XSL sheet
"sbk:/style/stylesheets/book2project.xsl"
[Loader] Caught java.util.zip.ZipException
[StyleBook] Caught org.apache.stylebook.LoadingException
org.apache.stylebook.LoadingException: error in opening zip file
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Exception.java:42)
        at
org.apache.stylebook.LoadingException.<init>(LoadingException.java:34)
        at org.apache.stylebook.Loader.load(Compiled Code)
        at org.apache.stylebook.StyleBook.getProject(StyleBook.java:121)
        at org.apache.stylebook.StyleBook.main(Compiled Code)
[StyleBook] Error creating project
make: *** [docs] Error 3

Any thoughts?

TIA!

Cheers

James Richardson



Reply via email to