compile from ant

From: Mike Schrag (mschra..dimension.com)
Date: Wed Oct 05 2005 - 11:03:37 EDT

  • Next message: Bill Michell: "RE: compile from ant"

    I normally build out of Eclipse, but for one of my projects I setup a
    nightly build and realized I needed to add a compile target to the
    wolips build.xml. I'm not sure if this is the most efficient way,
    but it worked for me:

             <target name = "compileAndBuild" depends =
    "setProps,init.build,compile,build.woapp,ssdd,war" />

             <target name = "compile" depends = "setProps,init.build" >
                     <mkdir dir = "bin"/>
                     <javac srcdir = "src" destdir = "bin">
                             <classpath>
                                     <fileset dir="$
    {wo.dir.user.home.library.frameworks}" includesfile = "woproject/
    ant.frameworks.user.home">
                                             <include name = "**/*.jar"/>
                                     </fileset>
                                     <fileset dir="${wo.wolocalroot}"
    includesfile = "woproject/ant.frameworks.wo.wolocalroot">
                                             <include name = "**/*.jar"/>
                                     </fileset>
                                     <fileset dir="${wo.wosystemroot}"
    includesfile = "woproject/ant.frameworks.wo.wosystemroot">
                                             <include name = "**/*.jar"/>
                                     </fileset>
                                     <fileset dir = "lib">
                                             <include name="**/*.jar"/>
                                     </fileset>
                             </classpath>
                     </javac>
             </target>

    and then I run ant:

    ant -lib /Path/To/Folder/Containing/woproject.jar/ -f /Path/To/
    build.xml compileAndBuild

    ms



    This archive was generated by hypermail 2.0.0 : Wed Oct 05 2005 - 11:03:46 EDT