Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: CG::File::InvokePostProcessor
Topic Summary:
Created On: 20-Jan-2006 13:23
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 20-Jan-2006 13:23
User is offline View Users Profile Print this message


Dustin Spafford

Posts: 3
Joined: 20-Jan-2006

I'm trying to run a batch file after I have generated my code by using InvokePostProcessor. I have read all the documentation I can find, and have had some communications with customer service. I'm told it should be as easy as putting "C:\mybatfile.bat" in the CG::File::InvokePostProcessor field. I've done that, yet when I generate the code, nothing is mentioned in the output window, and the batch file is not executed. I have even started a new project, filled in the InvokePostProcessor, then created classes. Still a no-go.
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 09:11
User is offline View Users Profile Print this message


Steve Lachs

Posts: 100
Joined: 4-Feb-2004

Dustin,

Here is a pretty basic scenario that should work well:

1 - New Project
2 - Add Class A
3 - On A, Set CG::File::InvokePostProcessor to "<BatchFile> $file" (No Quotes)
4 - Generate Code

This should execute your post processor. As a test, throw a couple of echos in your batch file, and you should see them printed to the output window inside Rhapsody.

-Steve
Report this to a Moderator Report this to a Moderator
 27-Jan-2006 13:52
User is offline View Users Profile Print this message


Dustin Spafford

Posts: 3
Joined: 20-Jan-2006

c:\MMA\tools\make_it_pretty.bat $file

The above is in the CG::file::invokepostprocessor field for a new class I created in a new project. I even put in a couple echos in the batch file, but there is no indication in the output window the file is being executed, and the text file that gets created isn't. Also attached is a screenshot.
Report this to a Moderator Report this to a Moderator
 21-Feb-2006 18:46
User is offline View Users Profile Print this message


Franklin Bidwell

Posts: 4
Joined: 16-Aug-2005

Looks like you are using Rhapsody in Ada.

I could only get this to work in the Rhapsody in C++ tool. I don't think the sodius code generation can invoke a post processor.
Report this to a Moderator Report this to a Moderator
 24-Feb-2006 11:29
User is offline View Users Profile Print this message


Dustin Spafford

Posts: 3
Joined: 20-Jan-2006

Yeah, I guess it's not supported with Ada. We'll have to work around it.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.