ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Need build help
Date Wed, 16 Jan 2008 06:40:47 GMT
/optional/out/FailedTests.java is created when running test testsuite.
That file is created by the FailureRecorder:

build.xml
  1588:    <macrodef name="test-junit">
  1610:        <junit printsummary="${junit.summary}"
  1632:          <formatter type="failure" usefile="false"/>
  1635:          <test name="${junit.collector.class}" if="hasFailingTests"/>
  1741:    <test-junit>
  1744:      <batchtest todir="${build.junit.xml}" unless="hasFailingTests">

That Recorder should catch all failing testcases (failing  *.test*() methods), and create
a new JUnit TestSuite which delegates to these failed tests. In a 2nd run, only these failed
tests should run.
That's the intention ...


Jan
 

> -----Urspr√ľngliche Nachricht-----
> Von: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] 
> Gesendet: Dienstag, 15. Januar 2008 21:28
> An: Ant Developers List; jd@sysbliss.com
> Betreff: Re: Need build help
> 
> Yes, this happens sometimes (need to look
> into it!).
> 
> I would to ./build.sh, and then ./build.sh test
> 
> Peter
> 
> On Jan 15, 2008 7:10 PM, jonathan doklovic <jd@sysbliss.com> wrote:
> > I'm building using build.sh now, however if I do:
> > build.sh test
> >
> > the build fails with the following:
> >
> > check-failed:
> > java.io.FileNotFoundException: 
> /ant-core/src/etc/testcases/taskdefs/optional/out/FailedTests.
> java (No such file or directory)
> >         at java.io.FileOutputStream.open(Native Method)
> >         at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> >         at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.w
> riteJavaClass(FailureRecorder.java:248)
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.t
> askFinished(FailureRecorder.java:410)
> >         at
> > org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:354)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:379)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
> >         at 
> org.apache.tools.ant.Project.executeTarget(Project.java:1293)
> >         at
> > 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Def
> aultExecutor.java:41)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1176)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:758)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:217)
> >         at 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >         at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >
> > test:
> > java.io.FileNotFoundException: 
> /ant-core/src/etc/testcases/taskdefs/optional/out/FailedTests.
> java (No such file or directory)
> >         at java.io.FileOutputStream.open(Native Method)
> >         at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> >         at 
> java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.w
> riteJavaClass(FailureRecorder.java:248)
> >         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.t
> askFinished(FailureRecorder.java:410)
> >         at
> > org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:354)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:379)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
> >         at 
> org.apache.tools.ant.Project.executeTarget(Project.java:1293)
> >         at
> > 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Def
> aultExecutor.java:41)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1176)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:758)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:217)
> >         at 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >         at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >
> >
> >
> >
> > On Tue, 2008-01-15 at 17:38 +0000, Peter Reilly wrote:
> > > On Jan 15, 2008 5:19 PM, jonathan doklovic 
> <jd@sysbliss.com> wrote:
> > > > oops, sorry i missed that.
> > > >
> > > > Thanks,
> > > No problem,
> > > slightly better build instructions are in the manual:
> > > http://ant.apache.org/manual/install.html#buildingant
> > > Peter
> > >
> > > >
> > > > - Jonathan
> > > >
> > > >
> > > > On Tue, 2008-01-15 at 17:15 +0000, Peter Reilly wrote:
> > > > > You need to follow exactly the build instructions:
> > > > >
> > > > > 1) check out ant to ANT_SOURCE
> > > > > 2) cd to ANT_SOURCE
> > > > > 3) ensure that CLASSPATH env variable is empty
> > > > > 4) place optional jars in ANT_SOURCE/lib/optional
> > > > > 5) ./build.sh
> > > > >
> > > > > - i.e. do not use ant to build ant.
> > > > >
> > > > > Peter
> > > > >
> > > > >
> > > > > On Jan 15, 2008 5:05 PM, jonathan doklovic 
> <jd@sysbliss.com> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I checked out the core trunk and tried to run the 
> main target in the
> > > > > > build file.
> > > > > >
> > > > > > I get the following error:
> > > > > >
> > > > > > test-jar:
> > > > > > BUILD FAILED
> > > > > > ant-core/build.xml:859: We cannot build the test 
> jar unless JUnit is
> > > > > > present,
> > > > > >       as JUnit is needed to compile the test classes.
> > > > > >
> > > > > > Shouldn't the test-jar target be smart enough to 
> figure out that if
> > > > > > junit.present = false then it should use the junit 
> in the optional lib
> > > > > > dir?
> > > > > >
> > > > > > - Jonathan
> > > > > >
> > > > > >
> > > > > > 
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > > > > > For additional commands, e-mail: dev-help@ant.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > > > > For additional commands, e-mail: dev-help@ant.apache.org
> > > > >
> > > >
> > > >
> > > > 
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > > > For additional commands, e-mail: dev-help@ant.apache.org
> > > >
> > > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: dev-help@ant.apache.org
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message