[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.cosmos] Re: Failed trying to regenerate the samples - some handholding required...


"David Whiteman" <david_whiteman@xxxxxxxxxx> wrote in message news:f9coan$3ob$1@xxxxxxxxxxxxxxxxxxxx
Michael Moser wrote:

"David Whiteman" <david_whiteman@xxxxxxxxxx> wrote in message news:f98aa9$uiq$1@xxxxxxxxxxxxxxxxxxxx
>...
> Try setting the value of derby.system.home on the command line of the
> Ant launch script to the location of your derby database directory. For
> example:
>
> -Dderby.system.home=C:\apache-tomcat-5.5.23\webapps\database


I was actually trying to run these scripts from within eclipse (i.e. right-clicking on them in the Package explorer and then Run as... => ANT build), not on the command line.
So I first tried the corresponding equivalent of the above definition and added "derby.system.home" as an additional ANT property (using Windows => Preferences => Ant => Runtime => Properties tab). Alas, that didn't change anything.

I run them within Eclipse too, but when you run an Ant script there, it shows up as a launch configuration. So I edit the launch configuration on the Run... menu to set any command line arguments. I'm not convinced setting it as an Ant property is the same as setting a command line argument.

Where exactly do you enter these?

To test your suggestion I removed my prior modification in the build.xml and then entered
"-Dderby.system.home=C:\Tomcat_5.5\webapps\database" (which is the path on my system)


first, on the ant launch config's Main tab (under Arguments) - that did not work - and
then I tried on the JRE tab (under VM arguments) - that did not work either - and
lastly I tried on the Environment tab and added the above as an environment variable. No success either.


So where whould this be entered???

Michael