FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 08-19-2011, 02:12 PM
Mathieu Malaterre
 
Default You must specify a valid ANT_HOME directory!

Dear all,

I am trying to upload the latest version of fop. However I cannot
get it to simply to compile anymore:

$ cd *~/debian/pkg-java/trunk/fop
$ svn up
$ svn-buildpackage --svn-dont-purge --svn-lintian --svn-ignore-new
--svn-builder="pdebuild --buildresult `pwd`/../build-area"
Complete layout information:
origDir=.
tagsDir=/home/mathieu/debian/pkg-java/tags/fop
tagsUrl=svn+ssh://malat-guest@svn.debian.org/svn/pkg-java/tags/fop
trunkDir=/home/mathieu/debian/pkg-java/trunk/fop
trunkUrl=svn+ssh://malat-guest@svn.debian.org/svn/pkg-java/trunk/fop
mergeWithUpstream mode detected, looking for ./fop_1.0.dfsg.orig.tar.gz
I: mergeWithUpstream property set, looking for upstream source tarball...
tar --no-same-owner --no-same-permissions --extract --gzip --file
/home/mathieu/debian/pkg-java/trunk/fop/fop_1.0.dfsg.orig.tar.gz
--directory /home/mathieu/debian/pkg-java/trunk/build-area/tmp-0.245328348436491
mv /home/mathieu/debian/pkg-java/trunk/build-area/tmp-0.245328348436491/fop-1.0
/home/mathieu/debian/pkg-java/trunk/build-area/fop-1.0.dfsg
svn --force export /home/mathieu/debian/pkg-java/trunk/fop
/home/mathieu/debian/pkg-java/trunk/build-area/fop-1.0.dfsg
Export complete.
rm -rf /home/mathieu/debian/pkg-java/trunk/build-area/tmp-0.245328348436491
chmod -R u+r+w+X,g+r-w+X,o+r-w+X --
/home/mathieu/debian/pkg-java/trunk/build-area/fop-1.0.dfsg
/bin/sh -c pdebuild --buildresult
/home/mathieu/debian/pkg-java/trunk/fop/../build-area
W: /home/mathieu/.pbuilderrc does not exist
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package fop
dpkg-buildpackage: source version 1:1.0.dfsg-4
dpkg-buildpackage: source changed by Vincent Fourmond <fourmond@debian.org>
dpkg-source --before-build fop-1.0.dfsg
fakeroot debian/rules clean
test -x debian/rules
dh_testroot
dh_clean
You must specify a valid ANT_HOME directory!
make: *** [ant-sanity-check] Error 1
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
Command '/bin/sh -c pdebuild --buildresult
/home/mathieu/debian/pkg-java/trunk/fop/../build-area ' failed in
'/home/mathieu/debian/pkg-java/trunk/build-area/fop-1.0.dfsg', how to
continue now? [Qri?]:
Aborting.

Thanks for any info !
--
Mathieu


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CA+7wUswK-r+1sq1SHv1K0Bvpyky2QVnJwUpMizUCd6kT5Sy4Dg@mail.gma il.com">http://lists.debian.org/CA+7wUswK-r+1sq1SHv1K0Bvpyky2QVnJwUpMizUCd6kT5Sy4Dg@mail.gma il.com
 
Old 08-19-2011, 02:59 PM
Torsten Werner
 
Default You must specify a valid ANT_HOME directory!

Hi Mathieu,

Am 19.08.2011 16:12, schrieb Mathieu Malaterre:
> You must specify a valid ANT_HOME directory!

I cannot reproduce this error in a sid chroot. But I get a null pointer
exception when building version 1.0-4. I could fix that by removing qdox
from Build-Depends and DEB_JARS.

Torsten


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E4E7A42.90401@debian.org">http://lists.debian.org/4E4E7A42.90401@debian.org
 
Old 08-19-2011, 04:45 PM
Mathieu Malaterre
 
Default You must specify a valid ANT_HOME directory!

Here is what I now get after removing qdox :


resourcegen:
[mkdir] Created dir: /tmp/buildd/fop-1.0.dfsg/build/codegen-classes
[javac] /tmp/buildd/fop-1.0.dfsg/build.xml:354: warning:
'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[javac] org/apache/fop/tools/EventConventionException.java added
as org/apache/fop/tools/EventConventionException.class doesn't exist.
[javac] org/apache/fop/tools/EventProducerCollector.java added as
org/apache/fop/tools/EventProducerCollector.class doesn't exist.
[javac] org/apache/fop/tools/EventProducerCollectorTask.java added
as org/apache/fop/tools/EventProducerCollectorTask.class doesn't
exist.
[javac] Compiling 3 source files to
/tmp/buildd/fop-1.0.dfsg/build/codegen-classes
[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-deprecation'
[javac] '-d'
[javac] '/tmp/buildd/fop-1.0.dfsg/build/codegen-classes'
[javac] '-classpath'
[javac] '/tmp/buildd/fop-1.0.dfsg/build/codegen-classes:/tmp/buildd/fop-1.0.dfsg/build/classes:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/batik-all.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/batik-libs.jar:/usr/share/java/xml-apis.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xalan2.jar:/usr/share/java/junit.jar:/usr/share/java/commons-io.jar:/usr/share/java/commons-logging.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/servlet-api-2.4.jar:/usr/lib/jvm/default-java/lib/tools.jar'
[javac] '-sourcepath'
[javac] '/tmp/buildd/fop-1.0.dfsg/src/codegen/java'
[javac] '-target'
[javac] '1.4'
[javac] '-g'
[javac] '-source'
[javac] '1.4'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] Files to be compiled:
[javac]
/tmp/buildd/fop-1.0.dfsg/src/codegen/java/org/apache/fop/tools/EventConventionException.java
[javac]
/tmp/buildd/fop-1.0.dfsg/src/codegen/java/org/apache/fop/tools/EventProducerCollector.java
[javac]
/tmp/buildd/fop-1.0.dfsg/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java
[javac] EventProducerCollector.java:35: package
com.thoughtworks.qdox does not exist
[javac] import com.thoughtworks.qdox.JavaDocBuilder;
[javac] ^
[javac] EventProducerCollector.java:36: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.DefaultDocletTagFactor y;
[javac] ^
[javac] EventProducerCollector.java:37: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.DocletTag;
[javac] ^
[javac] EventProducerCollector.java:38: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.DocletTagFactory;
[javac] ^
[javac] EventProducerCollector.java:39: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.JavaClass;
[javac] ^
[javac] EventProducerCollector.java:40: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.JavaMethod;
[javac] ^
[javac] EventProducerCollector.java:41: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.JavaParameter;
[javac] ^
[javac] EventProducerCollector.java:42: package
com.thoughtworks.qdox.model does not exist
[javac] import com.thoughtworks.qdox.model.Type;
[javac] ^
[javac] EventProducerCollector.java:65: cannot find symbol
[javac] symbol : class DocletTagFactory
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] private DocletTagFactory tagFactory;
[javac] ^
[javac] EventProducerCollector.java:79: cannot find symbol
[javac] symbol : class DocletTagFactory
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] protected DocletTagFactory createDocletTagFactory() {
[javac] ^
[javac] EventProducerCollector.java:107: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] private boolean implementsInterface(JavaClass clazz,
String intf) {
[javac] ^
[javac] EventProducerCollector.java:124: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] protected void processEventProducerInterface(JavaClass clazz)
[javac] ^
[javac] EventProducerCollector.java:138: cannot find symbol
[javac] symbol : class JavaMethod
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] private EventMethodModel createMethodModel(JavaMethod method)
[javac] ^
[javac] EventProducerCollector.java:80: cannot find symbol
[javac] symbol : class DefaultDocletTagFactory
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] return new DefaultDocletTagFactory();
[javac] ^
[javac] EventProducerCollector.java:93: cannot find symbol
[javac] symbol : class JavaDocBuilder
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaDocBuilder builder = new
JavaDocBuilder(this.tagFactory);
[javac] ^
[javac] EventProducerCollector.java:93: cannot find symbol
[javac] symbol : class JavaDocBuilder
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaDocBuilder builder = new
JavaDocBuilder(this.tagFactory);
[javac] ^
[javac] EventProducerCollector.java:95: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass[] classes = builder.getClasses();
[javac] ^
[javac] EventProducerCollector.java:98: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass clazz = classes[i];
[javac] ^
[javac] EventProducerCollector.java:108: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass[] classes = clazz.getImplementedInterfaces();
[javac] ^
[javac] EventProducerCollector.java:110: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass cl = classes[i];
[javac] ^
[javac] EventProducerCollector.java:127: cannot find symbol
[javac] symbol : class JavaMethod
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaMethod[] methods = clazz.getMethods(true);
[javac] ^
[javac] EventProducerCollector.java:129: cannot find symbol
[javac] symbol : class JavaMethod
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaMethod method = methods[i];
[javac] ^
[javac] EventProducerCollector.java:140: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass clazz = method.getParentClass();
[javac] ^
[javac] EventProducerCollector.java:147: cannot find symbol
[javac] symbol : class JavaParameter
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaParameter[] params = method.getParameters();
[javac] ^
[javac] EventProducerCollector.java:152: cannot find symbol
[javac] symbol : class Type
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] Type firstType = params[0].getType();
[javac] ^
[javac] EventProducerCollector.java:159: cannot find symbol
[javac] symbol : class DocletTag
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] DocletTag tag = method.getTagByName("event.severity");
[javac] ^
[javac] EventProducerCollector.java:170: cannot find symbol
[javac] symbol : class JavaParameter
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaParameter p = params[j];
[javac] ^
[javac] EventProducerCollector.java:172: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass pClass = p.getType().getJavaClass();
[javac] ^
[javac] EventProducerCollector.java:186: cannot find symbol
[javac] symbol : class Type
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] Type[] exceptions = method.getExceptions();
[javac] ^
[javac] EventProducerCollector.java:189: cannot find symbol
[javac] symbol : class JavaClass
[javac] location: class org.apache.fop.tools.EventProducerCollector
[javac] JavaClass cl = exceptions[0].getJavaClass();
[javac] ^
[javac] 30 errors

BUILD FAILED
/tmp/buildd/fop-1.0.dfsg/build.xml:354: Compile failed; see the
compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:1150)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:912)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project .java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.Main.start(Main.java:180)
at org.apache.tools.ant.Main.main(Main.java:268)

Total time: 51 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//7587 and its subdirectories
Command '/bin/sh -c pdebuild --buildresult /tmp/fop/../build-area '
failed in '/tmp/build-area/fop-1.0.dfsg', how to continue now? [Qri?]:
Aborting.


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CA+7wUszfvqGmuwv+Cgnut5YYVu4bjQtmnOdbpZs77Hk9-9Znog@mail.gmail.com">http://lists.debian.org/CA+7wUszfvqGmuwv+Cgnut5YYVu4bjQtmnOdbpZs77Hk9-9Znog@mail.gmail.com
 
Old 08-19-2011, 05:01 PM
Sylvestre Ledru
 
Default You must specify a valid ANT_HOME directory!

Le vendredi 19 août 2011 à 18:45 +0200, Mathieu Malaterre a écrit :
> Here is what I now get after removing qdox :
>

> /tmp/buildd/fop-1.0.dfsg/src/codegen/java/org/apache/fop/tools/EventProducerCollectorTask.java
> [javac] EventProducerCollector.java:35: package
> com.thoughtworks.qdox does not exist
> [javac] import com.thoughtworks.qdox.JavaDocBuilder;
I think it is caused by the fact that it uses a different version of
qdox.

Sylvestre



--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1313773303.10706.34.camel@losinj.inria.fr">http://lists.debian.org/1313773303.10706.34.camel@losinj.inria.fr
 

Thread Tools




All times are GMT. The time now is 01:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org