ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Need build help
Date Tue, 15 Jan 2008 20:28:06 GMT
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.writeJavaClass(FailureRecorder.java:248)
>         at
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(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(DefaultExecutor.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.writeJavaClass(FailureRecorder.java:248)
>         at
> org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(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(DefaultExecutor.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


Mime
View raw message