CliGenerator.exe

Posts   
 
    
simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 23-Dec-2007 12:06:32   

Just been trying out the CliGenerator.exe app and got it working OK.

Wouldn't it make sense for this code to use the values specifed in the project file where an empty entry (ie "") is passed from the command line?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39773
Joined: 17-Aug-2003
# Posted on: 23-Dec-2007 13:18:10   

The cli generator is meant to be used in batch command files, so you create a project and from then on you use the cli generator to generate code, so the initial settings are specified as well in the same cmd file: all settings to use are specified in the cmd file.

Frans Bouma | Lead developer LLBLGen Pro
simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 23-Dec-2007 14:49:07   

Otis wrote:

The cli generator is meant to be used in batch command files, so you create a project and from then on you use the cli generator to generate code, so the initial settings are specified as well in the same cmd file: all settings to use are specified in the cmd file.

But that leaves two places to maintain/synchronise settings.

Cheers Simon

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39773
Joined: 17-Aug-2003
# Posted on: 23-Dec-2007 16:37:55   

simmotech wrote:

Otis wrote:

The cli generator is meant to be used in batch command files, so you create a project and from then on you use the cli generator to generate code, so the initial settings are specified as well in the same cmd file: all settings to use are specified in the cmd file.

But that leaves two places to maintain/synchronise settings.

Cheers Simon

Which settings are you referring to exactly?

Frans Bouma | Lead developer LLBLGen Pro
simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 24-Dec-2007 07:19:27   

Otis wrote:

simmotech wrote:

Otis wrote:

The cli generator is meant to be used in batch command files, so you create a project and from then on you use the cli generator to generate code, so the initial settings are specified as well in the same cmd file: all settings to use are specified in the cmd file.

But that leaves two places to maintain/synchronise settings.

Cheers Simon

Which settings are you referring to exactly?

The parameters for CliGenerator are: 1) ProjectFile 2) RootNamespace 3) LanguageName 4) PlatformName 5) TemplateGroupName 6) PresetName 7) DestinationFolder 8 ) ClearDestinationFolder 9) LogFile

It seems to me that items 2 to 6 (at least) are available within item 1 and should be read from there unless explicitly specified on the command line. Otherwise a change in the project file to any of these parameters has to be duplicated in any batch command and vice versa.

Cheers Simon

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39773
Joined: 17-Aug-2003
# Posted on: 27-Dec-2007 11:14:39   

Noted. I'll make these changes in v2.6's SDK.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39773
Joined: 17-Aug-2003
# Posted on: 05-Jun-2008 14:22:46   

Otis wrote:

Noted. I'll make these changes in v2.6's SDK.

I immediately run into a wall simple_smile

CliGenerator ProjectFile RootNamespace LanguageName PlatformName TemplateGroupName PresetName DestinationFolder ClearDestinationFolder

this is the command line. How can I determine which parameter is left out if I specify a couple of strings, say: CliGenerator foo.lgp bar c:\temp\ 1

So the command line has to get a -_character_ kind of command line... disappointed (which are less simple to parse... )

So I'll add 1 new version: where ALL parameters are read from the project, except destination folder etc.

Frans Bouma | Lead developer LLBLGen Pro