Ilias Lazaridis wrote:
the modification: add " dir=".\build\resources" " to "<java..."
<target name="run" depends="compile" description="Run Application">
<java classname="org.apache.ojb.tutorial1.Application" fork="true" dir=".\build\resources">
<arg line="${application.args}"/>
<classpath refid="runtime-classpath"/>
</java>
</target>
-
Command Line: "ant clean build setup-db run"
Problem:
application starts ok, with some debug output.
Then it enters a loop [must abort with CTRL-C]
[java] [0] List all product entries [java] [1] Enter a new product [java] [2] Edit a product entry [java] [3] Delete a product entry [java] [4] Quit Application [java] type in number to select a use case [java] null
-
Any ideas?
You cannot start commandline applications (that want input from console) from within Ant, neither with the <java> nor with the <exec> tast (see Ant doc for details). That's why I modified ojb-blank and ojb-quickstart in CVS to create run.bat/run.sh for the apps.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]