Re: Zip the dist

From: Cornelius Jaeger (cjaege..isualfood.ch)
Date: Thu Jul 12 2007 - 15:21:52 EDT

  • Next message: Pierre Frisch: "Preferences"

    hi chuck

    that worked like a charm.

    turns out i had a Argument set in the Main tab of the External Tools.

    perfect thx

    Cornelius

    On 12.07.2007, at 19:21, Chuck Hill wrote:

    >
    > On Jul 12, 2007, at 10:04 AM, Cornelius Jaeger wrote:
    >
    >> Hi Chuck Hi Andrew
    >>
    >> Sweet, so you guys create a target? or hook it into the build
    >> somewhere? i'm a little lost on where to hook this in.
    >
    > There is no one right way.
    >
    > 1. You could add it at the end of the build.woapp target.
    >
    > 2. You could put it in a zip target, and add it like this:
    >
    > <target name="compileAndBuild"
    > depends="setProps,init.build,compile,build.woapp,ssdd,war, zip" />
    >
    > 3. You could put it in a zip target, and add it like this:
    >
    > <target name="zip" depends="compileAndBuild" />
    >
    >
    >> i tried the following but i get a nullpointer exception on line 55
    >> where build.xml tries to fix the web xml content (which i don't
    >> think i use, no ssdd/war):
    >>
    >> webXML_CustomContent="${webXML_CustomContent}">
    >
    > Without seeing the exception and trace, I'd be guessing. You could
    > just remove that:
    >
    > <woapplication name="${project.name}" stdFrameworks="false"
    > destDir="${dest.dir}"
    > customInfoPListContent="${customInfoPListContent}"
    > principalClass="${principalClass}">
    >
    >
    >
    >>
    >> here is the target i created, i run it from the External Tools
    >> GUI. I tried running it with depends=build and buildAndCompile.
    >> same error always.
    >>
    >>
    >> <target name="zipit" depends="setProps,init.build,build.woapp">
    >> <zip destfile="${dest.dir}/${project.name}_${DSTAMP}$
    >> {TSTAMP}.zip"
    >> update="true"
    >> whenempty="fail"
    >> duplicate="fail"
    >> roundup="false">
    >> <zipfileset dir="${dest.dir}" includes="$
    >> {project.name}.woa/${project.name}" filemode="740"/>
    >> <zipfileset dir="${dest.dir}" includes="**" excludes="$
    >> {project.name}.woa/${project.name}"/>
    >> </zip>
    >> </target>
    >>
    >>
    >> thx
    >>
    >> cornelius
    >>
    >> On 11.07.2007, at 23:19, Andrew Lindesay wrote:
    >>
    >>> Hello Cornelius; I do something like what Chuck said, but
    >>> specifically with ZIP...
    >>>
    >>> <zip destfile="${dest.dir}/${project.name}_${DSTAMP}$
    >>> {TSTAMP}.zip">
    >>> <zipfileset dir="${dest.dir}" includes="${project.name}.woa/
    >>> ${project.name}" filemode="740"/>
    >>> <zipfileset dir="${dest.dir}" includes="**" excludes="$
    >>> {project.name}.woa/${project.name}"/>
    >>> </zip>
    >>>
    >>>> <zip destfile="${dist}/${projectName}.zip"
    >>>> basedir="${dist}.woa"
    >>>> update="true"
    >>>> level="9"
    >>>> whenempty="fail"
    >>>> duplicate="fail"
    >>>> roundup="false"
    >>>> />
    >>>
    >>> ___
    >>> Andrew Lindesay
    >>> technology : www.lindesay.co.nz
    >>> business : www.silvereye.co.nz
    >>>
    >>>
    >>
    >>
    >
    > --
    >
    > Practical WebObjects - for developers who want to increase their
    > overall knowledge of WebObjects or who are trying to solve specific
    > problems.
    > http://www.global-village.net/products/practical_webobjects
    >
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Jul 12 2007 - 15:23:03 EDT