Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-2006, 04:03 PM
Loyal Member
 
Posts: 81
Default Ant problems abound tonight

I am working on porting zimbra to solaris/sparc right now and am running into some problems in the ZimbraServer and other java based areas see below:

Code:
# ant
Buildfile: build.xml

BUILD FAILED
file:/home/jacob/zimbra/main/ZimbraServer/build.xml:9: Unexpected element "exec"

Total time: 4 seconds
I am comfortable with the third party area rewriting makefiles and specs but I am totally clueless when it comes to java, ant, and the like. Any help here is much appreciated.

I am running Solaris 10 with a full developer install, ant 1.5.4, gcc3, and java 1.5.0_06.

Last edited by ringnebula; 06-27-2006 at 04:05 PM..
Reply With Quote
  #2 (permalink)  
Old 06-28-2006, 08:00 AM
Zimbra Employee
 
Posts: 4,792
Default

Which ant target are you trying to run? "ant dist"? Something else?

What is on line 9 of that file?
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 06-28-2006, 11:45 AM
Loyal Member
 
Posts: 81
Default

It doesn't seem to matter what I target but lets use ant dist for example. Here are the first 11 or 12 lines of the file:

Code:
<project name="ZimbraServer" default="jar">

        <property environment="env" />

        <!--
             This machine's hostname.  Use ZIMBRA_HOSTNAME environment variable
             if set.  If not, use "hostname" command output.
        -->
        <exec executable="hostname" outputproperty="exec.hostname"/>
        <condition property="zimbra.server.hostname" value="${env.ZIMBRA_HOSTNAME}">
                <isset property="env.ZIMBRA_HOSTNAME"/>
        </condition>
Reply With Quote
  #4 (permalink)  
Old 06-29-2006, 05:58 PM
Zimbra Employee
 
Posts: 4,792
Default

Must be some problem with ANT + Solaris.. if you just set the env var and remove that line you should be ok for now.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 06-29-2006, 08:06 PM
Loyal Member
 
Posts: 81
Default

I thought of setting the vars myself already but alas, it doesn't work. What does however is using blastwave's ant or instead of the ant shipped with solaris.

All the java components so far build fine with the blastwave ant.

Another note for my how-to.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.