• IVY configuration 语法 at 2011年04月14日

    ANT + IVY > MAVEN:victory:

  • IVY configuration 语法 at 2011年04月13日

    since 1.4 you can use * wildcard followed by negated configurations to mean all but xxx. For instance, '*, ! A, ! B -> X' means that X dependency configuration is required in all master configurations except A and B.

    since 1.2 '@' also has a special meaning as a right operand of the dependency mapping, it means map to self. This is particularly useful with '', '->@' meaning that all configurations of the module maps to their equivalent (same name) in the dependency.

    since 1.4 '#' can be used as right side operand to mean 'this' configuration, and thus refers to the configuration being resolved. It is slightly similar to @, except that it takes into account the configuration being actually resolved in case of a configuration extending another one.

    Example: Let's foo be a module with two configurations, A and B, B extending A. Then a dependency declaring conf A-># will get A dep conf in its confs A (when resolving A, ivy will find interpret the # symbol as A) and B dep conf in its conf B (when resolving B, ivy will interpret the # symbol as B, even if this dependency is only required because of the A dependency).

    If you don't understand really how this works, do not use it :-)

    since 1.4 '%' can be used as left side operand to mean 'all the other configurations'. This can be usefull when you only have a specific mapping for some configurations and a default mapping for all the others.

  • 新同学的心声! at 2011年04月13日

    codyzhang 于 2011-4-13 14:29 发表
    我们新朋友希望各位 “大虾” 帮助: 我是一个一点计算机基础都没有,做了配置管理有 i 半个月了,但我还不理解它的概念,请问要怎样去理解配置管理的概念啊,有什么办法能快点学会配置管理 ... [/quote]

    最好参与开发半年,熟悉各个流程后,再做回配置管理

  • Facebook 是如何管理代码的 at 2011年04月13日

    当 facebook 走上了神坛,那就离非死不可不远了

  • [请教] 关于并发管理 at 2011年04月13日

    Concurrent control ?

  • data center 就算自己有图纸,想仿造也不是容易的。

  • 新 java 构建工具 -- Gradle at 2011年04月08日

    不错,可以观望。

  • 你是调用 sshexec 远程执行 ant,所以 hudson 判断的是 sshexec 是否正确执行。

    除非你 sshexec 标签中调用的命令出错后直接返回,否则很难捕捉错误。建议自己获取 outputproperty,然后判断出错信息,再 fail hudson。

  • tomcat - hudson 问题截图 at 2011年04月08日

    我昨天也试了一下升级,

    1。停止 jetty/hudson service 2。删除 hudson.war 3。放入 jenkins.war 4。启动 jettyhudson service 5。访问 [url]http://192.168.11.40:8080/jenkins/url][

    还是使用 hudson_home,以及其下的所有配置文件。

    另外还改了 update advacned 里的 url,不过后来发现有些 plugin 竟然 jenkin 里没有,只能手动安装。

    [[i] 本帖最后由 shawn2001 于 2011-4-8 19:22 编辑 ]

  • 说些理论基础:

    软件工程的核心就是 traceability ,从需求 -〉设计 -〉编码 -〉测试 -〉交付的 V 型模型,如何解决跟踪问题。

    而版本管理和问题跟踪的结合可以覆盖大部分的跟踪问题。如果公司有专门的需求管理系统,也要加进去

    例如:DOORS <-> Clearcase <-> clearquest

    如果 BA 要对一条需求进行变更,通过系统的几个点击,就能看到会影响到多少 code 和 test,那是一件很惬意的事情

    [[i] 本帖最后由 shawn2001 于 2011-4-2 21:38 编辑 ]

  • Ant 获取环境变量的值 at 2011年04月01日

    virtuallife 于 2011-3-31 22:13 发表
    其实 errorlevel 是系统的环境变量(详见 scmroad 的贴:http://bbs.scmroad.com/viewthrea ... =%E7%8E%AF%E5%A2%83),那么,ant 如何能有效地获取系统的环境变量呢(类似于 errorlevel,即使有其他进程生成,当前应该也会获取到一个值)? ... [/quote]

    例子 1〉针对这个需求 编译过程如果通过 ant 脚本调用,可以通过 设置 ,在编译失败后直接退出 ant,之后的内容不会运行。

    例子 2〉如果不甘心直接退出

    ...... <!-- test the ${error.out} if include fetal--> Something wrong here.

    例子 3〉如果编译正常结束,只有 warning 输出,如果你还想 fail build ...... <!-- test the ${output.out}--> Something wrong here.

    最后别忘了加,

  • Ant 获取环境变量的值 at 2011年04月01日

    想获取 exec 中的 errorlevel,那就要在运行结束后显性的输出,然后从 ant 中获取再判断。

    因为 exec 调用的命令是一个整体,所以只好把命令 wrap 到脚本中,脚本最后输出 errorlevel

    [[i] 本帖最后由 shawn2001 于 2011-4-1 22:21 编辑 ]

  • Ant 获取环境变量的值 at 2011年04月01日

    如果通过直接调用脚本而不是 cmd,是可以获取 error 的。

    两个方法:

    1.直接 设置 failonerror , try-catch

    2.通过获取 errorproperty or outputproperty 再判断具体 error 细节 ,then

    [[i] 本帖最后由 shawn2001 于 2011-4-1 22:10 编辑 ]

  • 另外你可以试试 user.name 这个系统变量不是环境变量。

  • email template 不就是 jelly 写的吗 ?

  • 我的 win7 中没有这个键,建议换个思路从根源找问题。看看问题是 hudson 还是 python。建议把 hudson server 的 log on as 改为你的登录用户名试试。

  • SQL server 参与持续集成 at 2011年03月31日

    实际上说持续集成有些牵强,更像是 QA 的自动化测试。

  • 苯办法:ant 写文件总可以吧,内容尤其是文件链接通过 ant 写入。

    好一些的:ant 写入属性文件,jelly 读取同一个属性文件

    聪明办法:大家一起想

  • 你的 hudson 是不是作为 service 启动的? 要设定 service 的 log on as,否则默认为 system

    另外你去 hudson > manage hudson> system information 下看看,所有的系统变量,环境变量都在下面,如果没有说明你的环境有问题。

    user.country US user.dir D:\Hudson\jetty-6.1.11\bin user.home C:\Documents and Settings\Default User user.language en user.name SYSTEM user.timezone America/New_York user.variant

    [[i] 本帖最后由 shawn2001 于 2011-3-31 09:55 编辑 ]

  • Codereview 工具 at 2011年03月30日

    黄瓜

  • 从构建子进程 (ant) 向 hudson 进程传递参数,我觉得最保险还是写入属性文件。或者通过一个 ant target 写入 email template.

    支持 template 的 email 可以用插件: Extended E-mail Notification

  • 是否涉及侵权?

  • SVN 自动 meger at 2011年03月29日

    自动 merger 是浮云,还是搞个好的 GUI 工具好,我用 winmerge。

  • hudson 上 archive 的路径 at 2011年03月28日
  • 关于连接 slave at 2011年03月28日

    /usr/java/jdk1.6.0_21/bin 不在 $PATH 里