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: 3510
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: 316
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: 3510
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: 3510
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: 316
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/

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3510
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 » 27 Aug 2022, 08:18

Well, this old one I did investigate our ticket history due to a new question here:

viewtopic.php?f=2&t=73646

And I see that due to asking two things in the ticket, only one was addressed and solved.

In fact we have two TD defect numbers in the end:

TD-23861: Extend/enhance TD command line for building
(This one was used by OpenText to create an enhancement request to implement support of all build types incl the .NET targets)

TD-24899: COM server builds using command line are invalid when source and target folders differ
(which fixes the COM server target issue)

I did not pay attention and set this topic to solved. But it was actually not. It is still an enhancement request which seems not be implemented till now.
OpenText did solve TD-24899 in TD 7.2.2


I have removed the "solved" flag from this topic.
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

User avatar
Peter.Hugk
Germany
Posts: 372
Joined: 06 Mar 2017, 07:48
Location: Germany

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

Post by Peter.Hugk » 09 Oct 2024, 17:52

TD-23861: Extend/enhance TD command line for building
It looks like this had been implemented:
"Sorry for the inconvenience.
The command line is available, but his information is not available in Windows Help.
For more reference, please refer to the topic "Compiling from the Command Line" in the TD.NET projects document."

cbi75.exe -.net:AutoDesktop test.dll
Opentext will update Windows Help to include this information.
Best regards,
Peter

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 1 guest