gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject now, why isnt this working?
Date Fri, 22 Sep 2006 10:32:43 GMT

I'm adding some more stuff to gump so we can do more tests on antunit, 
the new ant test framework, and adding the various dirs in which things 
run. Here's the descriptor, which is adding lots of sub projects

    <project name="antbook-sections">
     <home nested="sections/"/>
     <work 
nested="sections/extending/ch17_tasks/filesize/first/build/classes"/>
     <work nested="sections/extending/ch17_tasks/tasks/build/classes"/>

     <work nested="sections/extending/ch17_tasks/runjava/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/conditions/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/embed/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/filters/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/listeners/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/mappers/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/resources/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/script/build/classes"/>
     <work
       nested="sections/extending/ch18_extras/selectors/build/classes"/>

     <ant basedir="sections" target="gump">
       <property name="jar.version" value="@@DATE@@"/>
       <property name="no.sign.jar" value="true"/>
     </ant>
     <depend project="ant" runtime="false"/>
     <depend project="junit3" runtime="false"/>
     <depend project="maven2-ant-tasks" runtime="false"/>
     <depend project="antunit" runtime="false"/>
     <depend project="jython" runtime="false"/>
     <depend project="bsh" runtime="false"/>
     <depend project="jakarta-bsf" runtime="false"/>

     <jar
       name="extending/ch17_tasks/tasks/dist/antbook-tasks-@@DATE@@.jar"
       id="antbook-tasks"/>

     <license name="LICENSE.txt"/>

     <nag from="Smartfrog &lt;smartfrog@users.sf.net&gt;"
         to="steve.loughran@gmail.com"
         subject="[Gump] Antbook Sections Build Failure"/>

   </project>

The first subsidiary build works, but the second is failing

http://vmgump.apache.org/gump/public/antbook/antbook-sections/gump_work/build_antbook_antbook-sections.html
init:
     [mkdir] Created dir: 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/build
     [mkdir] Created dir: 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/build/classes
     [mkdir] Created dir: 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/dist

compile:
     [javac] Compiling 13 source files to 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/build/classes
      [copy] Copying 2 files to 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/build/classes

jar:
       [jar] Building jar: 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/dist/antbook-tasks-22092006.jar

define:

ready-to-run:

antunit:
[au:antunit] Build File: 
/x1/gump/public/workspace/antbook/sections/extending/ch17_tasks/tasks/build.xml
[au:antunit] Tests run: 0, Failures: 0, Errors: 21, Time elapsed: 0.19 sec
[au:antunit]  caused an ERROR
[au:antunit] 	at line 59, column 52
[au:antunit] 	Message: book:tdef class org.antbook.tasks.MessageTask 
cannot be found
[au:antunit] 	took 1,158,917,780.157 sec

I'm compiling stuff into the dir ch17_tasks/tasks/build/classes, and 
copying the xml and ini file, but the build is failing in the <taskdef> 
operation to define the task

   <target name="define">
     <presetdef name="tdef"
       uri="${book.uri}" >
     <taskdef
         uri="${book.uri}"
         classpath="${target.jar}"/>
     </presetdef>

     <book:tdef name="message"
         classname="org.antbook.tasks.MessageTask"/>
     <book:tdef name="message2"
         classname="org.antbook.tasks.MessageTask2"/>

I'm confused. I know the classpath in <taskdef> is ignored, but I'm 
pointing to the work directory earlier on. Does the <home> dir change 
all the rules in some way that I dont know of?

-steve







---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message