问题标签 [buildconfig]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
348 浏览

delphi - 在 Delphi 2009 和 Finalbuilder 6 中使用项目配置

有没有人有在 Finalbuilder 6 中使用项目配置选项和 Delphi 编译操作的经验。

目前,构建服务器设置为手动在编译操作上直接设置所有正确的搜索路径、编译器选项等。这避免了对配置文件的更改破坏了构建,并且搜索路径等可能与开发机器不同。但是,更改可能会很痛苦,因为它需要在 FB 中而不是在项目中完成。

使用 Delphi2009 中的新 BuildConfig 选项(以及 Finalbuilder 6 中对它们的支持),应该可以将此配置保留在 SCC 中并使其更易于维护和更新。

有没有人试过这个?

0 投票
4 回答
1376 浏览

grails - 为 Grails 安装 Nimble

我昨天遇到了 Nimble,但无法通过第 1 步,配置BuildConfig.groovy以查找 Nimble 的远程存储库。

我的BuildConfig.groovy文件是一行:

这是我在运行grails install-plugin nimble 0.2时收到的消息:

这是我第一次尝试安装不在官方存储库中的插件。如果 Intient.com 或我的配置有问题,最好的缩小范围是什么?

0 投票
7 回答
35489 浏览

java - 包含调试代码的最佳方式?

我正在编写 Android 应用程序,这里最好的方法可能与 Java 相同,也可能不同。

我只是希望能够设置一个调试标志,该标志仅在设置为 true 时执行代码的某些部分——相当于 C++ 设置预处理器#define DEBUG 并使用#ifdef DEBUG。

在 Java 中是否有一种公认的或最好的方法来实现这一点?

现在我只是要在我的 Application 对象中设置一个变量,但我不认为这是最好的方法。

0 投票
1 回答
2835 浏览

visual-studio-2010 - TFS2010:构建配置问题

我通过删除调试和发布配置并创建“开发”和“测试”来自定义解决方案中的构建配置。一切都在本地构建良好,但在 TFS 中构建新配置之一时出现以下错误(以及其他类似错误)。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets (177):无法将文件“bin\CommonServiceFactory.dll”复制到“C:\MyApp\Binaries_PublishedWebsites\ Epsi.Web\bin\CommonServiceFactory.dll”。找不到路径“bin\CommonServiceFactory.dll”的一部分。

对于外部和项目依赖项,我都收到此错误。从我读过的帖子来看,它似乎与我所做的构建配置更改有关。如果我将 TFS 构建设置为使用“调试”配置,我会收到警告,但它会成功构建。

C:\MyApp\Sources\MyApp.sln.metaproj:指定的解决方案配置“Debug|Any CPU”无效。请使用配置和平台属性(例如 MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU")指定有效的解决方案配置,或将这些属性留空以使用默认解决方案配置。

非常感激任何的帮助。

MSBuild 命令:

MSBuild.exe /nologo /noconsolelogger "C:\Builds\2\MyApp\ci.MyApp.acme.com\Sources\MyApp.sln" /m:1 /fl /flp:"logfile=C:\Builds\2\ MyApp\ci.MyApp.acme.com\Sources\MyApp.log;encoding=Unicode;verbosity=diagnostic" /p:SkipInvalidConfigurations=true /p:OutDir="C:\Builds\2\MyApp\ci.MyApp.acme .com\Binaries\" /p:Configuration="Dev" /p:Platform="Any CPU" /p:VCBuildOverride="C:\Builds\2\MyApp\ci.MyApp.acme.com\Sources\MyApp. sln.Any CPU.Dev.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Diagnostic;BuildUri=vstfs :///Build/Build/2603;InformationNodeId=449514;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://tfsServer01:8080/tfs/Core%20Development;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"详细程度=诊断;

0 投票
1 回答
586 浏览

grails - Grails Inline Plugins: Cannot Upgrade a plugin that is configured via BuildConfig.groovy

Our app is split into a main application and a few plugins. We're using inline plugins via the BuildConfig.groovy file. When it is time to WAR the whole thing up for production I'm getting the following message:

You cannot upgrade a plugin that is configured via BuildConfig.groovy, remove the configuration to continue.

And then Grails wants to uninstall the plugin because it can't find it in application.properties. But during development, having it in application.properties causes issues. So when we're ready to create a production WAR, how do we work around this without commenting the plugins in BuildConfig.groovy every time?

0 投票
2 回答
1387 浏览

grails - Grails 2.0:无效的 SHA1

在 Grails 2.0.0.RC1 中执行run-app时,我经常会遇到无效的 SHA1错误,尤其是对我们的 pwn 产品/模块的依赖。

我发现了以下 Jira 案例:http: //jira.grails.org/browse/GRAILS-7313

不幸的是BuildConfig.groovy中的以下行

导致错误:

问候

乔纳斯

0 投票
2 回答
1604 浏览

grails - Grails 2.0 依赖 NoClassDefFound 问题

当我尝试使用来自外部 JAR 的库时,我在 Grails 2.0 中遇到了 NoClassDefFound 异常问题。

我检查了声明的 JAR 是否在创建的 WAR 中,grialsdependecies-report 也没有标记任何问题。

本地添加的 JAR 或从 Maven 存储库下载似乎没有区别。我也尝试过清理 IVY 缓存和清理 grails 项目,但没有成功。

您有任何解决方法的想法吗?


BuildConfig.groovy(部分)


库控制器.groovy


例外

消息无法初始化类 com.google.gdata.client.youtube.YouTubeService

0 投票
1 回答
1141 浏览

android - OpenCV 示例得到“无法创建 BuildConfig 类”

我目前正在尝试运行此处找到的适用于 Android 的 OpenCV 示例(我已尝试使用更新的版本,但我遵循了问题答案中的建议)并且遇到了错误

未能创建 BuildConfig 类

OpenCV-2.3.1] Android 需要编译器合规级别 5.0 或 6.0。而是找到了“1.7”。请使用 Android 工具 > 修复项目

对于第一个错误;我仍然找不到解决方案;我尝试用上面提到的答案中建议的(2.3.1)而不是 2.4.2(也尝试过 2.4.0)替换最新的 OpenCV。答案建议使用确切的版本 2.3.1,但到目前为止它似乎并没有起到作用。

对于第二个错误,我尝试按照此处的建议调整JDK编译版本,但该问题仍未解决。

以下是一些错误的快照:

在此处输入图像描述

使用:
- Eclipse Indigo
- Windows7- 64bit

我在网上找不到太多关于这个问题的帮助,我一直在寻找解决它一段时间的方法。我已经按照本教程中的确切步骤进行操作(完成下载 ndk 并达到这一点),其中确实可以预料到错误,并且在教程中似乎很容易消除,但它们并不像那些有问题的那样。

先感谢您。

0 投票
1 回答
1123 浏览

java - 如何在我的文档中记录或排除生成的 BuildConfig 类?

显然,从 Android SDK 17 开始,构建会生成一个名为 BuildConfig 的自动类并将其添加到我的包中。http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html说:

添加了一项功能,允许您仅在调试模式下运行某些代码。构建现在会生成一个名为 BuildConfig 的类,其中包含一个根据您的构建类型自动设置的 DEBUG 常量。您可以检查代码中的 (BuildConfig.DEBUG) 常量以运行仅调试功能,例如输出调试日志。

由于生成了这个源文件,我看不到如何向它添加 JavaDoc 注释。有没有一种简单的方法可以从我的包文档中排除这个类?或者有没有一种简单的方法可以向这个类添加一些评论?由于此类已添加到我的包中,因此我不能简单地将包从文档中排除。

我在 Windows 和标准 Doclet 上使用 Eclipse Indigo。

0 投票
3 回答
416 浏览

grails - Grails OpenId Plugin Error

I am trying to do the tutorial of the Grails openId plugin. I created a test app and followed exactly the steps from the tutorial of Burt Beckwith http://grails-plugins.github.com/grails-spring-security-openid/docs/manual/guide/3.%20Tutorials.html

But when I am already on the steps of doing this: $ grails s2-quickstart com.openidtest User Role

it displays an error:

Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

  • com.google.code.guice:guice:2.0

Can someone please tell me why? I already added this to the BuildConfig.groovy: mavenRepo "http://guice-maven.googlecode.com/svn/trunk/" but it still doesnt work.

Please help, thank you