哪种语言使用“@”?封装变量

发布于 2024-09-27 09:02:51 字数 452 浏览 2 评论 0原文

我试图通过在 Windows 计算机上的调试器中单步执行一个相当大的 Java 项目来弄清楚它是如何工作的,但为了让它通过初始化例程,多个 .properties 文件中的所有值都必须正确。这些 .properties 文件中的许多都包含以下行:

program.root=file://@program.root.dir@

如果我能弄清楚这些变量中的任何一个的默认值或安全值是什么,这对我的理解将非常有帮助,但我不知道应该解释它们的内容。我知道它没有在我的系统上运行,因为通过单步执行代码,我可以看到一个指向“file://@program.root.dir@”的 URI,一旦使用它就会导致错误。但我的系统与 Linux 生产服务器相差甚远,因此可能缺少一些重要的东西。

所以我的问题是,什么编程/脚本语言或虚拟机或环境使用@enheld@变量?众所周知,这种东西很难搜索,因为互联网不允许搜索“@”。

I'm trying to figure out how a rather large Java project works by stepping through it in the debugger on my Windows machine, but for it to get past its initialization routines all the values in multiple .properties files must be correct. Many of these .properties files include lines like:

program.root=file://@program.root.dir@

It would be very helpful to my understanding if I could figure out what a default or safe value for any of these variables would be, but I have no clue what should be interpreting them. I know it's not running on my system, since by stepping through the code I can see a URI pointing to "file://@program.root.dir@", which causes errors as soon as it's used. But my system is a far cry from the Linux production servers, so something important is likely missing.

So my question is, what programming/scripting language or virtual machine or environment uses @enclosed@ variables? This kind of thing is notoriously hard to search for, since the internet doesn't allow searches on '@'.

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

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

发布评论

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

评论(1

平安喜乐 2024-10-04 09:02:51

autoconf 可以使用这些,特别是在输入脚本中。在输出时,那些 @foo@ 被替换为其他内容。

autoconf can use those, especially in input scripts. On output those @foo@ are replaced with something else.

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