RE: WOPath task in nightly

From: Bill Michell (bill.michel..bc.co.uk)
Date: Mon Sep 08 2008 - 17:12:52 EDT

  • Next message: Mike Schrag: "Re: Hotness library location on Windows"

    It turns path elements, including <frameworks> elements, into a property
    suitable for using as a classpath.
     
    Snippets from my build.xml file:
     
      <if>
       <isset property="is.woapplication"/>
       <then>
        <wopath id="test.classpath">
         <fileset dir="${dest.dir}/${project.dir.name}">
          <include name="**/*.jar" />
          <include name="**/*.zip" />
         </fileset>
        </wopath>
       </then>
       <else>
        <wopath id="test.classpath">
         <fileset dir="${dest.dir}/${project.dir.name}">
          <include name="**/*.jar" />
          <include name="**/*.zip" />
         </fileset>
         <frameworks root="Local" eclipse="true"/>
        </wopath>
       </else>
      </if>

        <!-- This pathconvert isn't strictly required - it is just logged
    for diagnostic purposes -->
        <pathconvert property="test.classpath.string"
    refid="test.classpath"/>
        <echo level="info" message="classpath = ${test.classpath.string}"/>

        <testng outputDir="${testng.report.dir}"
          haltOnfailure="true"
          annotations="${testng.java.src.version}"
          jvm="${bp.santa.test.jvm.location}"
          parallel="${testng.parallel.mode}"
          threadCount="${testng.parallel.threads}"
          groups="${testng.groups}"
          excludedgroups="${tesntg.excludedgroups}"
          suitename="${ant.project.name} suite"
          testname="${ant.project.name}"
          workingDir="${basedir}"
          dumpCommand="${testng.dumpcommand}"
    >
         <classpath refid="test.classpath"/>
            <classfileset dir="${classes.dir}">
            <patternset>
           <includesfile name="woproject/classes.include.patternset"/>
           <excludesfile name="woproject/classes.exclude.patternset"/>
          </patternset>
         </classfileset>
        </testng>

    In other words, I can launch my unit tests without needing the code from
    wobootstrap.jar

    --
    Bill Michell
    Development Team Leader, Broadcast Platforms, BBC FM&T (Journalism). 
    

    ________________________________

    From: Mike Schrag [mailto:mschra..dimension.com] Sent: 08 September 2008 18:36 To: woproject-de..bjectstyle.org Subject: Re: WOPath task in nightly

    The WOPath ant task in the new Nightly wolips doesn't seem to do the right thing with nested <framework> elements. My WOCompile task is finding the frameworks, but I need WOPath in order to build the correct classpath for my autiomated unit tests...

    Am I correct (if so I'll report in JIRA) or am I doing something wrong?

    Let's go to step one -- wtf is WOPath :) I've never actually used that task, so I'm not sure what it does ... Can you give me an example usage + what it used to do + what it does now?

    ms



    This archive was generated by hypermail 2.0.0 : Mon Sep 08 2008 - 17:14:55 EDT