This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

VM Arguments  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 20147
104
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "it will drained" mean?
 
Tobias Hetzel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for my english...i ment dismantled...
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Tobias Hetzel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Villains always have antidotes. They're funny that way. Here's an antidote disquised as a tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!