NEWBIE ANT build error : bin not found

From: Benoit Mangez (benoit.mange..enali.be)
Date: Wed Jul 02 2003 - 07:40:14 EDT

  • Next message: Ulrich Köster: "Re: NEWBIE ANT build error : bin not found"

    I try to run a woAplication with WOLips 1.0.3, java 1.3.1, macOSX
    10.2.6, WO 5.1.

    When I build the woApplication (with ANT), I receive
    "MyWOApplication.woa" with no jar.

    I have the following error:

    [woapplication] BUILD FAILED: file:/.../build.xml:43:
    /.../MyWOApplication/bin not found.

    I've also notice that the ant.* files where empty:
    more ant.classpaths.user.home
    An empty file result in a full filesystem scan

    I assume I made a mistake in the build.xml :

    <project name="MyWOApplication" default="build" basedir=".">

            <!-- main targets -->
            <!-- add optional targets to depends list if needed -->
            <target name="build" depends="setProps,init.build,build.woapp"/>

            <target name="install" depends="setProps,init.install,build.woapp"/>
            
            <target name="clean" depends="setProps">
                      <delete dir="${project.name}.woa"/>
            </target>

            <!-- property determination -->
            <target name="setProps">
                    <property file="build.properties"/>
                    <property
    file="${user.home}${file.separator}Library${file.separator}wobuild.prope
    rties"/>
                    <condition property="wo.properties.check.failed">
                            <not>
                                 <and>
                                           <isset property="wo.wosystemroot"/>
                                           <isset property="wo.wolocalroot"/>
                                 </and>
                         </not>
                       </condition>
                       <fail message="Could not find
    ${user.home}${file.separator}Library${file.separator}wobuild.properties.
    " if="wo.properties.check.failed"/>
                    <property name="install.dir"
    value="${wo.wolocalroot}/Local/Library/Webobjects/Frameworks"/>
                    
            </target>
                    
            <!-- basic initializations -->
            <target name="init.install">
                     <tstamp/>
                    <property name="dest.dir" value="${install.dir}"/>
            </target>
            
            <target name="init.build">
                     <tstamp/>
                    <property name="dest.dir" value="/Local/Library/Frameworks"/>
            </target>
            
            <!-- woproject tasks -->
            <target name="build.woapp" depends="setProps">
                    <woapplication name="${project.name}" stdFrameworks="false"
    destDir="${dest.dir}">
                                <classes dir="${classes.dir}">
                                </classes>
                                <wsresources dir=".">
                                        <include name="addYourWebServerResourcesHere"/>
                                    <exclude name="**/*.woa/**"/>
                            </wsresources>
                                <resources dir=".">
                                    <include name="Properties"/>
                                        <include name="**/*.eomodeld/"/>
                                        <include name="**/*.d2wmodel"/>
                                    <include name="**/*.wo/"/>
                                    <include name="**/*.api"/>
                                    <include name="**/*.strings"/>
                                    <exclude name="**/*.eomodeld~/"/>
                                    <exclude name="**/*.woa/**"/>
                            </resources>
                            <frameworks root="${wo.wosystemroot}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.wo.wosystemroot"/>
                                    </patternset>
                                </frameworks>
                                <frameworks root="${wo.wolocalroot}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.wo.wolocalroot"/>
                                    </patternset>
                                </frameworks>
                            <frameworks root="${user.home}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.user.home"/>
                                    </patternset>
                                </frameworks>
                            <otherclasspath root="${wo.wosystemroot}">
                                        <patternset>
                                               <includesfile name="ant.classpaths.wo.wosystemroot"/>
                                    </patternset>
                            </otherclasspath>
                            <lib dir=".">
                                    <include name="Add .jar's that should be copied in the woa."/>
                                    <exclude name="**/*.woa/**"/>
                            </lib>
                        </woapplication>
            </target>

            <!-- optional targets -->
            <!-- copy strings files -->
            <target name="copy.strings">
                         <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources">
                                    <fileset dir="." casesensitive="yes">
                                    <include name="*.strings"/>
                                     <include name="**/*.strings"/>
                                 </fileset>
                              <mapper type="flatten"/>
                          </copy>
              </target>

    </project>

    Benoit



    This archive was generated by hypermail 2.0.0 : Wed Jul 02 2003 - 07:40:09 EDT