I have a simple task trying to run a jws app:
<target name="run" depends="dist">
<apply executable="javaws">
<arg value="${run.dir}/index.jnlp"/>
</apply>
</target>
I get the error message:
run:
[apply] Current OS is Windows XP
BUILD FAILED
c:\TCIWorks\TCIWorksApplication\build.xml:120: no resources specified
at
org.apache.tools.ant.taskdefs.ExecuteOn.checkConfi guration(ExecuteOn.java:305)
at
org.apache.tools.ant.taskdefs.ExecTask.execute(Exe cTask.java:485)
at
org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:28

at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:34

at org.apache.tools.ant.Target.execute(Target.java:35 7)
at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
at
org.apache.tools.ant.Project.executeSortedTargets( Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project .java:129

at
org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:69

at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher. java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher .java:104)
Total time: 11 seconds
I can verify that ${run.dir}/index.jnlp exists.
Any idea what could be causing the error? Or a better way of doing what
I'm trying to achieve?
Thanks
Lionel.