Buildfile: <workspace>\Play\play.xml
test:
[timer] System reports java version 1.3.1
[timer] Using standard timer resolution
[timer] started
[timer] BUILD FAILED: <workspace>\Play\play.xml:16: Could not create task of type: echo
Total time: 265 milliseconds
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[timer] java.lang.Exception
[timer] at java.lang.Throwable.<init>(Throwable.java)
[timer] at de.jeckle.AntExtension.Timer.addTask(Timer.java:98)
[timer] at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:329)
[timer] at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
[timer] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
[timer] at org.apache.tools.ant.Task.perform(Task.java:363)
[timer] at org.apache.tools.ant.Target.execute(Target.java:301)
[timer] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[timer] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[timer] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:571)
[timer] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
[timer] at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
[timer] at java.lang.reflect.Method.invoke(Method.java)
[timer] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
[timer] at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
[timer] at java.lang.Thread.run(Thread.java:801)
[timer] adding task:
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Originally posted by Jeanne Boyarsky:
I'm trying to use the Timer task in my Ant script. If I comment out the timer task, it runs properly and displays Hello World. Is there something I need to do in the classpath to append it to my current one?
When I run it, I get:
%
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
Michael,
When I run the same build script without the timer task, it works fine. So Ant is allowing <echo>Message</echo>
%
Java has 99 problems but a pointer ain't one
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Ryan Zezeski:
[CODE]is "<workspace>" the actual name of your directory? That is confusing me.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Consider Paul's rocket mass heater. |