Hi Michael,

webtest.xml is intended to work with WebTest distribution: it assumes
for instance that the jar are located in the lib subfolder of the folder
where it is itself located. Therefore it can't work with the raw sources.

When I want to use local sources of WebTest or HtmlUnit I still use a
"normal" WebTest build but customize the classpath in the main build
file like this:

------------
...
<target name="wt.defineTasks.init" description="customized classpath">
  <antcall target="wt.webtest.wt.defineTasks.init" inheritRefs="true"/>
    <path id="wt.defineTasks.classpath.customPrepend">
      <pathelement location="${webtests.localHtmlunitClasses}"/>
      <pathelement location="${webtests.localWebtestClasses}"/>
    </path>
</target>
...
<import file="${webtest.home}/webtest.xml" description="Import all
functionalities for a full build"/>
...
------------

Marc.
-- 
Blog: http://mguillem.wordpress.com


Michael Habbert wrote:
> Hi Marc,
> 
> I just tested the features of the webtest.xml as shown in the screencast.
> Is there a difference between downloaded sources and svn?
> 
> I did it with the updated svn sources:
> ---------------------
> [EMAIL PROTECTED] test-web-project> ant
> ANT_OPTS: -Xmx640m -Dhttp.proxyHost=wwwcache -Dhttp.proxyPort=3128
> -Dbuild.compiler=jikes
> ANT_ARGS:
> Buildfile: build.xml
> 
> wt.init:
> 
> wt.defineTimestamps:
> 
> wt.defineTasks.init:
> 
> wt.defineTasks:
>   [taskdef] Could not load definitions from resource webtest.taskdef. It
> could not be found.
> 
> BUILD FAILED
> /usr/local/projekte/common/svn_webtest/webtest.xml:115: taskdef class
> org.codehaus.groovy.ant.Groovy cannot be found
> ----------------
> 
> thanks,
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to