Hi Jason,
I am happy to have an ant build, however when I run ant dist I got the following compile error. I already modified the "m2Repository" in build.xml to point to my maven repository.
C:\work\workspace\docx4j>ant dist
Buildfile: C:\work\workspace\docx4j\build.xml
clean:
[delete] Deleting directory C:\work\workspace\docx4j\bin
init:
[mkdir] Created dir: C:\work\workspace\docx4j\bin
[copy] Copying 28 files to C:\work\workspace\docx4j\bin
build-project:
[echo] docx4j: C:\work\workspace\docx4j\build.xml
[echo] 1.6
[javac] C:\work\workspace\docx4j\build.xml:87: warning: 'includeantruntime' was not se
t, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1969 source files to C:\work\workspace\docx4j\bin
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapper.j
ava:30: package com.sun.xml.bind.marshaller does not exist
[javac] public class NamespacePrefixMapper extends com.sun.xml.bind.marshaller.Namespa
cePrefixMapper {
[javac] ^
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapperRe
lationshipsPart.java:23: package com.sun.xml.bind.marshaller does not exist
[javac] public class NamespacePrefixMapperRelationshipsPart extends com.sun.xml.bind.m
arshaller.NamespacePrefixMapper {
[javac]
^
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapperUt
ils.java:18: incompatible types
[javac] found : org.docx4j.jaxb.NamespacePrefixMapper
[javac] required: java.lang.Object
[javac] return new NamespacePrefixMapper(); // JAXB Reference Imp
lementation
[javac] ^
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapperUt
ils.java:40: incompatible types
[javac] found : org.docx4j.jaxb.NamespacePrefixMapperRelationshipsPart
[javac] required: java.lang.Object
[javac] return new NamespacePrefixMapperRelationshipsPart();
[javac] ^
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapperUt
ils.java:107: inconvertible types
[javac] found : java.lang.Object
[javac] required: org.docx4j.jaxb.NamespacePrefixMapper
[javac] } else if (namespacePrefixMapper instanceof NamespacePrefixMapper)
{
[javac] ^
[javac] C:\work\workspace\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapperUt
ils.java:109: inconvertible types
[javac] found : java.lang.Object
[javac] required: org.docx4j.jaxb.NamespacePrefixMapper
[javac] return ((NamespacePrefixMapper)namespacePrefixMapper).getP
referredPrefix(namespaceUri, suggestion, requirePrefix);
[javac] ^
[javac] C:\work\workspace\docx4j\src\diffx\com\topologi\diffx\algorithm\DiffXFactory.j
ava:150: warning: non-varargs call of varargs method with inexact argument type for last p
arameter;
[javac] cast to java.lang.Object for a varargs call
[javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[javac] diffex = (DiffXAlgorithm)cons.newInstance(new EventSequence[]{sequence1,
sequence2});
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 6 errors
[javac] 1 warning
BUILD FAILED
C:\work\workspace\docx4j\build.xml:87: Compile failed; see the compiler error output for d
etails.
Total time: 6 seconds
C:\work\workspace\docx4j>