Menu

#903 Building from Source

open
nobody
None
5
2014-10-22
2014-10-22
orbisvicis
No

Message when running ant:

$ ant
Buildfile: .../Colossus/build.xml

init:
[mkdir] Created dir: .../Colossus/${build.classes.dir}
[mkdir] Created dir: .../Colossus/${testresults.dir}

compile:
[javac] .../Colossus/build.xml:79: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
.../Colossus/build.xml:79: srcdir ".../Colossus/${core.src.dir}" does not exist!

Actually, build.xml references quite a few undefined variables: core.src.dir, testresults.dir, build.classes.dir, build.javadoc.dir, etc. These don't seem meant to be user-modifiable. Clearly, I must be missing a build step.

Discussion

  • Clemens Katzer

    Clemens Katzer - 2014-10-22

    Which version of ant do you use, and in which directory are you? We used ant 1.7 and 1.8; newer ones most likely do not work.

    I checkout the Colossus directory and cd into it and say "ant" inside and it works for me:

    [clemens@zotac ~]$ cd
    [clemens@zotac ~]$ mkdir svn
    [clemens@zotac ~]$ cd svn
    [clemens@zotac svn]$
    [clemens@zotac svn]$ svn checkout svn://svn.code.sf.net/p/colossus/code/trunk/Colossus trunk1
    A trunk1/logging.properties.ccj
    A trunk1/logging.properties
    A trunk1/.project
    A trunk1/htdocs
    A trunk1/htdocs/Building.html
    A trunk1/htdocs/Navigation.html
    A trunk1/htdocs/ColossusBanner.html
    A trunk1/htdocs/public-testing
    .....
    A trunk1/run-jws.bat
    A trunk1/.settings
    A trunk1/.settings/org.eclipse.jdt.core.prefs
    A trunk1/.settings/org.eclipse.jdt.ui.prefs
    U trunk1
    Checked out revision 5368.
    [clemens@zotac svn]$ cd trunk1/
    [clemens@zotac trunk1]$
    [clemens@zotac trunk1]$
    [clemens@zotac trunk1]$ ant
    Buildfile: /home/clemens/svn/trunk1/build.xml

    init:
    [mkdir] Created dir: /home/clemens/svn/trunk1/build/ant/classes
    [mkdir] Created dir: /home/clemens/svn/trunk1/build/ant/testresults

    compile:
    [javac] /home/clemens/svn/trunk1/build.xml:79: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 277 source files to /home/clemens/svn/trunk1/build/ant/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning

    compileVariants:
    [javac] /home/clemens/svn/trunk1/build.xml:87: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 17 source files to /home/clemens/svn/trunk1/build/ant/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] 1 warning

    jar:
    [jar] Building jar: /home/clemens/svn/trunk1/Colossus.jar
    [jar] Updating jar: /home/clemens/svn/trunk1/Colossus.jar
    [jar] Updating jar: /home/clemens/svn/trunk1/Colossus.jar

    BUILD SUCCESSFUL
    Total time: 48 seconds

    [clemens@zotac trunk1]$ ant -version
    Apache Ant(TM) version 1.8.4 compiled on February 13 2013
    [clemens@zotac trunk1]$

     
  • orbisvicis

    orbisvicis - 2014-10-22

    Hmm, I was using the sourceforge tarball (Colossus-0.14.0.zip) and not subversion. That tarball is missing build.properties. For the record, building from subversion using ant 1.9.3 (ubuntu 14.04) works perfectly.

    Thanks,

     

Log in to post a comment.