有没有办法将 powerbuilder 应用程序导出为文本?

发布于 2024-07-27 19:00:20 字数 206 浏览 6 评论 0原文

我想开始使用 Git 控制我们的内部应用程序。

我想如果我可以将所有应用程序导出为文本(而不是逐个对象导出),然后在其中使用 Git。

当然,如果我需要进行合并或恢复某些更改,我将需要一种方法将此文本文件导入到 powerbuilder 中。

另一个解决方案可能是 git 的 MSCC 提供商。 但我认为很难找到,因为该界面不公开。

I want to start controlling our inhouse applicatoin using Git.

And I thougth that if I can export all the application to text (not exporting object by object) and then using Git in them.

And of course I will need a method to import this text files into powerbuilder if I need to make a merge or revert some changes.

Another solution could be and MSCC provider for git. but I think it would be difficult to find because the interface is not publicly available.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

寄离 2024-08-03 19:00:20

很多工具都可以做到这一点,包括我的,但大多数工具(包括我的)都使用PowerScript LibraryExport() 函数,该函数将丢弃 OLE 对象的二进制部分。 据我所知,唯一能够正确导出(包括 OLE 二进制文件)的工具是 PowerGen,但是如果如果您因为价格而选择 GIT,那么您很可能不会喜欢 PowerGen。 (顺便说一句,有很多理由希望 PowerGen 出现在您的工具箱中。有些麻烦只有 PowerGen 才能帮助您摆脱。)

正如我认为您所暗示的那样,如果您选择支持 Microsoft 的 SCC API 接口的源代码控制工具,那么你就不用担心这一切; 您将能够直接使用 PowerBuilder 与源代码管理工具进行交互。 几年前,我将 PB 与 CVS 一起使用,但我恐怕不记得必须放置哪些额外组件以及如何放置。 Sybase 的 NNTP 新闻组之一致力于 PB 和源代码控制,如果他们还没有解决免费源代码控制的问题,我敢打赌他们会有有趣的评论。

Lots of tools do it, including mine, but most, including mine, use the PowerScript LibraryExport() function, which will trash the binary portion of the OLE objects. The only tool I know of that does exporting correctly, including OLE binaries, is PowerGen, however if you're picking GIT for it's price, you most likely won't like PowerGen. (There's a ton of reasons to want PowerGen in your toolbelt, BTW. There are scrapes that only PowerGen can get you out of.)

As I think you were alluding to, if you pick a source control tool that supports Microsoft's SCC API interface, then you don't have to worry about all this; you'll just be able to have PowerBuilder interface directly with the source control tool. I used PB with CVS years ago, but I'm afraid I don't recall which extra components I had to put into place and how. One of Sybase's NNTP newsgroups is devoted to PB and source control, and if they haven't already addressed the issue of free source control, I bet they'd have interesting comments.

情仇皆在手 2024-08-03 19:00:20

您可以使用 ORCA 导出和导入任何内容你喜欢。 ORCA 是 PB IDE 的接口,可以通过两种方式使用:在 C++ 程序中使用,或作为脚本(称为 OrcaScript)。 使用 ORCA,您应该可以毫无问题地列出 PBL 中的所有对象、导出它们、执行您想要的任何工作,然后将它们导入回来。 不过,将其用作 PB 和 GIT 之间的中间层可能需要一些工作。

You can use ORCA to export and import whatever you like. ORCA is an interface to the PB IDE, which can be used in two ways: from within a C++ program, or as a script (called, well, OrcaScript). Using ORCA you should have no problem listing all objects in a PBL, exporting them, doing whatever work you wish and then importing them back. Using it as an intermediate layer between PB and GIT might require some work, though.

对风讲故事 2024-08-03 19:00:20

pb.net 现在有一个测试版,它允许将现有项目转换为基于 wpf/text (unicode) 的项目,即每个对象都变成一个文本文件

http://response.sybase.com/forms/WW09JULPB12beta1

使用编译器,您可以通过执行以下操作将项目从 .pbl 导出到文本:

pb2cs.exe /t: wpfmigration /pbt:"... myproj.pbt" /o:"some output dir"

在 pb.net (pb12) 中,所有文件都只是文本文件

There is a beta out now of pb.net, it allows for conversion of existing projects to wpf/text based (unicode) projects i.e. each object becomes a text file

http://response.sybase.com/forms/WW09JULPB12beta1

using the compiler, you can export your projects from .pbl to text by doing:

pb2cs.exe /t:wpfmigration /pbt:"... myproj.pbt" /o:"some output dir"

In pb.net (pb12), all files are just text files

再见回来 2024-08-03 19:00:20

您可以通过将工作区添加到源代码来获取所有文件的文本转储。

步骤:

右键单击工作区,选择“属性”,单击“源代码管理”选项卡。 输入 PB Native 作为源代码控制类型。 接受所有默认值并单击“确定”。

再次右键单击工作区并选择“添加到源代码”。 默认情况下,应选择所有文件。 单击“确定”进入下一个屏幕。 输入任意内容作为用户名,然后输入您想要存放所有文本文件的空文件夹的名称。 单击“确定”,您将把所有内容写入空文件夹。

You can get a text dump of all the files by adding the workspace to Source Code.

Steps:

Right click on the workspace, select Properties, click on the Source Control tab. Enter PB Native as the source control type. Accept all the defaults and click ok.

Right click on the workspace again and select Add to Source Code. By default all the files should be selected. Click ok to go to the next screen. Enter anything for user name, and enter the name of a empty folder where you want all the text files to go. Click ok and you will have everything written to the empty folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文