Results 1 to 5 of 5

Thread: Ant problems abound tonight

  1. #1
    ringnebula is offline Loyal Member
    Join Date
    Jan 2006
    Posts
    81
    Rep Power
    9

    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.

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

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

    What is on line 9 of that file?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    ringnebula is offline Loyal Member
    Join Date
    Jan 2006
    Posts
    81
    Rep Power
    9

    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>

  4. #4
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    ringnebula is offline Loyal Member
    Join Date
    Jan 2006
    Posts
    81
    Rep Power
    9

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iSync Connector / Apple Address Book Problems
    By jrosen in forum CalDAV / CardDAV / iSync
    Replies: 11
    Last Post: 04-16-2007, 03:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •