加密Ant构建文件 [英] Encrypt Ant build file

查看:510
本文介绍了加密Ant构建文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要启用一些合作伙伴的一些Java项目与我们合作,我们需要为他们提供的Ant构建脚本。

We need to enable some partners to work with us on some java projects, and we need to provide them with the ant build scripts.

不过,如果可能的话,我们要加密的蚂蚁构建文件(build.xml文件等),使合作伙伴可以做的身材,但他们无法看到实际的Ant文件内容(我知道它的怪异)。

However, if possible, we want to encrypt the ant build files (build.xml etc.) so that partners can do the build, but they cannot see the actual ant file content (I know it's weird).

什么好的建议是AP preciated。 (我们是在Windows中)

Any good suggestions are appreciated. (we are on the Windows box)

推荐答案

蚂蚁本身不会让你加密构建脚本(也没有任何其他的构建系统据我所知)。你可以做的是创建一个围绕蚂蚁定制包装器将存储构建脚本以加密的形式,在执行过程中解密并通过解密脚本Ant的API。然后,你可以在包装提供给您的合作伙伴。

Ant itself does not allow you to encrypt the build scripts (nor does any other build system AFAIK). What you can do is create a custom wrapper around Ant that will store the build script in an encrypted form, decrypt it during execution and pass the decrypted script to the Ant API. Then you can deliver that wrapper to your partners.

(给一个人源$ C ​​$ C到您的系统,但加密构建脚本似乎是做了一个非常奇怪的事情。如果只在构建脚本一些具体的数据是敏感的,你可能想只专注于保护这些数据,使用一些其他的方法。)

(Giving someone the source code to your system but encrypting the build script seems to be an extremely weird thing to do. If only some specific data in the build script is sensitive, you may want to focus on protecting only this data, using some other approach.)

这篇关于加密Ant构建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆