Command line tool Error with LPT

Posts   
 
    
jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 02-Nov-2007 12:27:04   

Hi

I'm using LLBL Pro 2.5 and I'm trying to recreate the whole project from a batch file.

I'm using the command line tool to build the LLBL project. It works fine with all the tasks in the preset but it keeps failing with the only one that is an LPT template, the rest are TDLs.

The whole project runs perfectly via LLBL/Template studio including the lpt template.

If I disable the task then it creates the whole project from the command line with no problems. Unfortunatelly the lpt is key for the project and can't replicate it using TDL. :-(

Is it not possible to run lpts tasks from the command line? I'm I missing some setting/reference/app config....?

Any help is much appreciated!

Thanks a lot.

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 02-Nov-2007 15:05:42   

It works fine with all the tasks in the preset but it keeps failing with the only one that is an LPT template, the rest are TDLs.

Any errors returned?

jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 02-Nov-2007 15:14:33   

Not in the log file, it just stops just on the ltp line:

SD.Tasks.Base.CreateAFolder::Execution task done.

BusinessLayerExtended Classes (SD.Tasks.Base.ConsumeLptTemplate)::Executing task. BusinessLayerExtended Classes (SD.Tasks.Base.ConsumeLptTemplate)::Using class 'SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine' in assembly 'SD.LLBLGen.Pro.LptParser.dll'.

If I do debugging it returns and "Object not set to an instance of an object" exception, and again, If i rebuild it using LLBL it works sweet.

Thanks

jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 02-Nov-2007 15:31:05   

This is the output on the console>

Starting task 'Executing tasks': .|.|......|.|.|.|.|.|......|......|.|.|.|......|.|.|.|.|.|......|.|.|.|.Exception caught.

Message: Object reference not set to an instance of an object.Source: SD.LLBLGen.Pro.LptParser Stack trace: at SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine.Perform(IGenera tor executingGenerator, ITask taskDefinition, Dictionary2 parameters) at SD.LLBLGen.Pro.ApplicationCore.Tasks.Task.Perform(IGenerator executingGene rator, LogNode parentNode) at SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskGroup.Perform(IGenerator executin gGenerator, LogNode parentNode) at SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskGroup.Perform(IGenerator executin gGenerator, LogNode parentNode) at SD.LLBLGen.Pro.ApplicationCore.Tasks.TaskGroup.Perform(IGenerator executin gGenerator, LogNode parentNode) at SD.LLBLGen.Pro.GeneratorCore.Generator.Start(ITaskGroup tasksToExecute, Pr oject projectDefinition, Language languageToUse, Platform platformToUse, List1 templateBindingsToUse, String templateGroupToUse, ApplicationConfiguration confi gurationSettings) at SD.LLBLGen.Pro.Tools.CommandLineGenerator.Engine.Start(Project projectToGe nerate, ITaskGroup tasks, Language languageToUse, Platform platformToUse, List`1 templateBindingsToUse, String templateGroupToUse, ApplicationConfiguration conf igurationSettings) in C:\Program Files\Solutions Design\LLBLGen Pro v2.5\Sourcec ode\CommandLineGenerator\Generator\Engine.cs:line 77 at SD.LLBLGen.Pro.Tools.CommandLineGenerator.Startup.StartProcess(String proj ectFile, String rootNamespace, String languageName, String platformName, String templateGroupName, String presetName, String destinationFolder, Boolean clearDes tinationFolder) in C:\Program Files\Solutions Design\LLBLGen Pro v2.5\Sourcecode \CommandLineGenerator\Generator\Startup.cs:line 248 Inner exception: <null>

Hope it helps

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39774
Joined: 17-Aug-2003
# Posted on: 04-Nov-2007 13:45:02   

The cli generator is placed in the same folder as the llblgen pro designer? If not, it might be it uses an out of date lpt task performer.

Anyway, if the cli generator is in the same folder, and you didn't modify the sourcecode of it (if you did, please state which changes you made), please attach the .lpt template + task + preset you're using and we'll have a look. If this is classified info, please open a helpdesk thread in the helpdesk forum, and refer to this thread in the first post, and attach the files there. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
jvidal
User
Posts: 37
Joined: 17-Sep-2007
# Posted on: 05-Nov-2007 11:59:11   

Hi Otis

I was running it from the bin folder, I've copied the exe to the root llbl folder and now runs without problems.

Thanks very much! Jaume