Re: Compiling a woa using WOProject - classes not included in app jar

From: Fabian Peters (lists.fabia..-lumo.com)
Date: Mon Jul 31 2006 - 11:36:11 EDT

  • Next message: Marc Guenther: "Re: Compiling a woa using WOProject - classes not included in app jar"

    Hi Hugi,

    You'll need to add a compile task to your build.xml. Something like:

            <!-- compile target for deployment build target -->
            <target name="compile" depends="someTarget">
                    <tstamp />
                    <taskdef name="wocompile"
                             classname="org.objectstyle.woproject.ant.WOCompile"/>
                    <wocompile srcdir="src"
                               destdir="bin"
                               debug="on"
                               optimize="on"
                               deprecation="off">
                            <frameworks refid="system.frameworks" />
                            <frameworks refid="local.frameworks" />
                            <frameworks refid="home.frameworks" />
                            <classpath>
                                    <fileset dir="/usr/local/apple/Local/Library/WebObjects/Extensions"
                                             includes="**/*.jar"/>
                                    <fileset dir="." includes="Libraries/*.jar" />
                            </classpath>
                    </wocompile>
            </target>

    Of course you'll have to adjust the "depends" and "classpath" entries
    according to your setup. Also, you'll most likely want your
    "build.woapp" target to depend on the compile target. Documentation
    is at <http://objectstyle.org/woproject-old/ant/>

    HTH

    Fabian

    Am 31.07.2006 um 16:56 schrieb Hugi Thordarson:

    > Good morning all.
    >
    > I am an Ant beginner, setting up a build server (Linux) on our
    > network. I installed Ant 1.6.5 on the machine, installed the
    > woproject.jar into Ant's library folder, checked out a WO
    > Application project and built it using the build.xml generated by
    > WOLips.
    >
    > Sure enough, the build process is finished successfully, and I end
    > up with what looks like a regular WOA bundle in the project's
    > "dist" directory. But when I look into the app's jar file, it does
    > not contain any classes at all, seems like no java source was
    > compiled.
    >
    > The same build file works fine when run from within Eclipse on our
    > development machines.
    >
    > Being a beginner, I don't know what additional data to provide, but
    > if anyone can offer any ideas as to what the problem might be, I
    > would be very grateful (as in Free-Beer-At-The-WWDC-Grateful).
    >
    > Cheers,
    > - Hugi



    This archive was generated by hypermail 2.0.0 : Mon Jul 31 2006 - 11:36:17 EDT