using variable in setup preference task : possible ? [message #1808105] |
Mon, 17 June 2019 09:37  |
Eclipse User |
|
|
|
Hi,
I'm trying to set up WST instance inside my setup project but i'm facing a problem:
1) I want to leave the user the opportunity to specify the location of a tomcat installation
2) And finally, i want my project installer to automaticaly set the "/instance/org.eclipse.jst.server.tomcat.core/locationorg.eclipse.jst.server.tomcat.runtime.70" preference to the location specified by the user
So in my project setup there is
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
id="tomcat.base"
type="FOLDER"
name="tomcat.base"
label="Répertoire d'installation tomcat">
<description>Répertoire d'installation tomcat</description>
</setup:VariableTask>
then..
<?xml version="1.0" encoding="UTF-8"?>
<setup:PreferenceTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
key="/instance/org.eclipse.jst.server.tomcat.core/locationorg.eclipse.jst.server.tomcat.runtime.70"
value="${tomcat.base}"/>
But it doesn't works....
The installer asks the user for a tomcat location, at the end of the installation, I got an eclipse , with a tomcat Server runtime environment, but with an empty tomcat installation directory.
It seems that preference
"/instance/org.eclipse.jst.server.tomcat.core/locationorg.eclipse.jst.server.tomcat.runtime.70" has not been set
Question :is the use of variable allowed inside preference setup task ?
Regards..
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.47536 seconds