Skip to main content



      Home
Home » Eclipse Projects » Gendoc » No content in eclipse variables
No content in eclipse variables [message #1722356] Thu, 04 February 2016 04:35 Go to next message
Eclipse UserFriend
Hi

I have had no luck in using workspace or project variables such as ${project_loc} ${workspace_loc} etc. They always end up empty.

For instance the following code.

<config><drop/>
<param key='teststuff' value='${project_loc}'/>
<param key='srs_model_path' value='${project_loc}/../software-requirements/SRSModel.reqif'/><drop/>
</config><drop/>

This is the project location:
[gGet('$project_loc$')/]
[gGet('$project_loc')/]
[gGet('${project_loc}')/]

Model path: 
[gGet('srs_model_path')/]
Teststuff:
[gGet('teststuff')/]


Ends up generating everything empty except srs_model_path is /../software-requirements/SRSModel.reqif

The complete project location is C:\Users\Axel\Documents\Perforce\neptune\projects\template\main\definition\software-requirements. I'm using 0.5.1 of gendoc and Eclispe Mars.1 (4.5.1)

Any idea what might be wrong?
Re: No content in eclipse variables [message #1722554 is a reply to message #1722356] Fri, 05 February 2016 11:37 Go to previous messageGo to next message
Eclipse UserFriend
Hello that is strange, how do you run your generation ? CLI ? GUI ?
Re: No content in eclipse variables [message #1722555 is a reply to message #1722554] Fri, 05 February 2016 11:39 Go to previous messageGo to next message
Eclipse UserFriend
I run this via the GUI.
Re: No content in eclipse variables [message #1722634 is a reply to message #1722555] Sun, 07 February 2016 09:17 Go to previous messageGo to next message
Eclipse UserFriend
ok, I know you have mentioned in your first message that workspace_loc returns also empty but can you try again and tell me the value displayed ?
Did you try [gGet('project_loc')/] in your template ?
Re: No content in eclipse variables [message #1722681 is a reply to message #1722634] Mon, 08 February 2016 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I tried that as well. I have tried my own eclipse variables as well as the ones that are default in every project. It seems that gendoc can't access them.

I'll attach my installation details if that will help and a screenshot of the project's path variables.

[Updated on: Mon, 08 February 2016 04:25] by Moderator

Re: No content in eclipse variables [message #1723087 is a reply to message #1722681] Thu, 11 February 2016 08:53 Go to previous messageGo to next message
Eclipse UserFriend
ok very weird we will try to reproduce
Re: No content in eclipse variables [message #1725146 is a reply to message #1723087] Tue, 01 March 2016 04:13 Go to previous messageGo to next message
Eclipse UserFriend
After investigation the problem happens when the template is contained inside a project not physically contained inside the workspace
example :
workspace : c:\user\xxx\ws
template project location : c\myversioncontrol\project

a bug has been created by Axel (thank you !) : https://bugs.eclipse.org/bugs/show_bug.cgi?id=488684
Re: No content in eclipse variables [message #1729382 is a reply to message #1725146] Wed, 13 April 2016 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Hello the bug has been fixed on master branch.
you can try if the fix works for you using the latest build : https://hudson.eclipse.org/gendoc/job/Gendoc/ws/releng/org.eclipse.gendoc.update-site/target/repository/
Re: No content in eclipse variables [message #1746242 is a reply to message #1729382] Tue, 25 October 2016 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I still have the same problem (empty variable: project loc and workspace loc) with gendoc 0.6.0
however, I would like to know how gendoc calculate the value of this variable ?

Thanks
Re: No content in eclipse variables [message #1746257 is a reply to message #1746242] Wed, 26 October 2016 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
it is strange, gendoc visits your workspace to find the correct locationof the document in the workspace.
For workspace location it uses basic eclipse features.

how are you using gendoc ? in command line ?
Re: No content in eclipse variables [message #1746319 is a reply to message #1746257] Wed, 26 October 2016 16:25 Go to previous messageGo to next message
Eclipse UserFriend
No, not in command line Smile I am using Papyrus, I try to generate code from papyrus model, I have an eclipse with both Papyrus and gendoc installed.
My template is in a plugin of my first eclipse Instance and my project (containing my papyrus model : my input model) is in the second eclipse instance. Thus, the template is not in the same workspace than the input model (*.uml) and the output documentation file (*.doc)

The idea is to deploy the plugin containing the template in Eclipse, and then the client create a model in his workspace and generate documentation using gendoc in this same workspace but it is NOT in any case the same workspace that contains the template. the client should not see the template, he only cares about the documentation and the input model (*.uml)
Re: No content in eclipse variables [message #1746329 is a reply to message #1746319] Thu, 27 October 2016 02:49 Go to previous message
Eclipse UserFriend
OK I think the problem comes from this, to identify project_loc we use the template. I think in your plugin your shall contribute new variables to gendoc (papyrus_model_project_loc ?)
Previous Topic:Getting only applied comments
Next Topic:Getting only applied comments
Goto Forum:
  


Current Time: Tue Apr 15 01:17:05 EDT 2025

Powered by FUDForum. Page generated in 0.04346 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top