Ant构建开源Buddi失败了

时间:2012-09-30 01:19:23

标签: svn ant sourceforge

当我构建Buddi会计开源软件时,我遇到了问题。请帮忙。

我做了以下事情: svn co https://buddi.svn.sourceforge.net/svnroot/buddi/trunk@1801

然后我转到工作区并执行构建步骤: 蚂蚁

但是它给了我编译信息:

compile:
  [mkdir] Created dir: /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  [javac] Compiling 252 source files to /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:23: ?Ҳ???????
  [javac] ???ţ? ?? AccountBalance
  [javac] λ?ã? ?????? org.homeunix.thecave.buddi.plugin.builtin.report
  [javac] import org.homeunix.thecave.buddi.plugin.builtin.report.AccountBalance;
  [javac]                                                        ^
  [javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:213: ?Ҳ???????
  [javac] ???ţ? ?? AccountBalance
  [javac] λ?ã? ?? org.homeunix.thecave.buddi.Const
  [javac]       AccountBalance.class.getCanonicalName(),
  [javac]       ^
  [javac] 2 ????

然后我试图在报告目录中找到AccountBalance.java,并不奇怪,那里没有这样的文件。

也许我们需要在ant构建Buddi项目之前做点什么?

更新:已经下载了1800版本,但在构建时有如下编译时错误:

[javac] /var/lib/jenkins/jobs/Buddi/workspace/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 252 source files to /var/lib/jenkins/jobs/Buddi/workspace/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/view/dialogs/ScheduledTransactionEditorDialog.java:136: error: getType() in ScheduledTransactionEditorDialog cannot override getType() in Window
[javac]     public String getType(){
[javac]                   ^
[javac]   return type String is not compatible with Type
[javac] Note: /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/plugin/builtin/preference/PluginPreferences.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 1 warning

似乎是一个弃用的API东西。以前,这种方法受到保护,我已将其更改为公开。不知道如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

最新更改的作者忘了向SVN添加文件。它发生了。命令后很明显:

svn blame src/org/homeunix/thecave/buddi/Const.java
svn log -r1800:1801

你可以通知他。要构建,请使用以前的修订版1800

但是,执行windows目标时仍然存在问题。所以我做了

ant generic
java -jar build/Buddi-3.4.1.2.jar