|
|
|
Re: Trying to generate model using headless invocation throws Exception [message #395774 is a reply to message #395766] |
Thu, 22 September 2005 11:43 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------080807080503070107010900
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Enrique,
According to the usage syntax, you need to specify two arguments after
-modelProject, i.e., I'd expect "-modelProject %MAIN_DIR%\testp src"
Usage: { <model.xsd> | <model.wsdl> }+ [ <model.genmodel> [ -reload
] ] <OPTION>
<OPTION> ::= [ <PROJECT-OPTION> ] [ <PACKAGE-MAP> ] [
<PACKAGES> ]
{ <REF-GEN-MODEL> }*
[ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [
<COPYRIGHT> ]
[ <SDO> ] [ <QUIET> ]
<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [
<EDITOR-PROJECT> ]
[ <TESTS-PROJECT> ]
<MODEL-PROJECT> ::= *-modelProject <model-directory> <fragment-path>*
<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>
<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>
<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>
<PACKAGE-MAP> ::= -packageMap { <nsURI> <qualified-package-name> }+
<PACKAGES> ::= -packages { <nsURI> }+
<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+
<TEMPLATE-PATH> ::= -templatePath <template-directory>
<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>
<COPYRIGHT> ::= -copyright <copyright-string>
<SDO> ::= -sdo
<QUIET> ::= -quiet
Specifying no -packages is the same as specifying them all
Use ##local to represent the null nsURI
For example:
xsd2genmodel
example.xsd
result/model/Example.genmodel
-modelProject result src
-editProject result.edit src
-editorProject result.editor src
-packages http://www.example.com/Example1
Enrique wrote:
> Ooops, I fixed it. Thanks so far.
>
> set MAIN_DIR=C:\test\eclipse\workspace
> set WORKSPACE=%MAIN_DIR%\..\codegenWorkspace
>
> But even fixing this mistake there are exactly the same exception.
>
> I tried following commands among others
>
> ************************************************************ **********
> startup.jar org.eclipse.core.launcher.Main -clean -data %MAIN_DIR%
> -application org.eclipse.xsd.ecore.importer.XSD2GenModel
> %MAIN_DIR%\testp\model\test.xsd %MAIN_DIR%\testp\emf\test.genmodel
> -modelProject %MAIN_DIR%\testp\src -copyright "This is my code."
> ** and ************************************************************ ***
> startup.jar org.eclipse.core.launcher.Main -clean -data %WORKSPACE%
> -application org.eclipse.xsd.ecore.importer.XSD2GenModel
> %MAIN_DIR%\testp\model\test.xsd %MAIN_DIR%\testp\emf\test.genmodel
> -modelProject %MAIN_DIR%\testp\src -copyright "This is my code."
> ************************************************************ **********
>
> No one was working
>
--------------080807080503070107010900
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Enrique,<br>
<br>
According to the usage syntax, you need to specify two arguments after
-modelProject, i.e., I'd expect "-modelProject %MAIN_DIR%\testp src"
<blockquote><small>Usage: { <model.xsd> | <model.wsdl> }+ [
<model.genmodel> [ -reload ] ] <OPTION><br>
<OPTION>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26990 seconds