[ https://issues.apache.org/jira/browse/THRIFT-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997203#comment-12997203 ]
Nevo Hed edited comment on THRIFT-731 at 2/20/11 7:52 PM: ---------------------------------------------------------- I also installed a new ant (1.8.2) without removing an older one. I also have multiple Java environments. My ANT_HOME & JAVA_HOME variables seem to be set correctly through /etc/profile.d/java.sh (and marked for export) I tested these both logged in as myself and as root (su -l). but my problem was when running 'sudo make install'. The 'sudo' manual talks about the '-E' option to preserve the environment, but I would assume that this would not be a desirable option to use While I know my way around make, but not so much with ant or java, I was wondering if you could comment if the following is a reasonable alternative $ sudo make JAVA_HOME=$JAVA_HOME ANT_HOME=$ANT_HOME install (explicitly passing the 2 variables to make) was (Author: nhed): I also installed a new ant (1.8.2) without removing an older one. I also have multiple Java environments. My ANT_HOME & JAVA_HOME variables seem to be set correctly through /etc/profile.d/java.sh (and marked for export) I tested these both logged in as myself and as root (su -l). but my problem was when running 'sudo make install'. The 'sudo' manual taked about the '-E' option to preserve the environment, but I would assume that this would not be a desirable option to use While I know my way around make, but not so much with ant or java, I was wondering if you could comment if the following is a reasonable alternative $ sudo make JAVA_HOME=$JAVA_HOME ANT_HOME=$ANT_HOME install (explicitly passing the 2 variables to make) > configure doesn't check for ant >= 1.7 > -------------------------------------- > > Key: THRIFT-731 > URL: https://issues.apache.org/jira/browse/THRIFT-731 > Project: Thrift > Issue Type: Bug > Components: Java - Compiler > Reporter: Henry Robinson > Assignee: Harlan Lieberman-Berg > Priority: Minor > Fix For: 0.7 > > Attachments: ant.diff, configure.diff > > > ./configure on a machine with ant 1.6 successfully runs, even though it's > required for the Java build step - otherwise you get > BUILD FAILED > /home/henry/thrift-0.2.0/lib/java/build.xml:86: Class > org.apache.tools.ant.taskdefs.ConditionTask doesn't support the nested > "typefound" element. > Upgrading to ant 1.7.1 fixed the build failure, but would be nice if > configure gave a clue. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira