wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes VM Arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "VM Arguments" Watch "VM Arguments" New topic
Author

VM Arguments

Tobias Hetzel
Greenhorn

Joined: Apr 21, 2009
Posts: 8
hey guys,
when i´m setting a vm argument:

{code}
...=${project_loc}
{code}

in eclipse it will drained without any problems....but if i export the product, and want to start it, the placeholder ${project_loc} will not drained....

does anybody have an idea?


greets, iTob
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16160
    
  21

What does "it will drained" mean?


Customer surveys are for companies who didn't pay proper attention to begin with.
Tobias Hetzel
Greenhorn

Joined: Apr 21, 2009
Posts: 8
sorry for my english...i ment dismantled...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

I will make a whole lot of assumption because unfortunately you gave us very little to work with.

Assumption #1: the code you posted is within an build.xml file

Assumption #2: you are using Ant within eclipse to build you app

Assumption #3: you are now trying to run the ant script from a command line, and ${project_loc} is not being resolved

If all of those assumptions are true, then I suspect that project_loc is a property that Eclipse is supplying automatically when it runs the ant script. Therefore you have two choices:

1: Don't use ${project_loc}. Most likely it is the same as ${basedir}, so use that instead.

2: Pass "-Dproject_loc=xxx" as part of the ant command line



JBoss In Action
Tobias Hetzel
Greenhorn

Joined: Apr 21, 2009
Posts: 8
hey,
at first, thank´s for your fast answer.
i don´t build with ANT the application, because the application is a RCP (=Rich Client Platform) application.
For this reason, i just use the export manager from the *.product-file which is provided from eclipse.
it´s important, that the path to the application dir is not hardcoded, because the application will lie at different working stations at different places.
therefore the path has to be set finally at startup time from the exported application.

regards, tobi
 
 
subject: VM Arguments