TD-23861: Support all target type found in build setting when compiling using the command line

Missing or incomplete OpenText Gupta product features? Discuss it here!
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 484
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-23861: Support all target type found in build setting when compiling using the command line

Post by Dave Rabelink » 14 Dec 2017, 21:42

Building applications from command line (automated builds):
Currently only TD EXE and APD are supported.

1) All possible target types (win32 and .NET) should be supported by the command line. Our priority is COM server (exe)

2) Be able to 100% use the build settings of the file without knowing which target is defined.
Example: a new switch (-a) will automatically read the build settings from the source file and will build it AS-IS, so the file itself contains everything.
So the -a switch is the same as manually build from the TD IDE without having to indicate anything.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 58
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: TD-23861: Support all target type found in build setting when compiling using the command line

Post by thomas.uttendorfer » 15 Dec 2017, 10:40

Hi Dave,
not sure if I understood it completely.

But you can build COM-Server (.exe and .dll) with command line:
cbi70.exe -b comserver.apt comserver.exe

The only thing is that build settings in comserver.apt must be set to COM Server.

Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH
https://thomasuttendorfer.wordpress.com/

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 484
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-23861: Support all target type found in build setting when compiling using the command line

Post by Dave Rabelink » 15 Dec 2017, 11:30

thomas.uttendorfer wrote:
15 Dec 2017, 10:40
But you can build COM-Server (.exe and .dll) with command line:
cbi70.exe -b comserver.apt comserver.exe

The only thing is that build settings in comserver.apt must be set to COM Server.

Regards Thomas
Even if I set it to com server, the resulting exe/dll is invalid as it can not be registered.

Here I have testcases. The register batch file only works when building manually from IDE and the command line way results in an error when registering.

BuildTargets.zip
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 484
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-23861: Support all target type found in build setting when compiling using the command line

Post by Dave Rabelink » 15 Dec 2017, 14:33

And forgot to mention that none of the .NET build targets is supported through the command line.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 58
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: TD-23861: Support all target type found in build setting when compiling using the command line

Post by thomas.uttendorfer » 19 Dec 2017, 17:10

Hi Dave,

strange. I can reproduce the problem with your files.
But another fact is that we build a dll-COM automatically and even register it automatically through a .bat nightly.
And on dozens of customer sites...

I didn't have the time to investigate further - maybe next year or in my holydays next week.

Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH
https://thomasuttendorfer.wordpress.com/

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests