如何使用 Subversion 和 ColdFusion Builder (eclipse) 设置 ANT 以检查要处理的本地构建?

发布于 2024-09-01 04:12:30 字数 681 浏览 5 评论 0原文

我不确定这个问题是否已有答案——无法找到适合此(希望是常见)设置的答案:

我最近将我的 ColdFusion 项目之一转换为通过 ANT 进行部署。

我有一个本地 Ant 脚本,它指示远程服务器检查代码,并在服务器上远程运行应用程序的特定构建文件。

我有几个端点:

实时 - 生产(在生产服务器上) 登台 - 在生产服务器、不同的数据源等上。 dev - 在本地盒子上。

我遇到的似乎是一个简单而常见的问题。我现在需要 ANT 来创建任何构建,甚至是本地构建。很好,创建了一个本地端点并为我的盒子进行配置。

问题?如何让它在 Eclipse/ColdFusion 构建器中显示为项目(如果可能的话自动显示)。我的设想是不再通过 CFBuilder/Eclipse 中的 subversion 插件签出分支,而是使用 ANT 来帮我做到这一点。

由于我使用 ColdFusion Builder(Eclipse + Adob​​e 的插件),因此我可以使用 Eclipse 的所有工具和插件来解决以下问题:如何从 Eclipse/ColdFusion Builder 中最好地调用 ANT,以将本地构建设置为我需要的项目可以开发和工作吗?

我想当我从本地盒子签入代码时,我必须确保不要签入任何具有本地配置路径的文件等。

我希望这是一个足够详细且清晰的解释,如果没有,请询​​问。

提前致谢!

I am not sure if there's an answer for this already -- couldn't find one for this (hopefully common) setup:

I recently converted one of my ColdFusion projects to deploy via ANT.

I have a local ant script that instructs a remote server to check out the code, and run the application's specific build file, remotely on the server.

I have a few endpoints:

Live - production (on the production server)
Staging - on the production server, different datasource, etc.
dev - on the local box.

What I have run into it seems is a simple and common problem. I now need ANT to create any build, even locally. Fine, created a local endpoint and it configures for my box.

Issue? How do I get it to show up as a project (automatically if possible) in Eclipse/ColdFusion builder. What I envision is instead of checking out a branch via the subversion plugin in CFBuilder/Eclipse, I now use ANT to do that for me.

Since I use ColdFusion Builder (Eclipse + Adobe's plugin), I have all of eclipse's tools and plugins available to solve the problem of : how can I best call ANT from within Eclipse/ColdFusion Builder, to setup the local build as a project that I can develop and work on?

I think when I check the code back in from the local box, I'd have to be sure not to check in any files with local config paths, etc.

I hope this is a detailed and clear enough explanation, if not, please ask.

Thanks in advance!

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

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

发布评论

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

评论(1

浮生未歇 2024-09-08 04:12:49

您将无法让它“自动”显示在 CFBuilder 中,但您可以使其变得非常简单。

Eclipse 需要“.project”文件,这是一个简单的 xml 文件,默认情况下通常只包含项目名称。

从 SVN 签出项目后,执行 file -- new -- ColdFusion 项目并将其指向您签出代码的目录。这将在其中创建 .project。从那里,您可以将该文件提交到 SVN。

后续从 SVN 签出项目的开发人员可以执行“文件”-“导入”-“现有项目”到工作区,并将其指向他们签出的位置。由于其中包含 .project 文件(从您提交该文件时开始),因此当他们在导入向导中搜索项目时,该项目将显示。

现在,如果您已经使用 ANT 来检查代码,那么您就应该这样做。但是,如果您想要一种可能更简单的方法,那么您可以将 Subversive 或 Subclipse 插件安装到 CFBuilder 中,然后执行

  1. file -- new -- checkout project from svn
  2. point to your svn url
  3. 选择您要检查的目录选择
  4. 您希望代码所在的位置,
  5. 单击完成

You won't be able to have it "automatically" show up in CFBuilder, but you can make it pretty easy.

Eclipse requires the ".project" file, which is a simple xml file that by default generally just contains the project name.

Once you check out your project from SVN, Do file -- new -- ColdFusion project and point it to the directory where you've checked out your code. This will create the .project in there. From there, you can commit that file to SVN.

Subsequent developers who check out the project from SVN can then do File -- Import -- Existing Project into workspace, and point it to their checked out location. Since it'll have the .project file in there (from when you committed it), that project will show up when they search for projects in that import wizard.

Now, that's how you'd do it if you already used ANT to check out the code. However, if you wanted a potentially even easier way, then you can just install either the Subversive or Subclipse plugin into CFBuilder, and then do

  1. file -- new -- checkout project from svn
  2. point to your svn url
  3. select the directory you want to check out
  4. choose a location where you want the code to live
  5. click through to completion
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文