0

我在构建 Buddi 会计开源软件时遇到了问题。请做一些帮助。

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

然后我去工作区并执行构建步骤:ant

但它给了我编译信息:

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 东西。以前,此方法是受保护的,我已将其更改为公开。不知道如何解决这个问题。

4

1 回答 1

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
于 2012-09-30T06:48:36.277 回答