|
Re: Command line [message #1709454 is a reply to message #1709449] |
Mon, 28 September 2015 13:52   |
Eclipse User |
|
|
|
Hello indeed information is not available in the PDF tutorial we will fix it
to run command line :
java -cp "ECLIPSE_PATH\plugins\org.eclipse.equinox.launcher_XXXX.jar" org.eclipse.core.launcher.Main -application org.eclipse.gendoc.batch.GendocBatchMode -idt dir="D:\your_template.docx"
if you want to specify a specific workspace you can add -data option :
java -cp "ECLIPSE_PATH\plugins\org.eclipse.equinox.launcher_XXXX.jar" org.eclipse.core.launcher.Main -application org.eclipse.gendoc.batch.GendocBatchMode -data d:\workspace_directory -idt dir="D:\your_template.docx"
HTH
Tristan
[Updated on: Mon, 28 September 2015 13:53] by Moderator Report message to a moderator
|
|
|
|
Re: Command line [message #1728870 is a reply to message #1709449] |
Fri, 08 April 2016 07:09   |
Eclipse User |
|
|
|
Hi
Im trying to use gendoc by command line in combination with papyrus. But on my installation it doesn't work. Does everybody know why this error happened? Thanks for your help.
Greetings
Benny
Quote:
C:\Users\Benny\PapyrusWorkspace\DevelopmentEnvironment>java -cp "C:\Papyrus\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar" org.eclipse.core.launcher.Main -application org.eclipse.gendoc.batch.GendocBatchMode -idt dir="C:\Users\Benny\PapyrusWorkspace\DevelopmentEnvironment\"
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.jdt.internal.ui.InitializeAfterLoadJob
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
C:\Users\Benny\PapyrusWorkspace\DevelopmentEnvironment>
|
|
|
Re: Command line [message #1728902 is a reply to message #1728870] |
Fri, 08 April 2016 12:08   |
Eclipse User |
|
|
|
Okay it seems some plugins spam the CLI
what version of Papyrus are you using ?
can you copy paste the content of the .log file inside metadata folder of your workspace ?
|
|
|
|
|
|
Re: Command line [message #1729091 is a reply to message #1728962] |
Mon, 11 April 2016 07:05   |
Eclipse User |
|
|
|
Okay it is strange. Which version of Papyrus are you using ?
If you want we can see together what the problem is, you can contact me at this address :
tristan.faure(at)atos.net
|
|
|
Re: Command line [message #1751388 is a reply to message #1729091] |
Mon, 09 January 2017 16:28   |
Eclipse User |
|
|
|
I have a new issue with the gendoc 0.6 release. I am using gendoc by the command line and i am using also a own special profile. In the past i wrote the following in the template:
<param key='modelPath' value='platform:/resource/DevelopmentEnvironment/DevelopmentEnvironment.uml'/><drop/>
But now with the new release it doesn't work anymore. I didn't use the batch for a while, therefore i am so late with the issue. I received the following error:
Quote:at org.eclipse.core.launcher.Main.main(Main.java:34)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.gendoc.batch.GendocBatchModeRunnableApplication.start(GendocBatchModeRunnableApplication.java:108)
at org.eclipse.gendoc.GendocProcess.runProcess(GendocProcess.java:140)
at org.eclipse.gendoc.GendocProcess.runProcess(GendocProcess.java:81)
at org.eclipse.gendoc.process.AbstractProcess.run(AbstractProcess.java:72)
at org.eclipse.gendoc.process.AbstractStepProcess.doRun(AbstractStepProcess.java:51)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.step(TagAnalyserProcess.java:138)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeAndInjectTags(TagAnalyserProcess.java:147)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeTags(TagAnalyserProcess.java:204)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeOneTag(TagAnalyserProcess.java:226)
at org.eclipse.gendoc.tags.handlers.AbstractPrePostTagHandler.run(AbstractPrePostTagHandler.java:55)
at org.eclipse.gendoc.tags.handlers.AbstractPrePostTagHandler.doRun(AbstractPrePostTagHandler.java:114)
at org.eclipse.gendoc.tags.handlers.AbstractTagHandler.run(AbstractTagHandler.java:120)
at org.eclipse.gendoc.tags.handlers.AbstractScriptTagHandler.runScripts(AbstractScriptTagHandler.java:59)
at org.eclipse.gendoc.tags.handlers.AbstractScriptTagHandler.runProcessorScript(AbstractScriptTagHandler.java:83)
at org.eclipse.gendoc.tags.handlers.impl.context.ContextService.getElement(ContextService.java:182)
at org.eclipse.gendoc.tags.handlers.impl.context.ContextService.getModel(ContextService.java:103)
at org.eclipse.gendoc.tags.handlers.impl.context.EMFModelLoaderService.getModel(EMFModelLoaderService.java:202)
org.eclipse.gendoc.services.exception.ModelNotFoundException: The model Model can not be loaded from URL: "platform:/resource/Deve
lopmentEnvironment/DevelopmentEnvironment.uml" can not be loaded log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (root).
It seems that this key is not valid anymore. Is there a new strategy?
I am using Papyrus Neon and Gendoc 0.6. The generation out of papyrus works fine.
Best regards
Benny
|
|
|
Re: Command line [message #1751395 is a reply to message #1751388] |
Mon, 09 January 2017 17:07   |
Eclipse User |
|
|
|
Hello
do you have other stacktraces ? maybe it is because there are problems loading the profile.
As i understand the templates works fine using the IDE ?
|
|
|
Re: Command line [message #1751442 is a reply to message #1751395] |
Tue, 10 January 2017 12:30   |
Eclipse User |
|
|
|
Quote:!SESSION 2017-01-10 13:24:18.104 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_CH
Framework arguments: -application org.eclipse.gendoc.batch.GendocBatchMode -idt dir=C:\Users\Benny\BFH\models\Model_AccumulatorProduction\doc\SystemSpecification_Template.docx
Command-line arguments: -application org.eclipse.gendoc.batch.GendocBatchMode -data C:\Users\Benny\PapyrusWorkspace -idt dir=C:\Users\Benny\BFH\models\Model_AccumulatorProduction\doc\SystemSpecification_Template.docx
!ENTRY org.eclipse.gendoc.services 2 2 2017-01-10 13:24:23.925
!MESSAGE variables can not be registered for file:/C:/Users/Benny/BFH/models/Model_AccumulatorProduction/doc/SystemSpecification_Template.docx
!ENTRY org.eclipse.gendoc.services 4 4 2017-01-10 13:24:30.089
!MESSAGE The execution of a script failed: The model Model can not be loaded from URL: "platform:/resource/AccumulatorProduction/AccumulatorProduction.uml" can not be loaded
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.298
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.299
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.301
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.302
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.302
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.303
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.304
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.304
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.305
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.306
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.306
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.307
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.308
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.308
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.309
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.jdt.internal.ui.InitializeAfterLoadJob
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.309
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.309
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.310
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.310
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.311
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.312
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.312
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
!ENTRY org.eclipse.core.jobs 2 2 2017-01-10 13:24:31.313
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Yes out of the IDE it works and it worked also before....
What means the variables can not be registered? I think this could be the problem.
This is the config section of the template:
Quote:<config><drop/>
<param key='modelPath' value='platform:/resource/AccumulatorProduction/AccumulatorProduction.uml'/><drop/>
<param key='contentElement' value='AccuPro/AccuPro_Kern'/><drop/>
<output path='${project_loc}/doc/documentation/SystemSpecification_AccuPro.docx'/><drop/>
</config><drop/>
<context model='${modelPath}' element='${contentElement}' importedBundles='gmf;papyrus;commons;gendocExtension' searchMetamodels='true'/><drop/>
|
|
|
Re: Command line [message #1751675 is a reply to message #1751442] |
Thu, 12 January 2017 12:03   |
Eclipse User |
|
|
|
I created a little example for my problem. I hope it helps to clear the questions. There is a profile (sysmod) and a test model. For executing the commandline i used the batch file in the root of the model.
Thanks for helping!
Best regards
Benny
Attachment: Example.zip
(Size: 190.65KB, Downloaded 185 times)
|
|
|
Re: Command line [message #1751878 is a reply to message #1751675] |
Mon, 16 January 2017 12:50   |
Eclipse User |
|
|
|
Hello
We will try with your project
did you try to set your variable in this way ? :
<param key='modelPath' value='${project_loc}/AccumulatorProduction.uml'/><drop/>
|
|
|
Re: Command line [message #1751900 is a reply to message #1751878] |
Mon, 16 January 2017 16:37   |
Eclipse User |
|
|
|
Thanks. Yes i tried, but it doesn't work. On my pc, the papyrusproject is not located in the workspace. I import the projects from a repositoryfolder into my workspace.
Best regards
Benny
|
|
|
Re: Command line [message #1752051 is a reply to message #1751900] |
Wed, 18 January 2017 10:26   |
Eclipse User |
|
|
|
Hello
in your command line when you select data : C:\Users\Benny\PapyrusWorkspace
is it a real eclipse workspace ? did you try to set manually the full path of your document ? <param key='modelPath' value='c:/users/benny/somefolders/AccumulatorProduction.uml'/><drop/> ?
|
|
|
Re: Command line [message #1752089 is a reply to message #1752051] |
Wed, 18 January 2017 17:09   |
Eclipse User |
|
|
|
Yes, then it works. But i can not use the absolute path in the template, because i also use the generation on other workstations. I tried to use the properties file, but it seems, that the project_loc variable does not work in this case.
|
|
|
Re: Command line [message #1752090 is a reply to message #1752089] |
Wed, 18 January 2017 17:29   |
Eclipse User |
|
|
|
Yes okay I understand
Actually if you use project_loc or paltform:/resource/ you need to Eclipse to recognize the workspace
can you try : ${workspace_loc}/PROJECT_NAME/AccumulatorProduction.uml ?
|
|
|
|
|
|
Re: Command line [message #1752143 is a reply to message #1752100] |
Thu, 19 January 2017 08:51   |
Eclipse User |
|
|
|
Can you set the full path of your model in the tag to make it work and can you write to this post the result of (to add in a gendoc section in the template):
[gGet('workspace_loc')/]
[gGet('input_directory')/]
?
|
|
|
Re: Command line [message #1775149 is a reply to message #1752143] |
Wed, 25 October 2017 11:04   |
Eclipse User |
|
|
|
Hello,
did you solve the problem discussed in this thread? It seems I have the same issue: document generation from generic_template.docx works fine with the wizard, but not with the command line.
Some detail:
Papyrus 2.0.2 with SysML 1.4 Feature 0.10.1 and Acceleo 3.6.6
The document is created in both cases (wizard and command line), but using the command line, the diagrams are not included, the document is empty.
It seems to be a problem related to the diagrams, since I added a paragraph to list the packages:
[for (p:Package|self.ownedElement->filter(Package)->sortedBy(name))] <drop/>
[p.name/]
[/for]
and the packages are listed perfectly in the generated document.
However, the console returns the following messages every time:
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.activities.MutableActivityManager$3$1
...
Can you help me with this?
Best regards,
Ursula
|
|
|
Re: Command line [message #1775220 is a reply to message #1775149] |
Thu, 26 October 2017 12:48   |
Eclipse User |
|
|
|
Hello again,
I found a work-around for the diagrams: I change the context to use the *.notation file instead of *.uml. I suppose using "notation::Diagram" as done in the template should have the same effect as using the *.notation file in <context>. Do you have any idea why this does not work from the command line when it works perfectly from the GUI?
Thanks for any hint!
Best regards,
Ursula
|
|
|
Re: Command line [message #1777938 is a reply to message #1775220] |
Wed, 06 December 2017 12:30  |
Eclipse User |
|
|
|
Hello
Sometimes commandline does not work properly if you don't write correctly the path of your model or if the workspace is not well set in the command line. Can you copy paste the beginning of your path ?
|
|
|
Powered by
FUDForum. Page generated in 0.10202 seconds